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



commit da0fe7c2de63b2cc6a8cc093f4324b00bbb4aa19
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]