[Xfce4-commits] [apps/xfburn] 02/42: Get ride of stocks icons
noreply at xfce.org
noreply at xfce.org
Tue Oct 15 02:21:45 CEST 2019
This is an automated email from the git hooks/post-receive script.
k a t a n a s t e e l p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfburn.
commit ffac418d5d1089bb128124eb481d71717a250f11
Author: Romain B <skunnyk at alteroot.org>
Date: Fri Nov 17 17:56:36 2017 +0100
Get ride of stocks icons
- No more stock icons !
- Todo : clean unused functions, create a global const for custom images name, rename stock_* name to something more pleasant.
---
xfburn/xfburn-audio-composition.c | 4 ++--
xfburn/xfburn-blank-dialog.c | 4 ++--
xfburn/xfburn-burn-audio-cd-composition-dialog.c | 2 +-
xfburn/xfburn-burn-data-composition-base-dialog.c | 2 +-
xfburn/xfburn-burn-image-dialog.c | 2 +-
xfburn/xfburn-copy-cd-dialog.c | 2 +-
xfburn/xfburn-copy-dvd-dialog.c | 2 +-
xfburn/xfburn-data-composition.c | 4 ++--
xfburn/xfburn-utils.c | 2 +-
9 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/xfburn/xfburn-audio-composition.c b/xfburn/xfburn-audio-composition.c
index d6afad4..6490a70 100644
--- a/xfburn/xfburn-audio-composition.c
+++ b/xfburn/xfburn-audio-composition.c
@@ -214,9 +214,9 @@ static const GtkActionEntry action_entries[] = {
G_CALLBACK (action_info),},
//{"import-session", "xfburn-import-session", N_("Import"), NULL, N_("Import existing session"),},
#if 0 /* CDTEXT */
- {"rename-artist", GTK_STOCK_EDIT, N_("Rename Artist"), NULL, N_("Rename the artist of the selected file"),
+ {"rename-artist", "gtk-edit", N_("Rename Artist"), NULL, N_("Rename the artist of the selected file"),
G_CALLBACK (action_rename_selection_artist),},
- {"rename-title", GTK_STOCK_EDIT, N_("Rename Title"), NULL, N_("Rename the title of the selected file"),
+ {"rename-title", "gtk-edit", N_("Rename Title"), NULL, N_("Rename the title of the selected file"),
G_CALLBACK (action_rename_selection_title),},
#endif /* CDTEXT */
};
diff --git a/xfburn/xfburn-blank-dialog.c b/xfburn/xfburn-blank-dialog.c
index ba59433..64a95d1 100644
--- a/xfburn/xfburn-blank-dialog.c
+++ b/xfburn/xfburn-blank-dialog.c
@@ -237,11 +237,11 @@ xfburn_blank_dialog_init (XfburnBlankDialog * obj)
gtk_box_pack_start (GTK_BOX (vbox), priv->check_eject, FALSE, FALSE, BORDER);
/* action buttons */
- button = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
+ button = gtk_button_new_from_stock ("_Cancel");
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_CANCEL);
- button = xfce_gtk_button_new_mixed ("xfburn-blank-cdrw", _("_Blank"));
+ button = xfce_gtk_button_new_mixed ("stock_xfburn-blank-cdrw", _("_Blank"));
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_OK);
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
diff --git a/xfburn/xfburn-burn-audio-cd-composition-dialog.c b/xfburn/xfburn-burn-audio-cd-composition-dialog.c
index 267ee0b..a7d8c2d 100644
--- a/xfburn/xfburn-burn-audio-cd-composition-dialog.c
+++ b/xfburn/xfburn-burn-audio-cd-composition-dialog.c
@@ -215,7 +215,7 @@ xfburn_burn_audio_cd_composition_dialog_constructor (GType type, guint n_constru
gtk_box_pack_start (GTK_BOX (vbox), align, FALSE, FALSE, 0);
/* action buttons */
- button = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
+ button = gtk_button_new_from_stock ("_Cancel");
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_CANCEL);
diff --git a/xfburn/xfburn-burn-data-composition-base-dialog.c b/xfburn/xfburn-burn-data-composition-base-dialog.c
index 5d6be5d..6ad4bf7 100644
--- a/xfburn/xfburn-burn-data-composition-base-dialog.c
+++ b/xfburn/xfburn-burn-data-composition-base-dialog.c
@@ -282,7 +282,7 @@ xfburn_burn_data_composition_base_dialog_constructor (GType type, guint n_constr
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (cb_browse_iso), obj);
/* action buttons */
- button = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
+ button = gtk_button_new_from_stock ("_Cancel");
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_CANCEL);
diff --git a/xfburn/xfburn-burn-image-dialog.c b/xfburn/xfburn-burn-image-dialog.c
index 9578ce5..6ebf9b3 100644
--- a/xfburn/xfburn-burn-image-dialog.c
+++ b/xfburn/xfburn-burn-image-dialog.c
@@ -240,7 +240,7 @@ xfburn_burn_image_dialog_init (XfburnBurnImageDialog * obj)
gtk_box_pack_start (GTK_BOX (vbox), priv->check_quit, FALSE, FALSE, BORDER);
/* action buttons */
- button = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
+ button = gtk_button_new_from_stock ("_Cancel");
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_CANCEL);
diff --git a/xfburn/xfburn-copy-cd-dialog.c b/xfburn/xfburn-copy-cd-dialog.c
index 3533e62..ab9ad6f 100644
--- a/xfburn/xfburn-copy-cd-dialog.c
+++ b/xfburn/xfburn-copy-cd-dialog.c
@@ -186,7 +186,7 @@ xfburn_copy_cd_dialog_init (XfburnCopyCdDialog * obj)
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (cb_browse_iso), obj);
/* action buttons */
- button = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
+ button = gtk_button_new_from_stock ("_Cancel");
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_CANCEL);
diff --git a/xfburn/xfburn-copy-dvd-dialog.c b/xfburn/xfburn-copy-dvd-dialog.c
index f602dd2..deccc71 100644
--- a/xfburn/xfburn-copy-dvd-dialog.c
+++ b/xfburn/xfburn-copy-dvd-dialog.c
@@ -186,7 +186,7 @@ xfburn_copy_dvd_dialog_init (XfburnCopyDvdDialog * obj)
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (cb_browse_iso), obj);
/* action buttons */
- button = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
+ button = gtk_button_new_from_stock ("_Cancel");
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_CANCEL);
diff --git a/xfburn/xfburn-data-composition.c b/xfburn/xfburn-data-composition.c
index c2b8e7f..4e65faf 100644
--- a/xfburn/xfburn-data-composition.c
+++ b/xfburn/xfburn-data-composition.c
@@ -199,7 +199,7 @@ static const GtkActionEntry action_entries[] = {
{"clear", "edit-clear", N_("Clear"), NULL, N_("Clear the content of the composition"),
G_CALLBACK (action_clear),},
/*{"import-session", "xfburn-import-session", N_("Import"), NULL, N_("Import existing session"),}, */
- {"rename-file", GTK_STOCK_EDIT, N_("Rename"), NULL, N_("Rename the selected file"),
+ {"rename-file", "gtk-edit", N_("Rename"), NULL, N_("Rename the selected file"),
G_CALLBACK (action_rename_selection),},
};
@@ -2038,7 +2038,7 @@ generate_iso_image (XfburnDataComposition * dc)
dialog = gtk_dialog_new_with_buttons (title,
GTK_WINDOW (mainwin),
GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_STOCK_OK,
+ _("OK"),
GTK_RESPONSE_OK,
NULL);
diff --git a/xfburn/xfburn-utils.c b/xfburn/xfburn-utils.c
index d860baf..08887be 100644
--- a/xfburn/xfburn-utils.c
+++ b/xfburn/xfburn-utils.c
@@ -128,7 +128,7 @@ xfburn_browse_for_file (GtkEntry *entry, GtkWindow *parent)
text = gtk_entry_get_text (entry);
- dialog = gtk_file_chooser_dialog_new (_("Select command"), parent, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL,
+ dialog = gtk_file_chooser_dialog_new (_("Select command"), parent, GTK_FILE_CHOOSER_ACTION_SAVE, "_Cancel",
GTK_RESPONSE_CANCEL, "document-save", GTK_RESPONSE_ACCEPT, NULL);
if(xfburn_main_has_initial_dir ()) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list