]> git.0d.be Git - empathy.git/commitdiff
new-chatroom-dialog: use GtkGrid instead of GtkTable
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 29 Sep 2011 11:32:36 +0000 (13:32 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 29 Sep 2011 12:44:27 +0000 (14:44 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=660429

src/empathy-new-chatroom-dialog.c
src/empathy-new-chatroom-dialog.ui

index 29c8865400f8923d6f7ff4ee65d87c62e8befffa..8176c4803dfef3c8c16695070c35e69e061f9a7e 100644 (file)
@@ -57,7 +57,7 @@ typedef struct {
 
        GtkWidget         *window;
        GtkWidget         *vbox_widgets;
-       GtkWidget         *table_info;
+       GtkWidget         *table_grid;
        GtkWidget         *label_account;
        GtkWidget         *account_chooser;
        GtkWidget         *label_server;
@@ -156,7 +156,7 @@ empathy_new_chatroom_dialog_show (GtkWindow *parent)
        filename = empathy_file_lookup ("empathy-new-chatroom-dialog.ui", "src");
        gui = empathy_builder_get_file (filename,
                                       "new_chatroom_dialog", &dialog->window,
-                                      "table_info", &dialog->table_info,
+                                      "table_grid", &dialog->table_grid,
                                       "label_account", &dialog->label_account,
                                       "label_server", &dialog->label_server,
                                       "label_room", &dialog->label_room,
@@ -210,9 +210,9 @@ empathy_new_chatroom_dialog_show (GtkWindow *parent)
        empathy_account_chooser_set_filter (EMPATHY_ACCOUNT_CHOOSER (dialog->account_chooser),
                                            empathy_account_chooser_filter_supports_chatrooms,
                                            NULL);
-       gtk_table_attach_defaults (GTK_TABLE (dialog->table_info),
+       gtk_grid_attach (GTK_GRID (dialog->table_grid),
                                   dialog->account_chooser,
-                                  1, 2, 0, 1);
+                                  1, 0, 1, 1);
        gtk_widget_show (dialog->account_chooser);
 
        g_signal_connect (EMPATHY_ACCOUNT_CHOOSER (dialog->account_chooser), "ready",
index 2db1244a471af5c282d1d5d5bfabcf3bf0bb5a9a..e77ec60cd785816deae0e1bcc4e61febac36646b 100644 (file)
             <property name="border_width">5</property>
             <property name="spacing">5</property>
             <child>
-              <object class="GtkTable" id="table_info">
+              <object class="GtkGrid" id="table_grid">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
-                <property name="n_rows">3</property>
-                <property name="n_columns">2</property>
-                <property name="column_spacing">5</property>
                 <property name="row_spacing">5</property>
+                <property name="column_spacing">5</property>
                 <child>
                   <object class="GtkEntry" id="entry_room">
                     <property name="visible">True</property>
                   </object>
                   <packing>
                     <property name="left_attach">1</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>
+                    <property name="width">1</property>
+                    <property name="height">1</property>
                   </packing>
                 </child>
                 <child>
                     <property name="mnemonic_widget">entry_room</property>
                   </object>
                   <packing>
+                    <property name="left_attach">0</property>
                     <property name="top_attach">1</property>
-                    <property name="bottom_attach">2</property>
-                    <property name="x_options">GTK_FILL</property>
+                    <property name="width">1</property>
+                    <property name="height">1</property>
                   </packing>
                 </child>
                 <child>
                   </object>
                   <packing>
                     <property name="left_attach">1</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>
-                    <property name="y_options"></property>
+                    <property name="width">1</property>
+                    <property name="height">1</property>
                   </packing>
                 </child>
                 <child>
                     <property name="mnemonic_widget">entry_server</property>
                   </object>
                   <packing>
+                    <property name="left_attach">0</property>
                     <property name="top_attach">2</property>
-                    <property name="bottom_attach">3</property>
-                    <property name="x_options">GTK_FILL</property>
-                    <property name="y_options"></property>
+                    <property name="width">1</property>
+                    <property name="height">1</property>
                   </packing>
                 </child>
                 <child>
                     <property name="label" translatable="yes">Account:</property>
                   </object>
                   <packing>
-                    <property name="x_options">GTK_FILL</property>
-                    <property name="y_options"></property>
+                    <property name="left_attach">0</property>
+                    <property name="top_attach">0</property>
+                    <property name="width">1</property>
+                    <property name="height">1</property>
                   </packing>
                 </child>
-                <child>
-                  <placeholder/>
-                </child>
               </object>
               <packing>
                 <property name="expand">False</property>