[MPlayer-users] Patch for GUI
pwilkins at lashwhip.com
pwilkins at lashwhip.com
Sun Feb 17 22:06:02 CET 2002
Hi,
Here are some small changes to the GUI. These changes do the following
thinge to the file selection dialog:
1) Make the dafault size larger.
2) Make it resizable.
Patch for Gui/mplayer/gtk/fs.c:
-Paul
--- main/Gui/mplayer/gtk/fs.c Tue Dec 18 16:33:02 2001
+++ ../new/main/Gui/mplayer/gtk/fs.c Sun Feb 17 15:36:28 2002
@@ -428,15 +428,15 @@
GdkBitmap * upmask;
GtkStyle * upstyle;
- fsFileSelect=gtk_window_new( GTK_WINDOW_DIALOG );
+ fsFileSelect=gtk_window_new( GTK_WINDOW_TOPLEVEL );
gtk_widget_set_name( fsFileSelect,"fsFileSelect" );
gtk_object_set_data( GTK_OBJECT( fsFileSelect ),"fsFileSelect",fsFileSelect );
- gtk_widget_set_usize( fsFileSelect,416,256 );
+ gtk_widget_set_usize( fsFileSelect,600,500 );
GTK_WIDGET_SET_FLAGS( fsFileSelect,GTK_CAN_DEFAULT );
gtk_widget_set_events( fsFileSelect,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 );
gtk_window_set_title( GTK_WINDOW( fsFileSelect ),MSGTR_FileSelect );
gtk_window_set_position( GTK_WINDOW( fsFileSelect ),GTK_WIN_POS_CENTER );
- gtk_window_set_policy( GTK_WINDOW( fsFileSelect ),FALSE,FALSE,TRUE );
+ gtk_window_set_policy( GTK_WINDOW( fsFileSelect ),TRUE,TRUE,TRUE );
fsColorMap=gdk_colormap_get_system();
style=gtk_widget_get_style( fsFileSelect );
@@ -495,7 +495,7 @@
gtk_object_set_data_full( GTK_OBJECT( fsFileSelect ),"hbox4",hbox4,
( GtkDestroyNotify ) gtk_widget_unref );
gtk_widget_show( hbox4 );
- gtk_box_pack_start( GTK_BOX( vbox4 ),hbox4,TRUE,TRUE,0 );
+ gtk_box_pack_start( GTK_BOX( vbox4 ),hbox4,FALSE,FALSE,0 );
fsCombo4=gtk_combo_new();
gtk_widget_set_name( fsCombo4,"fsCombo4" );
More information about the MPlayer-users
mailing list