Commit 52a86bc6 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Make the headers-visible property readwrite instead of just writable, and

2005-01-13  Matthias Clasen <mclasen@redhat.com>

	* gtk/gtktreeview.c: (gtk_tree_view_class_init),
	(gtk_tree_view_set_headers_clickable): Make the headers-visible
	property readwrite instead of just writable, and remove the
	g_return_if_fail check that there is a model when setting this
	property. Also improve the blurb.  (#163851, Richard Hult)
parent 4fa381d1
2005-01-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_set_headers_clickable): Make the headers-visible
property readwrite instead of just writable, and remove the
g_return_if_fail check that there is a model when setting this
property. Also improve the blurb. (#163851, Richard Hult)
2005-01-12 Owen Taylor <otaylor@redhat.com> 2005-01-12 Owen Taylor <otaylor@redhat.com>
* configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
......
2005-01-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_set_headers_clickable): Make the headers-visible
property readwrite instead of just writable, and remove the
g_return_if_fail check that there is a model when setting this
property. Also improve the blurb. (#163851, Richard Hult)
2005-01-12 Owen Taylor <otaylor@redhat.com> 2005-01-12 Owen Taylor <otaylor@redhat.com>
* configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
......
2005-01-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_set_headers_clickable): Make the headers-visible
property readwrite instead of just writable, and remove the
g_return_if_fail check that there is a model when setting this
property. Also improve the blurb. (#163851, Richard Hult)
2005-01-12 Owen Taylor <otaylor@redhat.com> 2005-01-12 Owen Taylor <otaylor@redhat.com>
* configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
......
...@@ -579,7 +579,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) ...@@ -579,7 +579,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
g_object_class_install_property (o_class, g_object_class_install_property (o_class,
PROP_HEADERS_VISIBLE, PROP_HEADERS_VISIBLE,
g_param_spec_boolean ("headers_visible", g_param_spec_boolean ("headers_visible",
P_("Visible"), P_("Headers Visible"),
P_("Show the column header buttons"), P_("Show the column header buttons"),
TRUE, TRUE,
G_PARAM_READWRITE)); G_PARAM_READWRITE));
...@@ -590,7 +590,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) ...@@ -590,7 +590,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
P_("Headers Clickable"), P_("Headers Clickable"),
P_("Column headers respond to click events"), P_("Column headers respond to click events"),
FALSE, FALSE,
G_PARAM_WRITABLE)); G_PARAM_READWRITE));
g_object_class_install_property (o_class, g_object_class_install_property (o_class,
PROP_EXPANDER_COLUMN, PROP_EXPANDER_COLUMN,
...@@ -9607,7 +9607,6 @@ gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view, ...@@ -9607,7 +9607,6 @@ gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view,
GList *list; GList *list;
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view)); g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
g_return_if_fail (tree_view->priv->model != NULL);
for (list = tree_view->priv->columns; list; list = list->next) for (list = tree_view->priv->columns; list; list = list->next)
gtk_tree_view_column_set_clickable (GTK_TREE_VIEW_COLUMN (list->data), setting); gtk_tree_view_column_set_clickable (GTK_TREE_VIEW_COLUMN (list->data), setting);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment