forked from luck/tmp_suning_uos_patched
gconfig: enable rules hint for main treeviews
Due to the large amount of rows in the treeviews, is difficult to match columns with rows, setting the rules hint to 'true' allows the treeview to alternate background colors in the rows making the data more readable. Signed-off-by: Eduardo Silva <edsiper@gmail.com> Tested-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
parent
76ce94a371
commit
2626e67402
@ -253,7 +253,7 @@ void init_left_tree(void)
|
|||||||
|
|
||||||
gtk_tree_view_set_model(view, model1);
|
gtk_tree_view_set_model(view, model1);
|
||||||
gtk_tree_view_set_headers_visible(view, TRUE);
|
gtk_tree_view_set_headers_visible(view, TRUE);
|
||||||
gtk_tree_view_set_rules_hint(view, FALSE);
|
gtk_tree_view_set_rules_hint(view, TRUE);
|
||||||
|
|
||||||
column = gtk_tree_view_column_new();
|
column = gtk_tree_view_column_new();
|
||||||
gtk_tree_view_append_column(view, column);
|
gtk_tree_view_append_column(view, column);
|
||||||
@ -298,7 +298,7 @@ void init_right_tree(void)
|
|||||||
|
|
||||||
gtk_tree_view_set_model(view, model2);
|
gtk_tree_view_set_model(view, model2);
|
||||||
gtk_tree_view_set_headers_visible(view, TRUE);
|
gtk_tree_view_set_headers_visible(view, TRUE);
|
||||||
gtk_tree_view_set_rules_hint(view, FALSE);
|
gtk_tree_view_set_rules_hint(view, TRUE);
|
||||||
|
|
||||||
column = gtk_tree_view_column_new();
|
column = gtk_tree_view_column_new();
|
||||||
gtk_tree_view_append_column(view, column);
|
gtk_tree_view_append_column(view, column);
|
||||||
|
Loading…
Reference in New Issue
Block a user