forked from AuroraMiddleware/gtk
Remove deprecated GtkMenu stuff.
Also, substitute the deprecated functions with the new ones in documentation.
This commit is contained in:
parent
74e6844488
commit
6281645cbb
@ -197,7 +197,7 @@ GtkOptionMenu looks like this:
|
||||
/* menu_item->ref_count == 1 and it is flagged as `floating'.
|
||||
*/
|
||||
|
||||
gtk_menu_append (GTK_MENU (menu), menu_item);
|
||||
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
|
||||
/* menu_item->ref_count still == 1, but it is no longer `floating'.
|
||||
*/
|
||||
|
||||
|
@ -2366,9 +2366,6 @@ gtk_list_item_get_type
|
||||
GtkMenu
|
||||
gtk_menu_new
|
||||
gtk_menu_set_screen
|
||||
gtk_menu_append
|
||||
gtk_menu_prepend
|
||||
gtk_menu_insert
|
||||
gtk_menu_reorder_child
|
||||
gtk_menu_attach
|
||||
gtk_menu_popup
|
||||
|
@ -206,39 +206,6 @@ Creates a new #GtkMenu.
|
||||
@screen:
|
||||
|
||||
|
||||
<!-- ##### MACRO gtk_menu_append ##### -->
|
||||
<para>
|
||||
Adds a new #GtkMenuItem to the end of the menu's item list.
|
||||
</para>
|
||||
|
||||
@menu: a #GtkMenu.
|
||||
@child: The #GtkMenuItem to add.
|
||||
@Deprecated: Use gtk_menu_shell_append() instead.
|
||||
|
||||
|
||||
<!-- ##### MACRO gtk_menu_prepend ##### -->
|
||||
<para>
|
||||
Adds a new #GtkMenuItem to the beginning of the menu's item list.
|
||||
</para>
|
||||
|
||||
@menu: a #GtkMenu.
|
||||
@child: The #GtkMenuItem to add.
|
||||
@Deprecated: Use gtk_menu_shell_prepend() instead.
|
||||
|
||||
|
||||
<!-- ##### MACRO gtk_menu_insert ##### -->
|
||||
<para>
|
||||
Adds a new #GtkMenuItem to the menu's item list at the position
|
||||
indicated by @position.
|
||||
</para>
|
||||
|
||||
@menu: a #GtkMenu.
|
||||
@child: The #GtkMenuItem to add.
|
||||
@pos: The position in the item list where @child is added.
|
||||
Positions are numbered from 0 to n-1.
|
||||
@Deprecated: Use gtk_menu_shell_insert() instead.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_menu_reorder_child ##### -->
|
||||
<para>
|
||||
Moves a #GtkMenuItem to a new position within the #GtkMenu.
|
||||
|
@ -203,12 +203,6 @@ void gtk_menu_set_monitor (GtkMenu *menu,
|
||||
gint gtk_menu_get_monitor (GtkMenu *menu);
|
||||
GList* gtk_menu_get_for_attach_widget (GtkWidget *widget);
|
||||
|
||||
#ifndef GTK_DISABLE_DEPRECATED
|
||||
#define gtk_menu_append(menu,child) gtk_menu_shell_append ((GtkMenuShell *)(menu),(child))
|
||||
#define gtk_menu_prepend(menu,child) gtk_menu_shell_prepend ((GtkMenuShell *)(menu),(child))
|
||||
#define gtk_menu_insert(menu,child,pos) gtk_menu_shell_insert ((GtkMenuShell *)(menu),(child),(pos))
|
||||
#endif /* GTK_DISABLE_DEPRECATED */
|
||||
|
||||
void gtk_menu_set_reserve_toggle_size (GtkMenu *menu,
|
||||
gboolean reserve_toggle_size);
|
||||
gboolean gtk_menu_get_reserve_toggle_size (GtkMenu *menu);
|
||||
|
Loading…
Reference in New Issue
Block a user