]> git.0d.be Git - empathy.git/commitdiff
Added support for local IP address and port in SIP account settings widget.
authorLaurent <lcontzen@gmail.com>
Sun, 1 Apr 2012 10:46:21 +0000 (12:46 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 2 Apr 2012 11:47:44 +0000 (13:47 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=669134

libempathy-gtk/empathy-account-widget-sip.c
libempathy-gtk/empathy-account-widget-sip.ui

index 05be1b874726e72509528dce5446bc3399b2e771..ed2f44529fe26cb9cc31a6e21c89bb5fe069922b 100644 (file)
@@ -174,6 +174,8 @@ empathy_account_widget_sip_build (EmpathyAccountWidget *self,
           "checkbutton_discover-binding", "discover-binding",
           "spinbutton_keepalive-interval", "keepalive-interval",
           "checkbutton_ignore-tls-errors", "ignore-tls-errors",
+          "entry_local-ip-address", "local-ip-address",
+          "spinbutton_local-port", "local-port",
           NULL);
 
       account_widget_sip_discover_stun_toggled_cb (
index e86e588500f53b94fc47ddcad5363778262dd7e0..4104572d10080cb9005a64d49c459182f5da97fa 100644 (file)
     <property name="step_increment">1</property>
     <property name="page_increment">10</property>
   </object>
+  <object class="GtkAdjustment" id="adjustment4">
+    <property name="upper">65535</property>
+    <property name="step_increment">1</property>
+    <property name="page_increment">10</property>
+  </object>
   <object class="GtkVBox" id="vbox_sip_settings">
     <property name="visible">True</property>
     <property name="can_focus">False</property>
                             <property name="width">3</property>
                           </packing>
                         </child>
+                        <child>
+                         <object class="GtkEntry" id="entry_local-ip-address">
+                           <property name="visible">True</property>
+                           <property name="can_focus">True</property>
+                         </object>
+                         <packing>
+                           <property name="left_attach">1</property>
+                           <property name="top_attach">14</property>
+                         </packing>
+                        </child>
                         <child>
                           <object class="GtkLabel" id="label_nat_traversal">
                             <property name="visible">True</property>
                             <property name="top_attach">5</property>
                           </packing>
                         </child>
+                        <child>
+                          <object class="GtkAlignment" id="alignment16">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="left_padding">12</property>
+                            <child>
+                              <object class="GtkLabel" id="label_local-ip-address">
+                                <property name="visible">True</property>
+                                <property name="can_focus">False</property>
+                                <property name="xalign">0</property>
+                                <property name="label" translatable="yes">Local IP Address:</property>
+                                <property name="mnemonic_widget">entry_local-ip-address</property>
+                              </object>
+                            </child>
+                          </object>
+                          <packing>
+                            <property name="left_attach">0</property>
+                            <property name="top_attach">14</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkLabel" id="label_local-port">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="xalign">0</property>
+                            <property name="label" translatable="yes">Port:</property>
+                            <property name="mnemonic_widget">spinbutton_local-port</property>
+                          </object>
+                          <packing>
+                            <property name="left_attach">2</property>
+                            <property name="top_attach">14</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkSpinButton" id="spinbutton_local-port">
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="adjustment">adjustment4</property>
+                          </object>
+                          <packing>
+                            <property name="left_attach">3</property>
+                            <property name="top_attach">14</property>
+                          </packing>
+                        </child>
                       </object>
                     </child>
                   </object>