Mercurial > geeqie
changeset 1499:56b534d71872
Make desktop window list checkboxes centered and not activatable.
author | zas_ |
---|---|
date | Tue, 31 Mar 2009 20:22:47 +0000 |
parents | 5f49f305a6b6 |
children | 42081a3433bb |
files | src/desktop_file.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/desktop_file.c Tue Mar 31 20:05:16 2009 +0000 +++ b/src/desktop_file.c Tue Mar 31 20:22:47 2009 +0000 @@ -494,10 +494,16 @@ gtk_tree_view_column_set_title(column, _("Hidden")); gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE); renderer = gtk_cell_renderer_toggle_new(); - gtk_tree_view_column_pack_start(column, renderer, FALSE); + g_object_set(G_OBJECT(renderer), + "activatable", FALSE, // not clickable for now + "xalign", 0.5, // centered + NULL); + gtk_tree_view_column_pack_start(column, renderer, TRUE); // TRUE needed for centering gtk_tree_view_column_add_attribute(column, renderer, "active", DESKTOP_FILE_COLUMN_HIDDEN); gtk_tree_view_append_column(GTK_TREE_VIEW(ewl->view), column); gtk_tree_view_column_set_sort_column_id(column, DESKTOP_FILE_COLUMN_HIDDEN); + gtk_tree_view_column_set_alignment(column, 0.5); + column = gtk_tree_view_column_new(); gtk_tree_view_column_set_title(column, _("Name"));