[MPlayer-cvslog] r38570 - trunk/gui/dialog/skinbrowser.c

ib subversion at mplayerhq.hu
Fri Jun 14 13:45:40 EEST 2024


Author: ib
Date: Fri Jun 14 13:45:40 2024
New Revision: 38570

Log:
Move prButton() to a different location.

This is purely cosmetic.

Modified:
   trunk/gui/dialog/skinbrowser.c

Modified: trunk/gui/dialog/skinbrowser.c
==============================================================================
--- trunk/gui/dialog/skinbrowser.c	Fri Jun 14 13:44:59 2024	(r38569)
+++ trunk/gui/dialog/skinbrowser.c	Fri Jun 14 13:45:40 2024	(r38570)
@@ -75,26 +75,6 @@ static void FillSkinList (char *dir)
  free(mdir);
 }
 
-static void prButton( GtkButton * button,gpointer user_data )
-{
- (void) button;
-
- if ( sbSelectedSkin )
- {
-  switch ( GPOINTER_TO_INT(user_data) )
-   {
-    case 0: // cancel
-      if ( strcmp( sbSelectedSkin,skinName ) ) uiChangeSkin( skinName );
-      break;
-   case 1: // ok
-      free( skinName );
-      skinName=strdup( sbSelectedSkin );
-      break;
-  }
- }
- gtk_widget_destroy( SkinBrowser );
-}
-
 static void on_SkinList_select_row( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
 {
  (void) column;
@@ -117,6 +97,26 @@ static void on_SkinList_select_row( GtkC
   }
 }
 
+static void prButton( GtkButton * button,gpointer user_data )
+{
+ (void) button;
+
+ if ( sbSelectedSkin )
+ {
+  switch ( GPOINTER_TO_INT(user_data) )
+   {
+    case 0: // cancel
+      if ( strcmp( sbSelectedSkin,skinName ) ) uiChangeSkin( skinName );
+      break;
+   case 1: // ok
+      free( skinName );
+      skinName=strdup( sbSelectedSkin );
+      break;
+  }
+ }
+ gtk_widget_destroy( SkinBrowser );
+}
+
 static gboolean window_delete (GtkWidget *widget, GdkEvent *event, gpointer user_data)
 {
   (void) widget;


More information about the MPlayer-cvslog mailing list