Implement a getter for headers-clickable. (#163851, Richard Hult)

2005-11-10  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c: Implement a getter for headers-clickable.
	(#163851, Richard Hult)
This commit is contained in:
Matthias Clasen
2005-11-10 14:05:17 +00:00
committed by Matthias Clasen
parent 6659bc7689
commit 7c559c84bd
3 changed files with 29 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2005-11-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c: Implement a getter for headers-clickable.
(#163851, Richard Hult)
2005-11-09 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c

View File

@@ -1,3 +1,8 @@
2005-11-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c: Implement a getter for headers-clickable.
(#163851, Richard Hult)
2005-11-09 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c

View File

@@ -454,6 +454,7 @@ static void gtk_tree_view_tree_window_to_tree_coords (GtkTreeView *tree_view,
gint *tx,
gint *ty);
static gboolean gtk_tree_view_get_headers_clickable (GtkTreeView *tree_view);
static GtkContainerClass *parent_class = NULL;
static guint tree_view_signals [LAST_SIGNAL] = { 0 };
@@ -1265,6 +1266,9 @@ gtk_tree_view_get_property (GObject *object,
case PROP_HEADERS_VISIBLE:
g_value_set_boolean (value, gtk_tree_view_get_headers_visible (tree_view));
break;
case PROP_HEADERS_CLICKABLE:
g_value_set_boolean (value, gtk_tree_view_get_headers_clickable (tree_view));
break;
case PROP_EXPANDER_COLUMN:
g_value_set_object (value, tree_view->priv->expander_column);
break;
@@ -9810,6 +9814,21 @@ gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view,
}
static gboolean
gtk_tree_view_get_headers_clickable (GtkTreeView *tree_view)
{
GList *list;
g_return_val_if_fail (GTK_IS_TREE_VIEW (tree_view), FALSE);
for (list = tree_view->priv->columns; list; list = list->next)
if (!GTK_TREE_VIEW_COLUMN (list->data)->clickable)
return FALSE;
return TRUE;
}
/**
* gtk_tree_view_set_rules_hint
* @tree_view: a #GtkTreeView