Commit 86083997 authored by Claes Sjofors's avatar Claes Sjofors

Accelerator Ctrl+W was missing on Close in curve window

parent 970f2272
...@@ -335,8 +335,7 @@ GeCurveGtk::GeCurveGtk( void *gc_parent_ctx, ...@@ -335,8 +335,7 @@ GeCurveGtk::GeCurveGtk( void *gc_parent_ctx,
GtkWidget *file_refresh = gtk_menu_item_new_with_mnemonic( CoWowGtk::translate_utf8("_Refresh")); GtkWidget *file_refresh = gtk_menu_item_new_with_mnemonic( CoWowGtk::translate_utf8("_Refresh"));
g_signal_connect( file_refresh, "activate", g_signal_connect( file_refresh, "activate",
G_CALLBACK(activate_configure), this); G_CALLBACK(activate_configure), this);
gtk_widget_add_accelerator( file_refresh, "activate", accel_g, gtk_widget_add_accelerator( file_refresh, "activate", accel_g, 'r', GdkModifierType(GDK_CONTROL_MASK),
'r', GdkModifierType(GDK_CONTROL_MASK),
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
GtkWidget *file_print = gtk_image_menu_item_new_with_mnemonic(CoWowGtk::translate_utf8("_Print")); GtkWidget *file_print = gtk_image_menu_item_new_with_mnemonic(CoWowGtk::translate_utf8("_Print"));
...@@ -348,6 +347,8 @@ GeCurveGtk::GeCurveGtk( void *gc_parent_ctx, ...@@ -348,6 +347,8 @@ GeCurveGtk::GeCurveGtk( void *gc_parent_ctx,
gtk_image_menu_item_set_image( GTK_IMAGE_MENU_ITEM(file_close), gtk_image_menu_item_set_image( GTK_IMAGE_MENU_ITEM(file_close),
gtk_image_new_from_stock( "gtk-close", GTK_ICON_SIZE_MENU)); gtk_image_new_from_stock( "gtk-close", GTK_ICON_SIZE_MENU));
g_signal_connect(file_close, "activate", G_CALLBACK(activate_exit), this); g_signal_connect(file_close, "activate", G_CALLBACK(activate_exit), this);
gtk_widget_add_accelerator( file_close, "activate", accel_g,'w', GdkModifierType(GDK_CONTROL_MASK),
GTK_ACCEL_VISIBLE);
GtkMenu *file_menu = (GtkMenu *) g_object_new( GTK_TYPE_MENU, NULL); GtkMenu *file_menu = (GtkMenu *) g_object_new( GTK_TYPE_MENU, NULL);
gtk_menu_shell_append(GTK_MENU_SHELL(file_menu), file_refresh); gtk_menu_shell_append(GTK_MENU_SHELL(file_menu), file_refresh);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment