]> Pileus Git - ~andy/gtk/commitdiff
Remove deprecated GtkMenuItem function
authorChristian Dywan <christian@twotoasts.de>
Wed, 7 Oct 2009 15:43:34 +0000 (17:43 +0200)
committerJavier Jardón <jjardon@gnome.org>
Sun, 2 May 2010 23:39:49 +0000 (01:39 +0200)
gtk/gtkmenuitem.c
gtk/gtkmenuitem.h

index 8e03b99c733aa1753a7a0d6fb817be2c41f829fc..76fab0d24d39f67db0d14075638b0056e35d1871 100644 (file)
@@ -812,24 +812,6 @@ gtk_menu_item_get_submenu (GtkMenuItem *menu_item)
   return menu_item->submenu;
 }
 
-/**
- * gtk_menu_item_remove_submenu:
- * @menu_item: a #GtkMenuItem
- *
- * Removes the widget's submenu.
- *
- * Deprecated: 2.12: gtk_menu_item_remove_submenu() is deprecated and
- *                   should not be used in newly written code. Use
- *                   gtk_menu_item_set_submenu() instead.
- **/
-void
-gtk_menu_item_remove_submenu (GtkMenuItem *menu_item)
-{
-  g_return_if_fail (GTK_IS_MENU_ITEM (menu_item));
-
-  gtk_menu_item_set_submenu (menu_item, NULL);
-}
-
 void _gtk_menu_item_set_placement (GtkMenuItem         *menu_item,
                                   GtkSubmenuPlacement  placement);
 
index b8a1f1a91f85766328abe95d82112b054e457481..7e60087473ca31d4eb38f97abad3c73f7a693c45 100644 (file)
@@ -135,11 +135,6 @@ void      _gtk_menu_item_popup_submenu        (GtkWidget           *menu_item,
                                                gboolean             with_delay);
 void      _gtk_menu_item_popdown_submenu      (GtkWidget           *menu_item);
 
-#ifndef GTK_DISABLE_DEPRECATED
-void       gtk_menu_item_remove_submenu       (GtkMenuItem         *menu_item);
-#define gtk_menu_item_right_justify(menu_item) gtk_menu_item_set_right_justified ((menu_item), TRUE)
-#endif /* GTK_DISABLE_DEPRECATED */
-
 G_END_DECLS
 
 #endif /* __GTK_MENU_ITEM_H__ */