[MPlayer-cvslog] r38497 - in trunk/gui/dialog: fileselect.c skinbrowser.c

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


Author: ib
Date: Wed May  1 16:09:01 2024
New Revision: 38497

Log:
Replace gtk_object_set_data_full() with g_object_set_data_full().

gtk_object_set_data_full() was deprecated even before GTK+ 2.0.

Also, replace GTK_OBJECT with G_OBJECT and GtkDestroyNotify with
GDestroyNotify.

Modified:
   trunk/gui/dialog/fileselect.c
   trunk/gui/dialog/skinbrowser.c

Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c	Wed May  1 16:07:25 2024	(r38496)
+++ trunk/gui/dialog/fileselect.c	Wed May  1 16:09:01 2024	(r38497)
@@ -820,7 +820,7 @@ static GtkWidget *CreateFileSelect(void)
 
     List = gtk_combo_new();
     g_object_ref(List);
-    gtk_object_set_data_full(GTK_OBJECT(FileSelector), "List", List, (GtkDestroyNotify)g_object_unref);
+    g_object_set_data_full(G_OBJECT(FileSelector), "List", List, (GDestroyNotify)g_object_unref);
     gtk_widget_show(List);
     gtk_box_pack_start(GTK_BOX(vbox4), List, FALSE, FALSE, 0);
 

Modified: trunk/gui/dialog/skinbrowser.c
==============================================================================
--- trunk/gui/dialog/skinbrowser.c	Wed May  1 16:07:25 2024	(r38496)
+++ trunk/gui/dialog/skinbrowser.c	Wed May  1 16:09:01 2024	(r38497)
@@ -113,7 +113,7 @@ void ShowSkinBrowser( void )
 
  scrolledwindow1=gtk_scrolled_window_new( NULL,NULL );
  g_object_ref( scrolledwindow1 );
- gtk_object_set_data_full( GTK_OBJECT( SkinBrowser ),"scrolledwindow1",scrolledwindow1,(GtkDestroyNotify)g_object_unref );
+ g_object_set_data_full( G_OBJECT( SkinBrowser ),"scrolledwindow1",scrolledwindow1,(GDestroyNotify)g_object_unref );
  gtk_widget_show( scrolledwindow1 );
  gtk_box_pack_start( GTK_BOX( vbox5 ),scrolledwindow1,TRUE,TRUE,0 );
  gtk_container_set_border_width( GTK_CONTAINER( scrolledwindow1 ),2 );
@@ -121,7 +121,7 @@ void ShowSkinBrowser( void )
 
  SkinList=gtk_clist_new( 1 );
  g_object_ref( SkinList );
- gtk_object_set_data_full( GTK_OBJECT( SkinBrowser ),"SkinList",SkinList,(GtkDestroyNotify)g_object_unref );
+ g_object_set_data_full( G_OBJECT( SkinBrowser ),"SkinList",SkinList,(GDestroyNotify)g_object_unref );
  gtk_widget_show( SkinList );
  gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),SkinList );
  gtk_clist_set_column_width( GTK_CLIST( SkinList ),0,80 );


More information about the MPlayer-cvslog mailing list