[MPlayer-cvslog] r38502 - trunk/gui/dialog/menu.c

ib subversion at mplayerhq.hu
Wed May 1 16:16:35 EEST 2024


Author: ib
Date: Wed May  1 16:16:35 2024
New Revision: 38502

Log:
Replace gtk_menu_append() with gtk_menu_shell_append().

gtk_menu_append() was deprecated even before GTK+ 2.0.

Modified:
   trunk/gui/dialog/menu.c

Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c	Wed May  1 16:15:46 2024	(r38501)
+++ trunk/gui/dialog/menu.c	Wed May  1 16:16:35 2024	(r38502)
@@ -85,7 +85,7 @@ static GtkWidget * AddMenuCheckItem( Gtk
  gtk_box_pack_start (GTK_BOX (hbox), Label, FALSE, FALSE, 0);
  gtk_container_add (GTK_CONTAINER (Item), hbox);
 
- gtk_menu_append( GTK_MENU( Menu ),Item );
+ gtk_menu_shell_append(GTK_MENU_SHELL(Menu), Item);
 
  gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(Item),state);
  g_signal_connect_swapped( G_OBJECT(Item),"activate",
@@ -121,7 +121,7 @@ static GtkWidget * AddMenuItem( GtkWidge
  gtk_container_add (GTK_CONTAINER (Item), hbox);
 
 
- gtk_menu_append( GTK_MENU( Menu ), Item );
+ gtk_menu_shell_append(GTK_MENU_SHELL(Menu), Item);
  g_signal_connect_swapped( G_OBJECT(Item),"activate",
    G_CALLBACK(ActivateMenuItem), GINT_TO_POINTER(message) );
 
@@ -168,7 +168,7 @@ static GtkWidget * AddSubMenu( GtkWidget
  gtk_box_pack_start (GTK_BOX (hbox), Label, FALSE, FALSE, 0);
  gtk_container_add (GTK_CONTAINER (SubItem), hbox);
 
- gtk_menu_append( GTK_MENU( Menu ),SubItem );
+ gtk_menu_shell_append(GTK_MENU_SHELL(Menu), SubItem);
  gtk_menu_item_set_submenu( GTK_MENU_ITEM( SubItem ),Item );
 
  gtk_widget_show_all( SubItem );


More information about the MPlayer-cvslog mailing list