summaryrefslogtreecommitdiff
path: root/src/gui/menus
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-11-25 22:20:59 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-11-25 22:20:59 (GMT)
commitb4d1a25a22371fa67c5d73bc8fcca08e045556f3 (patch)
tree9223e3de1e2d05933fe4230bd1b099df72712a1e /src/gui/menus
parent7a42f3772ab31bb9c756fc5c5c86c531c04b1d70 (diff)
Removed all references to old GTK stock icons and thus removed GCC warnings.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@428 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gui/menus')
-rw-r--r--src/gui/menus/file.c8
-rw-r--r--src/gui/menus/project.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/menus/file.c b/src/gui/menus/file.c
index f52d0e2..e343788 100644
--- a/src/gui/menus/file.c
+++ b/src/gui/menus/file.c
@@ -174,8 +174,8 @@ static void mcb_file_open_project(GtkMenuItem *menuitem, GObject *ref)
dialog = gtk_file_chooser_dialog_new(_("Open a project"), GTK_WINDOW(ref),
GTK_FILE_CHOOSER_ACTION_OPEN,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_Open"), GTK_RESPONSE_ACCEPT,
NULL);
project = get_current_project();
@@ -258,8 +258,8 @@ static void mcb_file_save_project_as(GtkMenuItem *menuitem, gpointer data)
dialog = gtk_file_chooser_dialog_new(_("Save the project as..."), GTK_WINDOW(data),
GTK_FILE_CHOOSER_ACTION_SAVE,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_Save"), GTK_RESPONSE_ACCEPT,
NULL);
project = get_current_project();
diff --git a/src/gui/menus/project.c b/src/gui/menus/project.c
index 3c85cd8..caf3f64 100644
--- a/src/gui/menus/project.c
+++ b/src/gui/menus/project.c
@@ -183,12 +183,12 @@ static void mcb_project_add_shellcode(GtkMenuItem *menuitem, GMenuBar *bar)
{
GStudyProject *project; /* Projet courant */
GtkWindow *parent; /* Respect de la hiérarchie */
- GtkWidget *dialog; /* Boîte à afficher */
+ //GtkWidget *dialog; /* Boîte à afficher */
project = get_current_project();
parent = GTK_WINDOW(G_EDITOR_ITEM(bar)->ref);
- dialog = NULL;
+ //dialog = NULL;
run_shellcode_assistant(project, parent);
@@ -275,8 +275,8 @@ static void mcb_project_add_binary_file(GtkMenuItem *menuitem, GMenuBar *bar)
dialog = gtk_file_chooser_dialog_new(_("Open a binary file"),
GTK_WINDOW(G_EDITOR_ITEM(bar)->ref),
GTK_FILE_CHOOSER_ACTION_OPEN,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_Open"), GTK_RESPONSE_ACCEPT,
NULL);
if (g_study_project_get_filename(get_current_project()) != NULL)