--- galculator-1.2.3/src/callbacks.c 2004-05-23 15:10:55.000000000 +0200 +++ galculator-1.2.3-psion/src/callbacks.c 2004-08-24 14:46:29.000000000 +0200 @@ -1503,4 +1503,21 @@ ui_formula_entry_state(FALSE); } + +gboolean +on_main_window_key_press_event (GtkWidget *widget, GdkEventKey *k, gpointer p) +{ + if ((k->keyval == GDK_m) && (k->state & GDK_CONTROL_MASK)) + { + GtkWidget *menu_item; + prefs.show_menu = !prefs.show_menu; + set_widget_visibility (main_window_xml, "menubar", prefs.show_menu); + /* in case this cb is called by the right button mouse click menu */ + menu_item = glade_xml_get_widget (main_window_xml, "show_menubar1"); + gtk_check_menu_item_set_active ((GtkCheckMenuItem *) menu_item, prefs.show_menu); + return TRUE; + } + return FALSE; +} + /* END */ --- galculator-1.2.3/src/callbacks.h 2004-03-14 20:01:26.000000000 +0100 +++ galculator-1.2.3-psion/src/callbacks.h 2004-08-24 14:44:49.000000000 +0200 @@ -243,3 +243,6 @@ void user_function_list_selection_changed_cb (GtkTreeSelection *selection, gpointer data); + +gboolean +on_main_window_key_press_event (GtkWidget *widget, GdkEventKey *k, gpointer p); --- galculator-1.2.3/ui/main_frame.glade 2004-05-22 18:54:44.000000000 +0200 +++ galculator-1.2.3-psion/ui/main_frame.glade 2004-08-24 14:37:37.000000000 +0200 @@ -10,15 +10,23 @@ False True False + True + False + False + GDK_WINDOW_TYPE_HINT_NORMAL + GDK_GRAVITY_NORTH_WEST The main program window. + True + True + False @@ -502,6 +510,8 @@ True True False + False + True GTK_JUSTIFY_LEFT GTK_WRAP_WORD False