[frogr] Stop using GTK_STOCK_* (deprecated since GTK+ 3.10)
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Stop using GTK_STOCK_* (deprecated since GTK+ 3.10)
- Date: Thu, 19 Dec 2013 22:37:51 +0000 (UTC)
commit 1e5a23daf920dcffa34dca2ebff36328a02f3091
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Thu Dec 19 06:11:28 2013 +0000
Stop using GTK_STOCK_* (deprecated since GTK+ 3.10)
src/frogr-add-tags-dialog.c | 4 ++--
src/frogr-add-to-group-dialog.c | 4 ++--
src/frogr-add-to-set-dialog.c | 4 ++--
src/frogr-auth-dialog.c | 2 +-
src/frogr-create-new-set-dialog.c | 4 ++--
src/frogr-details-dialog.c | 4 ++--
src/frogr-main-view.c | 14 +++++++-------
src/frogr-settings-dialog.c | 4 ++--
8 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/src/frogr-add-tags-dialog.c b/src/frogr-add-tags-dialog.c
index 96acc52..759dfb3 100644
--- a/src/frogr-add-tags-dialog.c
+++ b/src/frogr-add-tags-dialog.c
@@ -195,9 +195,9 @@ frogr_add_tags_dialog_init (FrogrAddTagsDialog *self)
/* Create widgets */
gtk_dialog_add_buttons (GTK_DIALOG (self),
- GTK_STOCK_CANCEL,
+ _("_Cancel"),
GTK_RESPONSE_CANCEL,
- GTK_STOCK_ADD,
+ _("_Add"),
GTK_RESPONSE_ACCEPT,
NULL);
gtk_container_set_border_width (GTK_CONTAINER (self), 6);
diff --git a/src/frogr-add-to-group-dialog.c b/src/frogr-add-to-group-dialog.c
index 7b4606b..783fcb5 100644
--- a/src/frogr-add-to-group-dialog.c
+++ b/src/frogr-add-to-group-dialog.c
@@ -547,9 +547,9 @@ frogr_add_to_group_dialog_init (FrogrAddToGroupDialog *self)
/* Create widgets */
gtk_dialog_add_buttons (GTK_DIALOG (self),
- GTK_STOCK_CANCEL,
+ _("_Cancel"),
GTK_RESPONSE_CANCEL,
- GTK_STOCK_ADD,
+ _("_Add"),
GTK_RESPONSE_ACCEPT,
NULL);
gtk_container_set_border_width (GTK_CONTAINER (self), 6);
diff --git a/src/frogr-add-to-set-dialog.c b/src/frogr-add-to-set-dialog.c
index e39b531..8e2aac6 100644
--- a/src/frogr-add-to-set-dialog.c
+++ b/src/frogr-add-to-set-dialog.c
@@ -548,9 +548,9 @@ frogr_add_to_set_dialog_init (FrogrAddToSetDialog *self)
/* Create widgets */
gtk_dialog_add_buttons (GTK_DIALOG (self),
- GTK_STOCK_CANCEL,
+ _("_Cancel"),
GTK_RESPONSE_CANCEL,
- GTK_STOCK_ADD,
+ _("_Add"),
GTK_RESPONSE_ACCEPT,
NULL);
gtk_container_set_border_width (GTK_CONTAINER (self), 6);
diff --git a/src/frogr-auth-dialog.c b/src/frogr-auth-dialog.c
index 3132b22..c691118 100644
--- a/src/frogr-auth-dialog.c
+++ b/src/frogr-auth-dialog.c
@@ -142,7 +142,7 @@ _ask_for_auth_confirmation (GtkWindow *parent)
dialog = gtk_dialog_new_with_buttons (title,
parent,
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_STOCK_CLOSE,
+ _("_Close"),
GTK_RESPONSE_CLOSE,
NULL);
g_free (title);
diff --git a/src/frogr-create-new-set-dialog.c b/src/frogr-create-new-set-dialog.c
index ca49c97..4816e45 100644
--- a/src/frogr-create-new-set-dialog.c
+++ b/src/frogr-create-new-set-dialog.c
@@ -325,9 +325,9 @@ frogr_create_new_set_dialog_init (FrogrCreateNewSetDialog *self)
/* Create widgets */
gtk_dialog_add_buttons (GTK_DIALOG (self),
- GTK_STOCK_CANCEL,
+ _("_Cancel"),
GTK_RESPONSE_CANCEL,
- GTK_STOCK_ADD,
+ _("_Add"),
GTK_RESPONSE_ACCEPT,
NULL);
gtk_container_set_border_width (GTK_CONTAINER (self), 6);
diff --git a/src/frogr-details-dialog.c b/src/frogr-details-dialog.c
index 9850db1..5ca8060 100644
--- a/src/frogr-details-dialog.c
+++ b/src/frogr-details-dialog.c
@@ -1191,8 +1191,8 @@ frogr_details_dialog_init (FrogrDetailsDialog *self)
_create_widgets (self);
gtk_dialog_add_buttons (GTK_DIALOG (self),
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_EDIT, GTK_RESPONSE_ACCEPT,
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_Edit"), GTK_RESPONSE_ACCEPT,
NULL);
gtk_container_set_border_width (GTK_CONTAINER (self), 6);
diff --git a/src/frogr-main-view.c b/src/frogr-main-view.c
index 1d2bcb6..d6ad1aa 100644
--- a/src/frogr-main-view.c
+++ b/src/frogr-main-view.c
@@ -450,7 +450,7 @@ _initialize_ui (FrogrMainView *self)
progress_dialog = gtk_dialog_new_with_buttons (NULL,
GTK_WINDOW (self),
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_STOCK_CANCEL,
+ _("_Cancel"),
GTK_RESPONSE_CANCEL,
NULL);
gtk_window_set_title (GTK_WINDOW (progress_dialog), APP_SHORTNAME);
@@ -1379,8 +1379,8 @@ _open_project_dialog (FrogrMainView *self)
dialog = gtk_file_chooser_dialog_new (_("Select File"),
GTK_WINDOW (self),
GTK_FILE_CHOOSER_ACTION_SAVE,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_Open"), GTK_RESPONSE_ACCEPT,
NULL);
gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (dialog), FALSE);
@@ -1456,8 +1456,8 @@ _save_project_as_dialog (FrogrMainView *self)
dialog = gtk_file_chooser_dialog_new (_("Select Destination"),
GTK_WINDOW (self),
GTK_FILE_CHOOSER_ACTION_SAVE,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_Save"), GTK_RESPONSE_ACCEPT,
NULL);
gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), _("Untitled Project.frogr"));
@@ -1506,8 +1506,8 @@ _load_pictures_dialog (FrogrMainView *self)
dialog = gtk_file_chooser_dialog_new (_("Select a Picture"),
GTK_WINDOW (self),
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);
/* Set images filter */
diff --git a/src/frogr-settings-dialog.c b/src/frogr-settings-dialog.c
index 6db3833..2c63ae9 100644
--- a/src/frogr-settings-dialog.c
+++ b/src/frogr-settings-dialog.c
@@ -989,9 +989,9 @@ frogr_settings_dialog_init (FrogrSettingsDialog *self)
/* Create widgets */
gtk_dialog_add_buttons (GTK_DIALOG (self),
- GTK_STOCK_CANCEL,
+ _("_Cancel"),
GTK_RESPONSE_CANCEL,
- GTK_STOCK_CLOSE,
+ _("_Close"),
GTK_RESPONSE_CLOSE,
NULL);
gtk_container_set_border_width (GTK_CONTAINER (self), 6);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]