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

ib subversion at mplayerhq.hu
Tue Oct 5 12:46:22 EEST 2021


Author: ib
Date: Tue Oct  5 12:46:22 2021
New Revision: 38318

Log:
Remove calls to gtk_widget_set_events().

A GtkWindow already has a sufficient event mask.
Possibly additional events are not used at all.

Modified:
   trunk/gui/dialog/fileselect.c
   trunk/gui/dialog/msgbox.c
   trunk/gui/dialog/skinbrowser.c

Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c	Tue Oct  5 12:41:36 2021	(r38317)
+++ trunk/gui/dialog/fileselect.c	Tue Oct  5 12:46:22 2021	(r38318)
@@ -758,7 +758,6 @@ static GtkWidget *CreateFileSelect(void)
 
     FileSelector = gtk_window_new(GTK_WINDOW_TOPLEVEL);
     gtk_widget_set_usize(FileSelector, 512, 440);
-    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_GUI_SelectFile);
     gtk_window_set_position(GTK_WINDOW(FileSelector), GTK_WIN_POS_CENTER);
     gtk_window_get_position(GTK_WINDOW(FileSelector), &x, &y);

Modified: trunk/gui/dialog/msgbox.c
==============================================================================
--- trunk/gui/dialog/msgbox.c	Tue Oct  5 12:41:36 2021	(r38317)
+++ trunk/gui/dialog/msgbox.c	Tue Oct  5 12:46:22 2021	(r38318)
@@ -53,7 +53,6 @@ static GtkWidget * CreateMessageBox( voi
  accel_group=gtk_accel_group_new();
 
  MessageBox=gtk_window_new( GTK_WINDOW_TOPLEVEL );
- gtk_widget_set_events( MessageBox,GDK_EXPOSURE_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_VISIBILITY_NOTIFY_MASK );
  gtk_window_set_title( GTK_WINDOW( MessageBox ),MPlayer" …");
  gtk_window_set_position( GTK_WINDOW( MessageBox ),GTK_WIN_POS_CENTER );
  gtk_window_set_modal( GTK_WINDOW( MessageBox ),TRUE );

Modified: trunk/gui/dialog/skinbrowser.c
==============================================================================
--- trunk/gui/dialog/skinbrowser.c	Tue Oct  5 12:41:36 2021	(r38317)
+++ trunk/gui/dialog/skinbrowser.c	Tue Oct  5 12:46:22 2021	(r38318)
@@ -99,7 +99,6 @@ void ShowSkinBrowser( void )
  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_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_GUI_SkinBrowser) );
  gtk_window_set_position( GTK_WINDOW( SkinBrowser ),GTK_WIN_POS_CENTER );
  gtk_window_set_policy( GTK_WINDOW( SkinBrowser ),FALSE,FALSE,TRUE );


More information about the MPlayer-cvslog mailing list