[MPlayer-cvslog] r36152 - in trunk/gui/dialog: equalizer.c fileselect.c preferences.c skinbrowser.c url.c

ib subversion at mplayerhq.hu
Thu Apr 4 20:01:27 CEST 2013


Author: ib
Date: Thu Apr  4 20:01:27 2013
New Revision: 36152

Log:
Remove GTK_WIDGET_SET_FLAGS(, GTK_CAN_DEFAULT).

It's pointless to set this on the window.

There is an accelerator set for the return key.

Modified:
   trunk/gui/dialog/equalizer.c
   trunk/gui/dialog/fileselect.c
   trunk/gui/dialog/preferences.c
   trunk/gui/dialog/skinbrowser.c
   trunk/gui/dialog/url.c

Modified: trunk/gui/dialog/equalizer.c
==============================================================================
--- trunk/gui/dialog/equalizer.c	Thu Apr  4 15:27:41 2013	(r36151)
+++ trunk/gui/dialog/equalizer.c	Thu Apr  4 20:01:27 2013	(r36152)
@@ -589,7 +589,6 @@ GtkWidget * CreateEquConfig( void )
 
   EquConfig=gtk_window_new( GTK_WINDOW_TOPLEVEL );
   gtk_widget_set_usize( EquConfig,350,260 );
-  GTK_WIDGET_SET_FLAGS( EquConfig,GTK_CAN_DEFAULT );
   gtk_window_set_title( GTK_WINDOW( EquConfig ),MSGTR_ConfigureEqualizer );
   gtk_window_set_position( GTK_WINDOW( EquConfig ),GTK_WIN_POS_CENTER );
 //  gtk_window_set_modal( GTK_WINDOW( EquConfig ),TRUE );

Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c	Thu Apr  4 15:27:41 2013	(r36151)
+++ trunk/gui/dialog/fileselect.c	Thu Apr  4 20:01:27 2013	(r36152)
@@ -606,7 +606,6 @@ static GtkWidget *CreateFileSelect(void)
 
     FileSelector = gtk_window_new(GTK_WINDOW_TOPLEVEL);
     gtk_widget_set_usize(FileSelector, 512, 300);
-    GTK_WIDGET_SET_FLAGS(FileSelector, GTK_CAN_DEFAULT);
     gtk_widget_set_events(FileSelector, 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(FileSelector), MSGTR_FileSelect);
     gtk_window_set_position(GTK_WINDOW(FileSelector), GTK_WIN_POS_CENTER);

Modified: trunk/gui/dialog/preferences.c
==============================================================================
--- trunk/gui/dialog/preferences.c	Thu Apr  4 15:27:41 2013	(r36151)
+++ trunk/gui/dialog/preferences.c	Thu Apr  4 20:01:27 2013	(r36152)
@@ -1733,7 +1733,6 @@ GtkWidget * CreateDXR3Config( void )
 
  DXR3Config=gtk_window_new( GTK_WINDOW_TOPLEVEL );
 // gtk_widget_set_usize( DXR3Config,300,156 );
- GTK_WIDGET_SET_FLAGS( DXR3Config,GTK_CAN_DEFAULT );
  gtk_window_set_title( GTK_WINDOW( DXR3Config ),"DXR3/H+" );
  gtk_window_set_position( GTK_WINDOW( DXR3Config ),GTK_WIN_POS_CENTER );
  gtk_window_set_policy( GTK_WINDOW( DXR3Config ),FALSE,FALSE,FALSE );

Modified: trunk/gui/dialog/skinbrowser.c
==============================================================================
--- trunk/gui/dialog/skinbrowser.c	Thu Apr  4 15:27:41 2013	(r36151)
+++ trunk/gui/dialog/skinbrowser.c	Thu Apr  4 20:01:27 2013	(r36152)
@@ -101,7 +101,6 @@ static GtkWidget * CreateSkinBrowser( vo
  SkinBrowser=gtk_window_new( GTK_WINDOW_TOPLEVEL );
  gtk_widget_set_usize( SkinBrowser,256,320 );
  gtk_container_set_border_width( GTK_CONTAINER( SkinBrowser ),1 );
- GTK_WIDGET_SET_FLAGS( SkinBrowser,GTK_CAN_DEFAULT );
  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 );
  gtk_window_set_title( GTK_WINDOW( SkinBrowser ),MSGTR_SkinBrowser );
  gtk_window_set_position( GTK_WINDOW( SkinBrowser ),GTK_WIN_POS_CENTER );

Modified: trunk/gui/dialog/url.c
==============================================================================
--- trunk/gui/dialog/url.c	Thu Apr  4 15:27:41 2013	(r36151)
+++ trunk/gui/dialog/url.c	Thu Apr  4 20:01:27 2013	(r36152)
@@ -87,7 +87,6 @@ static GtkWidget *CreateURLDialog(void)
 
     URLDialog = gtk_window_new(GTK_WINDOW_TOPLEVEL);
     gtk_widget_set_usize(URLDialog, 384, -1);
-    GTK_WIDGET_SET_FLAGS(URLDialog, GTK_CAN_DEFAULT);
     gtk_window_set_title(GTK_WINDOW(URLDialog), MSGTR_Network);
     gtk_window_set_position(GTK_WINDOW(URLDialog), GTK_WIN_POS_CENTER);
     gtk_window_set_policy(GTK_WINDOW(URLDialog), TRUE, TRUE, FALSE);


More information about the MPlayer-cvslog mailing list