[gtk+/gtk-2-90: 9/158] Remove deprecated GtkMenuItem function
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-90: 9/158] Remove deprecated GtkMenuItem function
- Date: Thu, 11 Mar 2010 02:44:19 +0000 (UTC)
commit dc6c109dd4c99578c486eeae52904d7a2c873f93
Author: Christian Dywan <christian twotoasts de>
Date: Wed Oct 7 17:43:34 2009 +0200
Remove deprecated GtkMenuItem function
gtk/gtkmenuitem.c | 18 ------------------
gtk/gtkmenuitem.h | 5 -----
2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index 3d47499..57e7cfb 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -803,24 +803,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);
diff --git a/gtk/gtkmenuitem.h b/gtk/gtkmenuitem.h
index b8a1f1a..7e60087 100644
--- a/gtk/gtkmenuitem.h
+++ b/gtk/gtkmenuitem.h
@@ -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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]