gchar *filename;
GtkEntryCompletion *completion;
GtkWidget *content_area;
- GtkWidget *table_contact;
+ GtkWidget *table_grid;
dialog->vbox = gtk_vbox_new (FALSE, 3);
filename = empathy_file_lookup ("empathy-contact-selector-dialog.ui",
"libempathy-gtk");
gui = empathy_builder_get_file (filename,
- "table_contact", &table_contact,
+ "table_grid", &table_grid,
"account_chooser_label", &priv->account_chooser_label,
"entry_id", &priv->entry_id,
NULL);
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
gtk_container_add (GTK_CONTAINER (content_area), dialog->vbox);
- gtk_box_pack_start (GTK_BOX (dialog->vbox), table_contact, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (dialog->vbox), table_grid, TRUE, TRUE, 0);
gtk_widget_show (dialog->vbox);
gtk_dialog_add_button (GTK_DIALOG (dialog),
/* Create account chooser */
priv->show_account_chooser = TRUE;
priv->account_chooser = empathy_account_chooser_new ();
- gtk_table_attach_defaults (GTK_TABLE (table_contact),
+ gtk_grid_attach (GTK_GRID (table_grid),
priv->account_chooser,
- 1, 2, 0, 1);
+ 1, 0, 1, 1);
empathy_account_chooser_set_filter (
EMPATHY_ACCOUNT_CHOOSER (priv->account_chooser),
account_chooser_filter,
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
- <object class="GtkTable" id="table_contact">
+ <object class="GtkGrid" id="table_grid">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="n_rows">2</property>
- <property name="n_columns">2</property>
- <property name="column_spacing">6</property>
<property name="row_spacing">6</property>
+ <property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="account_chooser_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Account:</property>
</object>
<packing>
- <property name="x_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>
<property name="label" translatable="yes">Contact ID:</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"></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">1</property>
- <property name="bottom_attach">2</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
- <child>
- <placeholder/>
- </child>
</object>
</interface>