]> git.0d.be Git - empathy.git/commitdiff
Put the toggle cell to enable/disable account in a separate column. Fixes bug #511841...
authorXavier Claessens <xclaesse@src.gnome.org>
Sat, 9 Feb 2008 17:31:54 +0000 (17:31 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Sat, 9 Feb 2008 17:31:54 +0000 (17:31 +0000)
svn path=/trunk/; revision=609

libempathy-gtk/empathy-accounts-dialog.c

index efc5ccc80eab7c519ec7c586b52a89d221bd60ef..765962b6c6287e525ffc436038e6fc900fcf281a 100644 (file)
@@ -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 ();