]> git.0d.be Git - empathy.git/commitdiff
Move the spinner next to the expander label in new chatroom dialog
authorXavier Claessens <xclaesse@gmail.com>
Tue, 13 Apr 2010 16:55:48 +0000 (18:55 +0200)
committerXavier Claessens <xclaesse@gmail.com>
Mon, 19 Apr 2010 09:55:58 +0000 (11:55 +0200)
src/empathy-new-chatroom-dialog.c
src/empathy-new-chatroom-dialog.ui

index 9cd4398747e6b7eb5d9fafe902ae55d80d6a467c..7c330b22c69166f0ba70fd27dc53a8e0c07770f7 100644 (file)
@@ -65,6 +65,7 @@ typedef struct {
        GtkWidget         *label_room;
        GtkWidget         *entry_room;
        GtkWidget         *expander_browse;
+       GtkWidget         *hbox_expander;
        GtkWidget         *throbber;
        GtkWidget         *treeview;
        GtkTreeModel      *model;
@@ -201,6 +202,7 @@ empathy_new_chatroom_dialog_show (GtkWindow *parent)
                                       "treeview", &dialog->treeview,
                                       "button_join", &dialog->button_join,
                                       "expander_browse", &dialog->expander_browse,
+                                      "hbox_expander", &dialog->hbox_expander,
                                       "label_error_message", &dialog->label_error_message,
                                       "viewport_error", &dialog->viewport_error,
                                       NULL);
@@ -235,10 +237,8 @@ empathy_new_chatroom_dialog_show (GtkWindow *parent)
 
        /* Add throbber */
        dialog->throbber = gtk_spinner_new ();
-       gtk_table_attach (GTK_TABLE (dialog->table_info),
-                         dialog->throbber,
-                         2, 3, 0, 1,
-                         0, 0, 0, 0);
+       gtk_box_pack_start (GTK_BOX (dialog->hbox_expander), dialog->throbber,
+               TRUE, TRUE, 0);
 
        /* Account chooser for custom */
        dialog->account_chooser = empathy_account_chooser_new ();
index 903877f20a2ad6396ad5c51ec2c3a9984b32b387..6162d526d36a62972df031ea479c1e05d3a38127 100644 (file)
@@ -3,8 +3,7 @@
   <requires lib="gtk+" version="2.16"/>
   <!-- interface-naming-policy toplevel-contextual -->
   <object class="GtkImage" id="join_image">
-     <property name="stock">gtk-jump-to</property>
-     <property name="icon-size">4</property>
+    <property name="stock">gtk-jump-to</property>
   </object>
   <object class="GtkDialog" id="new_chatroom_dialog">
     <property name="visible">True</property>
@@ -26,7 +25,7 @@
               <object class="GtkTable" id="table_info">
                 <property name="visible">True</property>
                 <property name="n_rows">3</property>
-                <property name="n_columns">3</property>
+                <property name="n_columns">2</property>
                 <property name="column_spacing">5</property>
                 <property name="row_spacing">5</property>
                 <child>
@@ -39,7 +38,7 @@
                   </object>
                   <packing>
                     <property name="left_attach">1</property>
-                    <property name="right_attach">3</property>
+                    <property name="right_attach">2</property>
                     <property name="top_attach">1</property>
                     <property name="bottom_attach">2</property>
                     <property name="x_options">GTK_FILL</property>
@@ -68,7 +67,7 @@
                   </object>
                   <packing>
                     <property name="left_attach">1</property>
-                    <property name="right_attach">3</property>
+                    <property name="right_attach">2</property>
                     <property name="top_attach">2</property>
                     <property name="bottom_attach">3</property>
                     <property name="x_options">GTK_FILL</property>
                 <child>
                   <placeholder/>
                 </child>
-                <child>
-                  <placeholder/>
-                </child>
               </object>
               <packing>
                 <property name="expand">False</property>
                 <child>
                   <object class="GtkVBox" id="vbox1">
                     <property name="visible">True</property>
-                    <property name="orientation">vertical</property>
                     <property name="spacing">2</property>
                     <child>
                       <object class="GtkViewport" id="viewport_error">
                   </object>
                 </child>
                 <child type="label">
-                  <object class="GtkLabel" id="label1">
+                  <object class="GtkHBox" id="hbox_expander">
                     <property name="visible">True</property>
-                    <property name="label" translatable="yes">Room List</property>
+                    <property name="spacing">6</property>
+                    <child>
+                      <object class="GtkLabel" id="label1">
+                        <property name="visible">True</property>
+                        <property name="label" translatable="yes">Room List</property>
+                      </object>
+                      <packing>
+                        <property name="position">0</property>
+                      </packing>
+                    </child>
+                    <child>
+                      <placeholder/>
+                    </child>
                   </object>
                 </child>
               </object>
             </child>
             <child>
               <object class="GtkButton" id="button_join">
+                <property name="label" translatable="yes">_Join</property>
                 <property name="visible">True</property>
                 <property name="sensitive">False</property>
                 <property name="can_focus">True</property>
                 <property name="has_default">True</property>
                 <property name="receives_default">False</property>
                 <property name="image">join_image</property>
-                <property name="label" translatable="yes">_Join</property>
                 <property name="use_underline">True</property>
               </object>
               <packing>