GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit cfd7c13b authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent 8bdc0bf9
2005-11-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:
* gtk/gtktreeview.h:
* gtk/gtktreeview.c: Implement a getter for headers-clickable.
(#163851, Richard Hult)
2005-11-10 Michael Natterer <mitch@imendio.com>
Applied patch from maemo-gtk that addresses many issues wrt
......
2005-11-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:
* gtk/gtktreeview.h:
* gtk/gtktreeview.c: Implement a getter for headers-clickable.
(#163851, Richard Hult)
2005-11-10 Michael Natterer <mitch@imendio.com>
Applied patch from maemo-gtk that addresses many issues wrt
......
2005-11-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk-sections.txt: Add new api.
2005-11-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk-update-icon-cache.xml:
......
......@@ -4104,6 +4104,7 @@ gtk_tree_view_set_vadjustment
gtk_tree_view_get_headers_visible
gtk_tree_view_set_headers_visible
gtk_tree_view_columns_autosize
gtk_tree_view_get_headers_clickable
gtk_tree_view_set_headers_clickable
gtk_tree_view_set_rules_hint
gtk_tree_view_get_rules_hint
......
......@@ -3626,6 +3626,7 @@ gtk_tree_view_get_enable_search
gtk_tree_view_get_expander_column
gtk_tree_view_get_fixed_height_mode
gtk_tree_view_get_hadjustment
gtk_tree_view_get_headers_clickable
gtk_tree_view_get_headers_visible
gtk_tree_view_get_hover_expand
gtk_tree_view_get_hover_selection
......
......@@ -1265,6 +1265,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;
......@@ -9794,6 +9797,28 @@ gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view,
}
/**
* gtk_tree_view_get_headers_clickable:
* @tree_view: A #GtkTreeView.
*
* Return value: %TRUE if all header columns are clickable, otherwise %FALSE
*
* Since: 2.10
**/
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
......
......@@ -149,6 +149,7 @@ gboolean gtk_tree_view_get_headers_visible (GtkTreeView
void gtk_tree_view_set_headers_visible (GtkTreeView *tree_view,
gboolean headers_visible);
void gtk_tree_view_columns_autosize (GtkTreeView *tree_view);
gboolean gtk_tree_view_get_headers_clickable (GtkTreeView *tree_view);
void gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view,
gboolean setting);
void gtk_tree_view_set_rules_hint (GtkTreeView *tree_view,
......
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