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

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


Author: ib
Date: Wed May  1 16:07:25 2024
New Revision: 38496

Log:
Replace gtk_widget_ref() and gtk_widget_unref().

Replace it with g_object_ref() and g_object_unref().

The GUI should preferably use a more recent GTK+ 2 style.

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:03:56 2024	(r38495)
+++ trunk/gui/dialog/fileselect.c	Wed May  1 16:07:25 2024	(r38496)
@@ -819,8 +819,8 @@ static GtkWidget *CreateFileSelect(void)
     gtkAddHSeparator(vbox4);
 
     List = gtk_combo_new();
-    gtk_widget_ref(List);
-    gtk_object_set_data_full(GTK_OBJECT(FileSelector), "List", List, (GtkDestroyNotify)gtk_widget_unref);
+    g_object_ref(List);
+    gtk_object_set_data_full(GTK_OBJECT(FileSelector), "List", List, (GtkDestroyNotify)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:03:56 2024	(r38495)
+++ trunk/gui/dialog/skinbrowser.c	Wed May  1 16:07:25 2024	(r38496)
@@ -112,16 +112,16 @@ void ShowSkinBrowser( void )
  vbox5=gtkAddVBox( gtkAddDialogFrame( SkinBrowser ),0 );
 
  scrolledwindow1=gtk_scrolled_window_new( NULL,NULL );
- gtk_widget_ref( scrolledwindow1 );
- gtk_object_set_data_full( GTK_OBJECT( SkinBrowser ),"scrolledwindow1",scrolledwindow1,(GtkDestroyNotify)gtk_widget_unref );
+ g_object_ref( scrolledwindow1 );
+ gtk_object_set_data_full( GTK_OBJECT( SkinBrowser ),"scrolledwindow1",scrolledwindow1,(GtkDestroyNotify)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 );
  gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_NEVER,GTK_POLICY_AUTOMATIC );
 
  SkinList=gtk_clist_new( 1 );
- gtk_widget_ref( SkinList );
- gtk_object_set_data_full( GTK_OBJECT( SkinBrowser ),"SkinList",SkinList,(GtkDestroyNotify)gtk_widget_unref );
+ g_object_ref( SkinList );
+ gtk_object_set_data_full( GTK_OBJECT( SkinBrowser ),"SkinList",SkinList,(GtkDestroyNotify)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