diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-11-10 14:18:45 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-11-10 14:18:45 +0000 |
commit | cfd7c13b6c0224f03be2618ea1dd2755d24005cf (patch) | |
tree | 82a549df49fab7511efc0b51566599195a91d538 | |
parent | 8bdc0bf97c72dc9481c1510770e604dfb282c6eb (diff) | |
download | gtk+-cfd7c13b6c0224f03be2618ea1dd2755d24005cf.tar.gz |
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)
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 7 | ||||
-rw-r--r-- | docs/reference/ChangeLog | 4 | ||||
-rw-r--r-- | docs/reference/gtk/gtk-sections.txt | 1 | ||||
-rw-r--r-- | gtk/gtk.symbols | 1 | ||||
-rw-r--r-- | gtk/gtktreeview.c | 25 | ||||
-rw-r--r-- | gtk/gtktreeview.h | 1 |
7 files changed, 46 insertions, 0 deletions
@@ -1,3 +1,10 @@ +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 diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index baadc64233..808906df6e 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +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 diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index e64a7ed69f..910962ff0a 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,7 @@ +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: diff --git a/docs/reference/gtk/gtk-sections.txt b/docs/reference/gtk/gtk-sections.txt index e2f153ae8a..4d71c325c3 100644 --- a/docs/reference/gtk/gtk-sections.txt +++ b/docs/reference/gtk/gtk-sections.txt @@ -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 diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index 3148ac1551..d45b16ab9b 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -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 diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 220c1181d9..1cc915ea36 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -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; @@ -9795,6 +9798,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 * @setting: %TRUE if the tree requires reading across rows diff --git a/gtk/gtktreeview.h b/gtk/gtktreeview.h index 121810352a..609ce6f676 100644 --- a/gtk/gtktreeview.h +++ b/gtk/gtktreeview.h @@ -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, |