mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 18:00:09 +00:00
Remove deprecated GtkMenuItem function
This commit is contained in:
parent
2f1a59c0f2
commit
025eebb49d
@ -812,24 +812,6 @@ gtk_menu_item_get_submenu (GtkMenuItem *menu_item)
|
|||||||
return menu_item->submenu;
|
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,
|
void _gtk_menu_item_set_placement (GtkMenuItem *menu_item,
|
||||||
GtkSubmenuPlacement placement);
|
GtkSubmenuPlacement placement);
|
||||||
|
|
||||||
|
@ -135,11 +135,6 @@ void _gtk_menu_item_popup_submenu (GtkWidget *menu_item,
|
|||||||
gboolean with_delay);
|
gboolean with_delay);
|
||||||
void _gtk_menu_item_popdown_submenu (GtkWidget *menu_item);
|
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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GTK_MENU_ITEM_H__ */
|
#endif /* __GTK_MENU_ITEM_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user