summaryrefslogtreecommitdiff
path: root/gtk/gtktreemenu.h
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-23 15:48:14 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2011-01-04 23:37:07 +0900
commit84a726c3ce9df0ed3bd79d997c93511bcd190548 (patch)
tree713e8b509a001a01a3d6db399aaacbb201cc4190 /gtk/gtktreemenu.h
parente6283453948c01abc8644ba20011ec420faffff0 (diff)
downloadgtk+-84a726c3ce9df0ed3bd79d997c93511bcd190548.tar.gz
Support grid mode in GtkTreeMenu
Added properties "wrap-width", "row-span-column" and "column-span-column" to allow grid style menus from treemodels. Handling row data changes appropriately.
Diffstat (limited to 'gtk/gtktreemenu.h')
-rw-r--r--gtk/gtktreemenu.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/gtk/gtktreemenu.h b/gtk/gtktreemenu.h
index 472c7ce18c..812c820ef7 100644
--- a/gtk/gtktreemenu.h
+++ b/gtk/gtktreemenu.h
@@ -85,21 +85,30 @@ GtkTreeModel *gtk_tree_menu_get_model (GtkTreeMenu
void gtk_tree_menu_set_root (GtkTreeMenu *menu,
GtkTreePath *path);
GtkTreePath *gtk_tree_menu_get_root (GtkTreeMenu *menu);
-gboolean gtk_tree_menu_get_tearoff (GtkTreeMenu *menu);
-void gtk_tree_menu_set_tearoff (GtkTreeMenu *menu,
- gboolean tearoff);
+gboolean gtk_tree_menu_get_tearoff (GtkTreeMenu *menu);
+void gtk_tree_menu_set_tearoff (GtkTreeMenu *menu,
+ gboolean tearoff);
+gint gtk_tree_menu_get_wrap_width (GtkTreeMenu *menu);
+void gtk_tree_menu_set_wrap_width (GtkTreeMenu *menu,
+ gint width);
+gint gtk_tree_menu_get_row_span_column (GtkTreeMenu *menu);
+void gtk_tree_menu_set_row_span_column (GtkTreeMenu *menu,
+ gint row_span);
+gint gtk_tree_menu_get_column_span_column (GtkTreeMenu *menu);
+void gtk_tree_menu_set_column_span_column (GtkTreeMenu *menu,
+ gint column_span);
+GtkTreeViewRowSeparatorFunc gtk_tree_menu_get_row_separator_func (GtkTreeMenu *menu);
void gtk_tree_menu_set_row_separator_func (GtkTreeMenu *menu,
GtkTreeViewRowSeparatorFunc func,
gpointer data,
GDestroyNotify destroy);
-GtkTreeViewRowSeparatorFunc gtk_tree_menu_get_row_separator_func (GtkTreeMenu *menu);
+GtkTreeMenuHeaderFunc gtk_tree_menu_get_header_func (GtkTreeMenu *menu);
void gtk_tree_menu_set_header_func (GtkTreeMenu *menu,
GtkTreeMenuHeaderFunc func,
gpointer data,
GDestroyNotify destroy);
-GtkTreeMenuHeaderFunc gtk_tree_menu_get_header_func (GtkTreeMenu *menu);
G_END_DECLS