aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-02-10 01:31:56 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-02-10 01:31:56 +0800
commit6a8870b44b3366322aef4e2e76408355618bed87 (patch)
tree88b1b7d4d03387e29ad59940c35c78391a649d6b
parent8a52e07b9d7700f25cd28f105a0240f5fc407711 (diff)
downloadgsoc2013-empathy-6a8870b44b3366322aef4e2e76408355618bed87.tar
gsoc2013-empathy-6a8870b44b3366322aef4e2e76408355618bed87.tar.gz
gsoc2013-empathy-6a8870b44b3366322aef4e2e76408355618bed87.tar.bz2
gsoc2013-empathy-6a8870b44b3366322aef4e2e76408355618bed87.tar.lz
gsoc2013-empathy-6a8870b44b3366322aef4e2e76408355618bed87.tar.xz
gsoc2013-empathy-6a8870b44b3366322aef4e2e76408355618bed87.tar.zst
gsoc2013-empathy-6a8870b44b3366322aef4e2e76408355618bed87.zip
Set a title to the enable column in account dialog
svn path=/trunk/; revision=610
-rw-r--r--libempathy-gtk/empathy-accounts-dialog.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/libempathy-gtk/empathy-accounts-dialog.c b/libempathy-gtk/empathy-accounts-dialog.c
index 765962b6c..1be402a24 100644
--- a/libempathy-gtk/empathy-accounts-dialog.c
+++ b/libempathy-gtk/empathy-accounts-dialog.c
@@ -395,20 +395,24 @@ accounts_dialog_model_add_columns (EmpathyAccountsDialog *dialog)
view = GTK_TREE_VIEW (dialog->treeview);
gtk_tree_view_set_headers_visible (view, TRUE);
- /* Enabled */
+ /* Enabled column */
cell = gtk_cell_renderer_toggle_new ();
gtk_tree_view_insert_column_with_attributes (view, -1,
- NULL, cell,
+ _("Enabled"),
+ cell,
"active", COL_ENABLED,
NULL);
g_signal_connect (cell, "toggled",
G_CALLBACK (accounts_dialog_enable_toggled_cb),
dialog);
+ /* Account column */
column = gtk_tree_view_column_new ();
gtk_tree_view_column_set_title (column, _("Accounts"));
+ gtk_tree_view_column_set_expand (column, TRUE);
+ gtk_tree_view_append_column (view, column);
- /* Icon */
+ /* Icon renderer */
cell = gtk_cell_renderer_pixbuf_new ();
gtk_tree_view_column_pack_start (column, cell, FALSE);
gtk_tree_view_column_set_cell_data_func (column, cell,
@@ -417,7 +421,7 @@ accounts_dialog_model_add_columns (EmpathyAccountsDialog *dialog)
dialog,
NULL);
- /* Name */
+ /* Name renderer */
cell = gtk_cell_renderer_text_new ();
g_object_set (cell,
"ellipsize", PANGO_ELLIPSIZE_END,
@@ -428,9 +432,6 @@ accounts_dialog_model_add_columns (EmpathyAccountsDialog *dialog)
g_signal_connect (cell, "edited",
G_CALLBACK (accounts_dialog_name_edited_cb),
dialog);
-
- gtk_tree_view_column_set_expand (column, TRUE);
- gtk_tree_view_append_column (view, column);
}
static void