[gedit/wip/redesign2] Fix return value of menu button



commit c489a89d1c057dcbc9eb9166c29fdcf71b2383f9
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Jan 5 20:26:51 2014 +0100

    Fix return value of menu button

 gedit/gedit-open-menu-button.c |    4 ++--
 gedit/gedit-open-menu-button.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-open-menu-button.c b/gedit/gedit-open-menu-button.c
index 696fbc3..212a7e1 100644
--- a/gedit/gedit-open-menu-button.c
+++ b/gedit/gedit-open-menu-button.c
@@ -153,7 +153,7 @@ gedit_open_menu_button_class_init (GeditOpenMenuButtonClass *klass)
                                                           G_PARAM_STATIC_STRINGS));
 }
 
-GtkMenuItem *
+GtkMenuButton *
 gedit_open_menu_button_new (void)
 {
        GeditOpenMenuButton *button;
@@ -162,7 +162,7 @@ gedit_open_menu_button_new (void)
                               "direction", GTK_ARROW_DOWN,
                               NULL);
 
-       return GTK_MENU_ITEM (button);
+       return GTK_MENU_BUTTON (button);
 }
 
 /* ex:set ts=8 noet: */
diff --git a/gedit/gedit-open-menu-button.h b/gedit/gedit-open-menu-button.h
index 4320030..ae5d3fc 100644
--- a/gedit/gedit-open-menu-button.h
+++ b/gedit/gedit-open-menu-button.h
@@ -49,7 +49,7 @@ struct _GeditOpenMenuButtonClass
 
 GType            gedit_open_menu_button_get_type (void) G_GNUC_CONST;
 
-GtkMenuItem     *gedit_open_menu_button_new      (void);
+GtkMenuButton   *gedit_open_menu_button_new      (void);
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]