[MPlayer-cvslog] r38573 - trunk/gui/dialog/skinbrowser.c
ib
subversion at mplayerhq.hu
Fri Jun 14 13:48:15 EEST 2024
Author: ib
Date: Fri Jun 14 13:48:15 2024
New Revision: 38573
Log:
Put all statements related to accel_group in one place.
Modified:
trunk/gui/dialog/skinbrowser.c
Modified: trunk/gui/dialog/skinbrowser.c
==============================================================================
--- trunk/gui/dialog/skinbrowser.c Fri Jun 14 13:47:40 2024 (r38572)
+++ trunk/gui/dialog/skinbrowser.c Fri Jun 14 13:48:15 2024 (r38573)
@@ -136,8 +136,6 @@ static GtkWidget *CreateSkinBrowser (voi
GtkWidget * Cancel;
GtkAccelGroup * accel_group;
- accel_group = gtk_accel_group_new ();
-
SkinBrowser=gtk_window_new( GTK_WINDOW_TOPLEVEL );
gtk_widget_set_size_request( SkinBrowser,256,320 );
gtk_container_set_border_width( GTK_CONTAINER( SkinBrowser ),1 );
@@ -180,16 +178,19 @@ static GtkWidget *CreateSkinBrowser (voi
Ok=gtkAddButton( _(MSGTR_GUI_Ok),hbuttonbox );
Cancel=gtkAddButton( _(MSGTR_GUI_Cancel),hbuttonbox );
+ accel_group = gtk_accel_group_new ();
+
gtk_widget_add_accelerator( Ok,"clicked",accel_group,GDK_KEY_Return,0,GTK_ACCEL_VISIBLE );
gtk_widget_add_accelerator( Cancel,"clicked",accel_group,GDK_KEY_Escape,0,GTK_ACCEL_VISIBLE );
+ gtk_window_add_accel_group( GTK_WINDOW( SkinBrowser ),accel_group );
+
g_signal_connect( G_OBJECT( SkinBrowser ),"delete-event",G_CALLBACK( window_delete ),NULL );
g_signal_connect( G_OBJECT( SkinBrowser ),"destroy",G_CALLBACK( gtk_widget_destroyed ),&SkinBrowser );
g_signal_connect( G_OBJECT( SkinList ),"select-row",G_CALLBACK( select_row ),NULL );
g_signal_connect( G_OBJECT( Ok ),"clicked",G_CALLBACK( button_clicked ),GINT_TO_POINTER(1) );
g_signal_connect( G_OBJECT( Cancel ),"clicked",G_CALLBACK( button_clicked ),GINT_TO_POINTER(0) );
- gtk_window_add_accel_group( GTK_WINDOW( SkinBrowser ),accel_group );
gtk_widget_grab_focus( scrolledwindow );
return SkinBrowser;
More information about the MPlayer-cvslog
mailing list