[gtk+/combo-refactor] Added gtk_tree_menu_get_area().
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/combo-refactor] Added gtk_tree_menu_get_area().
- Date: Fri, 26 Nov 2010 12:38:45 +0000 (UTC)
commit d32d7c8f9c4d2bcd7c5c206c09273ce67ed20df4
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Fri Nov 26 13:20:14 2010 +0900
Added gtk_tree_menu_get_area().
gtk/gtktreemenu.c | 8 ++++++++
gtk/gtktreemenu.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreemenu.c b/gtk/gtktreemenu.c
index 7c2d9df..b8d479d 100644
--- a/gtk/gtktreemenu.c
+++ b/gtk/gtktreemenu.c
@@ -1495,6 +1495,14 @@ gtk_tree_menu_new_full (GtkCellArea *area,
NULL);
}
+GtkCellArea *
+gtk_tree_menu_get_area (GtkTreeMenu *menu)
+{
+ g_return_val_if_fail (GTK_IS_TREE_MENU (menu), NULL);
+
+ return menu->priv->area;
+}
+
void
gtk_tree_menu_set_model (GtkTreeMenu *menu,
GtkTreeModel *model)
diff --git a/gtk/gtktreemenu.h b/gtk/gtktreemenu.h
index 812c820..24523e2 100644
--- a/gtk/gtktreemenu.h
+++ b/gtk/gtktreemenu.h
@@ -79,6 +79,7 @@ GtkWidget *gtk_tree_menu_new_with_area (GtkCellArea
GtkWidget *gtk_tree_menu_new_full (GtkCellArea *area,
GtkTreeModel *model,
GtkTreePath *root);
+GtkCellArea *gtk_tree_menu_get_area (GtkTreeMenu *menu);
void gtk_tree_menu_set_model (GtkTreeMenu *menu,
GtkTreeModel *model);
GtkTreeModel *gtk_tree_menu_get_model (GtkTreeMenu *menu);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]