diff options
Diffstat (limited to 'src/gui/menus/file.c')
-rw-r--r-- | src/gui/menus/file.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/menus/file.c b/src/gui/menus/file.c index 9c0b218..ffe3e9e 100644 --- a/src/gui/menus/file.c +++ b/src/gui/menus/file.c @@ -28,6 +28,7 @@ #include <i18n.h> +#include "../agroup.h" #include "../core/global.h" #include "../../analysis/project.h" #include "../../core/global.h" @@ -54,8 +55,7 @@ static void mcb_file_quit(GtkMenuItem *, GObject *); /****************************************************************************** * * -* Paramètres : ref = espace de référencement global. * -* accgroup = groupe d'accélérateurs pour les menus. * +* Paramètres : ref = espace de référencement global. * * * * Description : Construit le menu "Fichier". * * * @@ -65,7 +65,7 @@ static void mcb_file_quit(GtkMenuItem *, GObject *); * * ******************************************************************************/ -GtkWidget *build_menu_file(GObject *ref, GtkAccelGroup *accgroup) +GtkWidget *build_menu_file(GObject *ref) { GtkWidget *result; /* Support à retourner */ GtkWidget *menubar; /* Support pour éléments */ @@ -80,7 +80,7 @@ GtkWidget *build_menu_file(GObject *ref, GtkAccelGroup *accgroup) submenuitem = qck_create_menu_item(NULL, NULL, _("New project"), G_CALLBACK(mcb_file_new_project), NULL); - add_accelerator_to_menu_item(submenuitem, "<Ctrl>N", accgroup); + add_accelerator_to_widget(submenuitem, "<Ctrl>N"); gtk_container_add(GTK_CONTAINER(menubar), submenuitem); submenuitem = qck_create_menu_separator(); @@ -88,7 +88,7 @@ GtkWidget *build_menu_file(GObject *ref, GtkAccelGroup *accgroup) submenuitem = qck_create_menu_item(NULL, NULL, _("Open project"), G_CALLBACK(mcb_file_open_project), NULL); - add_accelerator_to_menu_item(submenuitem, "<Ctrl>O", accgroup); + add_accelerator_to_widget(submenuitem, "<Ctrl>O"); gtk_container_add(GTK_CONTAINER(menubar), submenuitem); submenuitem = qck_create_menu_item(NULL, NULL, _("Recent projects..."), NULL, NULL); @@ -109,7 +109,7 @@ GtkWidget *build_menu_file(GObject *ref, GtkAccelGroup *accgroup) submenuitem = qck_create_menu_item(NULL, NULL, _("Save project"), G_CALLBACK(mcb_file_save_project), NULL); - add_accelerator_to_menu_item(submenuitem, "<Ctrl>S", accgroup); + add_accelerator_to_widget(submenuitem, "<Ctrl>S"); gtk_container_add(GTK_CONTAINER(menubar), submenuitem); submenuitem = qck_create_menu_item(NULL, NULL, _("Save project as..."), @@ -120,7 +120,7 @@ GtkWidget *build_menu_file(GObject *ref, GtkAccelGroup *accgroup) gtk_container_add(GTK_CONTAINER(menubar), submenuitem); submenuitem = qck_create_menu_item(NULL, NULL, _("Quit"), G_CALLBACK(mcb_file_quit), ref); - add_accelerator_to_menu_item(submenuitem, "<Ctrl>Q", accgroup); + add_accelerator_to_widget(submenuitem, "<Ctrl>Q"); gtk_container_add(GTK_CONTAINER(menubar), submenuitem); return result; |