GNOME Bugzilla – Bug 740851
[PATCH] widget-factory: Add a row separator to the tree view
Last modified: 2014-11-30 13:54:56 UTC
Created attachment 291719 [details] [review] patch-v1 This adds a row separator to the tree view on page 1 of the gtk3-widget-factory by adding an additional column to the list store and setting a GtkTreeViewRowSeparatorFunc. Why: * The color of the separator is wrong in gtk 3.14/trunk if the window is not focused. Having it in gtk3-widget-factory will prevent such bugs in the future. * There are drawing bugs with non-Adwaita themes which I'd like to reference/show using the gtk3-widget-factory as an example.
Review of attachment 291719 [details] [review]: Looks fine, otherwise ::: demos/widget-factory/widget-factory.c @@ +1096,3 @@ + is_sep = g_value_get_boolean (&value); + g_value_unset (&value); + return is_sep; I would write this as gtk_tree_model_get (model, iter, 4, &is_sep, -1); return is_sep;
Ended up putting the separator into the tree on page 3, since the one on page 1 is reorderable, and thus seems an odd fit for a separator.
Thanks!