diff --git a/ChangeLog b/ChangeLog index 21cc84098d..342e0ad120 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-21 Matthias Clasen + + * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix the registration + of the grid-lines property (#345456, Murray Cumming) + 2006-06-21 Kristian Rietveld Allocate space for the grid lines when they are enabled. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 21cc84098d..342e0ad120 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2006-06-21 Matthias Clasen + + * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix the registration + of the grid-lines property (#345456, Murray Cumming) + 2006-06-21 Kristian Rietveld Allocate space for the grid lines when they are enabled. diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 77f65fd66d..cf4be7fce0 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -713,11 +713,12 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) g_object_class_install_property (o_class, PROP_ENABLE_GRID_LINES, - g_param_spec_boolean ("enable-grid-lines", - P_("Enable Grid Lines"), - P_("Whether grid lines should be drawn in the tree view"), - FALSE, - GTK_PARAM_READWRITE)); + g_param_spec_enum ("enable-grid-lines", + P_("Enable Grid Lines"), + P_("Whether grid lines should be drawn in the tree view"), + GTK_TYPE_TREE_VIEW_GRID_LINES, + GTK_TREE_VIEW_GRID_LINES_NONE, + GTK_PARAM_READWRITE)); g_object_class_install_property (o_class, PROP_ENABLE_TREE_LINES, @@ -1381,7 +1382,7 @@ gtk_tree_view_set_property (GObject *object, tree_view->priv->rubber_banding_enable = g_value_get_boolean (value); break; case PROP_ENABLE_GRID_LINES: - gtk_tree_view_set_grid_lines (tree_view, g_value_get_boolean (value)); + gtk_tree_view_set_grid_lines (tree_view, g_value_get_enum (value)); break; case PROP_ENABLE_TREE_LINES: gtk_tree_view_set_enable_tree_lines (tree_view, g_value_get_boolean (value)); @@ -1452,7 +1453,7 @@ gtk_tree_view_get_property (GObject *object, g_value_set_boolean (value, tree_view->priv->rubber_banding_enable); break; case PROP_ENABLE_GRID_LINES: - g_value_set_boolean (value, tree_view->priv->grid_lines); + g_value_set_enum (value, tree_view->priv->grid_lines); break; case PROP_ENABLE_TREE_LINES: g_value_set_boolean (value, tree_view->priv->tree_lines_enabled);