annotate gui/mplayer/gtk/sb.c @ 23761:604adfeb3e64

Move QuickTime codecs check together with the other codecs checks.
author diego
date Sat, 14 Jul 2007 14:53:30 +0000
parents 17bf4f4b0715
children 8a0adeba5910
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
2 #include <sys/stat.h>
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
3 #include <glob.h>
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
4 #include <unistd.h>
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
5 #include <string.h>
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
6 #include <stdlib.h>
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
7 #include <stdio.h>
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
8
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
9 #include "sb.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
10 #include "common.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
11
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
12 #include "app.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
13 #include "config.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
14 #include "help_mp.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
15
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
16 #include "../widgets.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
17 #include "app.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
18
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
19 GtkWidget * SkinList = NULL;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
20 char * sbSelectedSkin=NULL;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
21 /* FIXME: Eventually remove the obsolete directory names. */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
22 char * sbMPlayerDirInHome=NULL;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
23 char * sbMPlayerDirInHome_obsolete=NULL;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
24 char * sbMPlayerPrefixDir=NULL;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
25 char * sbMPlayerPrefixDir_obsolete=NULL;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
26
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
27 char * gtkOldSkin=NULL;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
28 static char * prev=NULL;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
29
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
30 GtkWidget * SkinBrowser = NULL;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
31
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
32 void ShowSkinBrowser( void )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
33 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
34 if ( SkinBrowser ) gtkActive( SkinBrowser );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
35 else SkinBrowser=create_SkinBrowser();
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
36 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
37
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
38 void HideSkinBrowser( void )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
39 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
40 if ( !SkinBrowser ) return;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
41 gtk_widget_hide( SkinBrowser );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
42 gtk_widget_destroy( SkinBrowser );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
43 SkinBrowser=NULL;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
44 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
45
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
46 int gtkFillSkinList( gchar * mdir )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
47 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
48 gchar * str[2];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
49 gchar * tmp;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
50 int i;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
51 glob_t gg;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
52 struct stat fs;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
53
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
54 gtkOldSkin=strdup( skinName );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
55 prev=gtkOldSkin;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
56
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
57 str[0]="default";
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
58 str[1]="";
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
59 if ( gtkFindCList( SkinList,str[0] ) == -1 ) gtk_clist_append( GTK_CLIST( SkinList ),str );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
60
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
61 glob( mdir,GLOB_NOSORT,NULL,&gg );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
62 for( i=0;i<(int)gg.gl_pathc;i++ )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
63 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
64 if ( !strcmp( gg.gl_pathv[i],"." ) || !strcmp( gg.gl_pathv[i],".." ) ) continue;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
65 stat( gg.gl_pathv[i],&fs );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
66 if ( S_ISDIR( fs.st_mode ) )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
67 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
68 tmp=strrchr( gg.gl_pathv[i],'/' ); tmp++;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
69 if ( !strcmp( tmp,"default" ) ) continue;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
70 str[0]=tmp;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
71 if ( gtkFindCList( SkinList,str[0] ) == -1 ) gtk_clist_append( GTK_CLIST( SkinList ),str );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
72 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
73 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
74 globfree( &gg );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
75 return 1;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
76 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
77
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
78 static void prButton( GtkObject * object,gpointer user_data )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
79 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
80 if ( sbSelectedSkin )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
81 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
82 switch ( (int)user_data )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
83 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
84 case 0: // cancel
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
85 if ( strcmp( sbSelectedSkin,gtkOldSkin ) ) ChangeSkin( gtkOldSkin );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
86 break;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
87 case 1: // ok
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
88 ChangeSkin( sbSelectedSkin );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
89 if ( skinName ) free( skinName );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
90 skinName=strdup( sbSelectedSkin );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
91 break;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
92 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
93 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
94 HideSkinBrowser();
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
95 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
96
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
97 static void on_SkinList_select_row( GtkCList * clist,gint row,gint column,GdkEvent * bevent,gpointer user_data )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
98 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
99 gtk_clist_get_text( clist,row,0,&sbSelectedSkin );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
100 if ( strcmp( prev,sbSelectedSkin ) )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
101 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
102 prev=sbSelectedSkin;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
103 ChangeSkin( sbSelectedSkin );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
104 gtkActive( SkinBrowser );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
105 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
106 if( !bevent ) return;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
107 if( bevent->type == GDK_2BUTTON_PRESS )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
108 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
109 if ( skinName ) free( skinName );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
110 skinName=strdup( sbSelectedSkin );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
111 HideSkinBrowser();
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
112 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
113 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
114
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
115 GtkWidget * create_SkinBrowser( void )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
116 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
117 GtkWidget * vbox5;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
118 GtkWidget * scrolledwindow1;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
119 GtkWidget * hbuttonbox4;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
120 GtkWidget * Cancel;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
121 GtkWidget * Ok;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
122 GtkAccelGroup * accel_group;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
123
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
124 accel_group = gtk_accel_group_new ();
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
125
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
126 SkinBrowser=gtk_window_new( GTK_WINDOW_TOPLEVEL );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
127 gtk_widget_set_name( SkinBrowser,MSGTR_SkinBrowser );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
128 gtk_object_set_data( GTK_OBJECT( SkinBrowser ),MSGTR_SkinBrowser,SkinBrowser );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
129 gtk_widget_set_usize( SkinBrowser,256,320 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
130 gtk_container_set_border_width( GTK_CONTAINER( SkinBrowser ),1 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
131 GTK_WIDGET_SET_FLAGS( SkinBrowser,GTK_CAN_DEFAULT );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
132 gtk_widget_set_events( SkinBrowser,GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_FOCUS_CHANGE_MASK | GDK_STRUCTURE_MASK | GDK_PROPERTY_CHANGE_MASK | GDK_VISIBILITY_NOTIFY_MASK );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
133 gtk_window_set_title( GTK_WINDOW( SkinBrowser ),MSGTR_SkinBrowser );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
134 gtk_window_set_position( GTK_WINDOW( SkinBrowser ),GTK_WIN_POS_CENTER );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
135 gtk_window_set_policy( GTK_WINDOW( SkinBrowser ),FALSE,FALSE,TRUE );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
136 gtk_window_set_wmclass( GTK_WINDOW( SkinBrowser ),"SkinBrowser","MPlayer" );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
137
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
138 gtk_widget_realize( SkinBrowser );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
139 gtkAddIcon( SkinBrowser );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
140
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
141 vbox5=AddVBox( AddDialogFrame( SkinBrowser ),0 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
142 AddLabel( MSGTR_SKIN_LABEL,vbox5 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
143 AddHSeparator( vbox5 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
144
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
145 scrolledwindow1=gtk_scrolled_window_new( NULL,NULL );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
146 gtk_widget_set_name( scrolledwindow1,"scrolledwindow1" );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
147 gtk_widget_ref( scrolledwindow1 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
148 gtk_object_set_data_full( GTK_OBJECT( SkinBrowser ),"scrolledwindow1",scrolledwindow1,(GtkDestroyNotify)gtk_widget_unref );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
149 gtk_widget_show( scrolledwindow1 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
150 gtk_box_pack_start( GTK_BOX( vbox5 ),scrolledwindow1,TRUE,TRUE,0 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
151 gtk_container_set_border_width( GTK_CONTAINER( scrolledwindow1 ),2 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
152 gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_NEVER,GTK_POLICY_AUTOMATIC );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
153
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
154 SkinList=gtk_clist_new( 1 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
155 gtk_widget_set_name( SkinList,"SkinList" );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
156 gtk_widget_ref( SkinList );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
157 gtk_object_set_data_full( GTK_OBJECT( SkinBrowser ),"SkinList",SkinList,(GtkDestroyNotify)gtk_widget_unref );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
158 gtk_widget_show( SkinList );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
159 gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),SkinList );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
160 gtk_clist_set_column_width( GTK_CLIST( SkinList ),0,80 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
161 gtk_clist_set_selection_mode( GTK_CLIST( SkinList ),GTK_SELECTION_SINGLE );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
162 gtk_clist_column_titles_hide( GTK_CLIST( SkinList ) );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
163 gtk_clist_set_shadow_type( GTK_CLIST( SkinList ),GTK_SHADOW_ETCHED_OUT );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
164
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
165 AddHSeparator( vbox5 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
166
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
167 hbuttonbox4=AddHButtonBox( vbox5 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
168 gtk_button_box_set_layout( GTK_BUTTON_BOX( hbuttonbox4 ),GTK_BUTTONBOX_SPREAD );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
169 gtk_button_box_set_spacing( GTK_BUTTON_BOX( hbuttonbox4 ),10 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
170
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
171 Ok=AddButton( MSGTR_Ok,hbuttonbox4 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
172 Cancel=AddButton( MSGTR_Cancel,hbuttonbox4 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
173
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
174 gtk_widget_add_accelerator( Ok,"clicked",accel_group,GDK_Return,0,GTK_ACCEL_VISIBLE );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
175 gtk_widget_add_accelerator( Cancel,"clicked",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
176
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
177 gtk_signal_connect( GTK_OBJECT( SkinBrowser ),"destroy",GTK_SIGNAL_FUNC( WidgetDestroy ),&SkinBrowser );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
178 gtk_signal_connect( GTK_OBJECT( SkinList ),"select_row",GTK_SIGNAL_FUNC( on_SkinList_select_row ),NULL );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
179 gtk_signal_connect( GTK_OBJECT( Ok ),"clicked",GTK_SIGNAL_FUNC( prButton ),(void *)1 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
180 gtk_signal_connect( GTK_OBJECT( Cancel ),"clicked",GTK_SIGNAL_FUNC( prButton ),(void *)0 );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
181
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
182 if ( ( sbMPlayerDirInHome_obsolete=calloc( 1,strlen( skinDirInHome_obsolete ) + 4 ) ) != NULL )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
183 { strcpy( sbMPlayerDirInHome_obsolete,skinDirInHome_obsolete ); strcat( sbMPlayerDirInHome_obsolete,"/*" ); }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
184 if ( ( sbMPlayerDirInHome=calloc( 1,strlen( skinDirInHome ) + 4 ) ) != NULL )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
185 { strcpy( sbMPlayerDirInHome,skinDirInHome ); strcat( sbMPlayerDirInHome,"/*" ); }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
186 if ( ( sbMPlayerPrefixDir_obsolete=calloc( 1,strlen( skinMPlayerDir ) + 4 ) ) != NULL )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
187 { strcpy( sbMPlayerPrefixDir_obsolete,skinMPlayerDir ); strcat( sbMPlayerPrefixDir_obsolete,"/*" ); }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
188 if ( ( sbMPlayerPrefixDir=calloc( 1,strlen( skinMPlayerDir ) + 4 ) ) != NULL )
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
189 { strcpy( sbMPlayerPrefixDir,skinMPlayerDir ); strcat( sbMPlayerPrefixDir,"/*" ); }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
190
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
191 gtk_window_add_accel_group( GTK_WINDOW( SkinBrowser ),accel_group );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
192 gtk_widget_grab_focus( SkinList );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
193
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
194 return SkinBrowser;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
195 }