diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-02-10 01:31:54 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-02-10 01:31:54 +0800 |
commit | 8a52e07b9d7700f25cd28f105a0240f5fc407711 (patch) | |
tree | 007391e224187c184b90b384a7bc64ec3b675a99 | |
parent | 675deab25d7076195e356c84e55de5207b8c3c6f (diff) | |
download | gsoc2013-empathy-8a52e07b9d7700f25cd28f105a0240f5fc407711.tar gsoc2013-empathy-8a52e07b9d7700f25cd28f105a0240f5fc407711.tar.gz gsoc2013-empathy-8a52e07b9d7700f25cd28f105a0240f5fc407711.tar.bz2 gsoc2013-empathy-8a52e07b9d7700f25cd28f105a0240f5fc407711.tar.lz gsoc2013-empathy-8a52e07b9d7700f25cd28f105a0240f5fc407711.tar.xz gsoc2013-empathy-8a52e07b9d7700f25cd28f105a0240f5fc407711.tar.zst gsoc2013-empathy-8a52e07b9d7700f25cd28f105a0240f5fc407711.zip |
Put the toggle cell to enable/disable account in a separate column. Fixes bug #511841 (Carl-Anton Ingmarsson).
svn path=/trunk/; revision=609
-rw-r--r-- | libempathy-gtk/empathy-accounts-dialog.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-accounts-dialog.c b/libempathy-gtk/empathy-accounts-dialog.c index efc5ccc80..765962b6c 100644 --- a/libempathy-gtk/empathy-accounts-dialog.c +++ b/libempathy-gtk/empathy-accounts-dialog.c @@ -395,16 +395,18 @@ accounts_dialog_model_add_columns (EmpathyAccountsDialog *dialog) view = GTK_TREE_VIEW (dialog->treeview); gtk_tree_view_set_headers_visible (view, TRUE); - column = gtk_tree_view_column_new (); - gtk_tree_view_column_set_title (column, _("Accounts")); - /* Enabled */ cell = gtk_cell_renderer_toggle_new (); - gtk_tree_view_column_pack_start (column, cell, FALSE); - gtk_tree_view_column_add_attribute (column, cell, "active", COL_ENABLED); + gtk_tree_view_insert_column_with_attributes (view, -1, + NULL, cell, + "active", COL_ENABLED, + NULL); g_signal_connect (cell, "toggled", G_CALLBACK (accounts_dialog_enable_toggled_cb), dialog); + + column = gtk_tree_view_column_new (); + gtk_tree_view_column_set_title (column, _("Accounts")); /* Icon */ cell = gtk_cell_renderer_pixbuf_new (); |