[gtk+/combo-refactor: 33/49] Added gtk_tree_menu_get_area().



commit 91f785c4937c28ef88ac20a9aa559a77c6da1b2b
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]