[Xfce4-commits] [apps/xfburn] 01/42: Do no use stock icons anymore.
noreply at xfce.org
noreply at xfce.org
Tue Oct 15 02:21:44 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 e1a7eb4c41c57c0e7a348ec5d2d51808af12dd13
Author: Romain B <skunnyk at alteroot.org>
Date: Wed Nov 15 23:18:50 2017 +0100
Do no use stock icons anymore.
- They are not supported by gtk3 anymore
- Use generic icons when possible
---
xfburn/xfburn-adding-progress.c | 2 +-
xfburn/xfburn-audio-composition.c | 8 +++----
xfburn/xfburn-blank-dialog.c | 2 +-
xfburn/xfburn-burn-audio-cd-composition-dialog.c | 2 +-
xfburn/xfburn-burn-data-composition-base-dialog.c | 4 ++--
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 | 8 +++----
xfburn/xfburn-device-box.c | 2 +-
xfburn/xfburn-device-list.c | 2 +-
xfburn/xfburn-disc-usage.c | 2 +-
xfburn/xfburn-main-window.c | 28 +++++++++++------------
xfburn/xfburn-notebook-tab.c | 2 +-
xfburn/xfburn-preferences-dialog.c | 8 +++----
xfburn/xfburn-progress-dialog.c | 4 ++--
xfburn/xfburn-utils.c | 2 +-
xfburn/xfburn-welcome-tab.c | 10 ++++----
18 files changed, 46 insertions(+), 46 deletions(-)
diff --git a/xfburn/xfburn-adding-progress.c b/xfburn/xfburn-adding-progress.c
index 793c313..fe22f29 100644
--- a/xfburn/xfburn-adding-progress.c
+++ b/xfburn/xfburn-adding-progress.c
@@ -107,7 +107,7 @@ xfburn_adding_progress_init (XfburnAddingProgress * win)
gtk_window_set_resizable (GTK_WINDOW (win), FALSE);
- gtk_window_set_icon_name (GTK_WINDOW (win), GTK_STOCK_ADD);
+ gtk_window_set_icon_name (GTK_WINDOW (win), "list-add");
gtk_window_set_destroy_with_parent (GTK_WINDOW (win), TRUE);
gtk_window_set_title (GTK_WINDOW (win), _("Adding files to the composition"));
diff --git a/xfburn/xfburn-audio-composition.c b/xfburn/xfburn-audio-composition.c
index d1fda58..d6afad4 100644
--- a/xfburn/xfburn-audio-composition.c
+++ b/xfburn/xfburn-audio-composition.c
@@ -204,13 +204,13 @@ static gchar *did_warn = "Did warn about this already";
static gchar trans_name[MAX_NAME_LENGTH] = {""};
static const GtkActionEntry action_entries[] = {
- {"add-file", GTK_STOCK_ADD, N_("Add"), NULL, N_("Add the selected file(s) to the composition"),
+ {"add-file", "list-add", N_("Add"), NULL, N_("Add the selected file(s) to the composition"),
G_CALLBACK (action_add_selected_files),},
- {"remove-file", GTK_STOCK_REMOVE, N_("Remove"), NULL, N_("Remove the selected file(s) from the composition"),
+ {"remove-file", "list-remove", N_("Remove"), NULL, N_("Remove the selected file(s) from the composition"),
G_CALLBACK (action_remove_selection),},
- {"clear", GTK_STOCK_CLEAR, N_("Clear"), NULL, N_("Clear the content of the composition"),
+ {"clear", "edit-clear", N_("Clear"), NULL, N_("Clear the content of the composition"),
G_CALLBACK (action_clear),},
- {"transcoder-info", GTK_STOCK_INFO, trans_name, NULL, N_("What files can get burned to an audio CD?"),
+ {"transcoder-info", "dialog-information", trans_name, NULL, N_("What files can get burned to an audio CD?"),
G_CALLBACK (action_info),},
//{"import-session", "xfburn-import-session", N_("Import"), NULL, N_("Import existing session"),},
#if 0 /* CDTEXT */
diff --git a/xfburn/xfburn-blank-dialog.c b/xfburn/xfburn-blank-dialog.c
index 64ec8c0..ba59433 100644
--- a/xfburn/xfburn-blank-dialog.c
+++ b/xfburn/xfburn-blank-dialog.c
@@ -241,7 +241,7 @@ xfburn_blank_dialog_init (XfburnBlankDialog * obj)
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_CANCEL);
- button = xfburn_gtk_button_new_mixed (XFBURN_STOCK_BLANK_CDRW, _("_Blank"));
+ button = xfce_gtk_button_new_mixed ("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 07cb4ac..267ee0b 100644
--- a/xfburn/xfburn-burn-audio-cd-composition-dialog.c
+++ b/xfburn/xfburn-burn-audio-cd-composition-dialog.c
@@ -219,7 +219,7 @@ xfburn_burn_audio_cd_composition_dialog_constructor (GType type, guint n_constru
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_CANCEL);
- priv->button_proceed = button = xfburn_gtk_button_new_mixed (XFBURN_STOCK_BURN_CD, _("_Burn Composition"));
+ priv->button_proceed = button = xfce_gtk_button_new_mixed ("stock_xfburn", _("_Burn Composition"));
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_OK);
diff --git a/xfburn/xfburn-burn-data-composition-base-dialog.c b/xfburn/xfburn-burn-data-composition-base-dialog.c
index 950a647..5d6be5d 100644
--- a/xfburn/xfburn-burn-data-composition-base-dialog.c
+++ b/xfburn/xfburn-burn-data-composition-base-dialog.c
@@ -273,7 +273,7 @@ xfburn_burn_data_composition_base_dialog_constructor (GType type, guint n_constr
gtk_widget_show (priv->entry_path_iso);
gtk_box_pack_start (GTK_BOX (priv->hbox_iso), priv->entry_path_iso, FALSE, FALSE, 0);
- img = gtk_image_new_from_stock (GTK_STOCK_DIRECTORY, GTK_ICON_SIZE_SMALL_TOOLBAR);
+ img = gtk_image_new_from_stock ("folder", GTK_ICON_SIZE_SMALL_TOOLBAR);
gtk_widget_show (img);
button = gtk_button_new ();
gtk_container_add (GTK_CONTAINER (button), img);
@@ -286,7 +286,7 @@ xfburn_burn_data_composition_base_dialog_constructor (GType type, guint n_constr
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_CANCEL);
- priv->button_proceed = button = xfburn_gtk_button_new_mixed (XFBURN_STOCK_BURN_CD, _("_Burn Composition"));
+ priv->button_proceed = button = xfce_gtk_button_new_mixed ("stock_xfburn", _("_Burn Composition"));
/*
* Disabled: change button_proceed functionality
button = create_proceed_button (obj, "xfburn-burn-cd", "");
diff --git a/xfburn/xfburn-burn-image-dialog.c b/xfburn/xfburn-burn-image-dialog.c
index b562e65..9578ce5 100644
--- a/xfburn/xfburn-burn-image-dialog.c
+++ b/xfburn/xfburn-burn-image-dialog.c
@@ -244,7 +244,7 @@ xfburn_burn_image_dialog_init (XfburnBurnImageDialog * obj)
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_CANCEL);
- priv->burn_button = xfburn_gtk_button_new_mixed (XFBURN_STOCK_BURN_CD, _("_Burn image"));
+ priv->burn_button = xfce_gtk_button_new_mixed ("stock_xfburn", _("_Burn image"));
gtk_widget_show (priv->burn_button);
g_signal_connect (G_OBJECT (priv->burn_button), "clicked", G_CALLBACK (cb_clicked_ok), obj);
gtk_container_add (GTK_CONTAINER( GTK_DIALOG(obj)->action_area), priv->burn_button);
diff --git a/xfburn/xfburn-copy-cd-dialog.c b/xfburn/xfburn-copy-cd-dialog.c
index 2681ce8..3533e62 100644
--- a/xfburn/xfburn-copy-cd-dialog.c
+++ b/xfburn/xfburn-copy-cd-dialog.c
@@ -177,7 +177,7 @@ xfburn_copy_cd_dialog_init (XfburnCopyCdDialog * obj)
g_free (tmp_dir);
gtk_box_pack_start (GTK_BOX (priv->hbox_iso), priv->entry_path_iso, FALSE, FALSE, 0);
- img = gtk_image_new_from_stock (GTK_STOCK_DIRECTORY, GTK_ICON_SIZE_SMALL_TOOLBAR);
+ img = gtk_image_new_from_stock ("folder", GTK_ICON_SIZE_SMALL_TOOLBAR);
gtk_widget_show (img);
button = gtk_button_new ();
gtk_container_add (GTK_CONTAINER (button), img);
diff --git a/xfburn/xfburn-copy-dvd-dialog.c b/xfburn/xfburn-copy-dvd-dialog.c
index bb7f35b..f602dd2 100644
--- a/xfburn/xfburn-copy-dvd-dialog.c
+++ b/xfburn/xfburn-copy-dvd-dialog.c
@@ -177,7 +177,7 @@ xfburn_copy_dvd_dialog_init (XfburnCopyDvdDialog * obj)
g_free (tmp_dir);
gtk_box_pack_start (GTK_BOX (priv->hbox_iso), priv->entry_path_iso, FALSE, FALSE, 0);
- img = gtk_image_new_from_stock (GTK_STOCK_DIRECTORY, GTK_ICON_SIZE_SMALL_TOOLBAR);
+ img = gtk_image_new_from_stock ("folder", GTK_ICON_SIZE_SMALL_TOOLBAR);
gtk_widget_show (img);
button = gtk_button_new ();
gtk_container_add (GTK_CONTAINER (button), img);
diff --git a/xfburn/xfburn-data-composition.c b/xfburn/xfburn-data-composition.c
index 8a8962c..c2b8e7f 100644
--- a/xfburn/xfburn-data-composition.c
+++ b/xfburn/xfburn-data-composition.c
@@ -190,13 +190,13 @@ static GtkHPanedClass *parent_class = NULL;
static guint instances = 0;
static const GtkActionEntry action_entries[] = {
- {"add-file", GTK_STOCK_ADD, N_("Add"), NULL, N_("Add the selected file(s) to the composition"),
+ {"add-file", "list-add", N_("Add"), NULL, N_("Add the selected file(s) to the composition"),
G_CALLBACK (action_add_or_select),},
- {"create-dir", GTK_STOCK_NEW, N_("Create directory"), NULL, N_("Add a new directory to the composition"),
+ {"create-dir", "document-new", N_("Create directory"), NULL, N_("Add a new directory to the composition"),
G_CALLBACK (action_create_directory),},
- {"remove-file", GTK_STOCK_REMOVE, N_("Remove"), NULL, N_("Remove the selected file(s) from the composition"),
+ {"remove-file", "list-remove", N_("Remove"), NULL, N_("Remove the selected file(s) from the composition"),
G_CALLBACK (action_remove_selection),},
- {"clear", GTK_STOCK_CLEAR, N_("Clear"), NULL, N_("Clear the content of the composition"),
+ {"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"),
diff --git a/xfburn/xfburn-device-box.c b/xfburn/xfburn-device-box.c
index 05faaf7..95a61d4 100644
--- a/xfburn/xfburn-device-box.c
+++ b/xfburn/xfburn-device-box.c
@@ -375,7 +375,7 @@ empty_speed_list_dialog (void)
dialog = (GtkDialog *) gtk_dialog_new_with_buttons (_("Empty speed list"),
NULL,
GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_STOCK_CLOSE,
+ "window-close",
GTK_RESPONSE_CLOSE,
NULL);
diff --git a/xfburn/xfburn-device-list.c b/xfburn/xfburn-device-list.c
index 0cedfd9..04fe683 100644
--- a/xfburn/xfburn-device-list.c
+++ b/xfburn/xfburn-device-list.c
@@ -458,7 +458,7 @@ xfburn_device_list_get_refresh_button (XfburnDeviceList *devlist)
XfburnDeviceListPrivate *priv = GET_PRIVATE (devlist);
GtkWidget *img, *button;
- img = gtk_image_new_from_stock (GTK_STOCK_REFRESH, GTK_ICON_SIZE_SMALL_TOOLBAR);
+ img = gtk_image_new_from_stock ("view-refresh", GTK_ICON_SIZE_SMALL_TOOLBAR);
gtk_widget_show (img);
button = gtk_button_new ();
gtk_container_add (GTK_CONTAINER (button), img);
diff --git a/xfburn/xfburn-disc-usage.c b/xfburn/xfburn-disc-usage.c
index 386df21..306e98e 100644
--- a/xfburn/xfburn-disc-usage.c
+++ b/xfburn/xfburn-disc-usage.c
@@ -160,7 +160,7 @@ xfburn_disc_usage_constructor (GType type, guint n_construct_properties, GObject
gtk_box_pack_start (GTK_BOX (disc_usage), disc_usage->combo, FALSE, FALSE, BORDER);
gtk_widget_show (disc_usage->combo);
- disc_usage->button = xfburn_gtk_button_new_mixed (XFBURN_STOCK, _("Proceed to Burn"));
+ disc_usage->button = xfce_gtk_button_new_mixed ("stock_xfburn", _("Proceed to Burn"));
gtk_box_pack_start (GTK_BOX (disc_usage), disc_usage->button, FALSE, FALSE, BORDER);
gtk_widget_set_sensitive (disc_usage->button, FALSE);
gtk_widget_show (disc_usage->button);
diff --git a/xfburn/xfburn-main-window.c b/xfburn/xfburn-main-window.c
index 9830238..34aae83 100644
--- a/xfburn/xfburn-main-window.c
+++ b/xfburn/xfburn-main-window.c
@@ -98,31 +98,31 @@ static void action_show_toolbar (GtkToggleAction * action, XfburnMainWindow * wi
static GtkWindowClass *parent_class = NULL;
static const GtkActionEntry action_entries[] = {
{"file-menu", NULL, N_("_File"), NULL, NULL, NULL},
- /*{"new-composition", GTK_STOCK_NEW, N_("_New composition"), "", N_("Create a new composition"),},*/
- /*{"new-composition", GTK_STOCK_NEW, N_("_New composition"), NULL, N_("Create a new composition"),
+ /*{"new-composition", "document-new", N_("_New composition"), "", N_("Create a new composition"),},*/
+ /*{"new-composition", "document-new", N_("_New composition"), NULL, N_("Create a new composition"),
G_CALLBACK (action_new_data_composition),}, */
- {"new-data-composition", XFBURN_STOCK_NEW_DATA_COMPOSITION, N_("New data composition"), "<Control><Alt>e", N_("New data composition"),
+ {"new-data-composition", "xfburn-new-data-composition", N_("New data composition"), "<Control><Alt>e", N_("New data composition"),
G_CALLBACK (action_new_data_composition),},
- {"new-audio-composition", XFBURN_STOCK_AUDIO_CD, N_("New audio composition"), "<Control><Alt>A", N_("New audio composition"),
+ {"new-audio-composition", "xfburn-audio-cd", N_("New audio composition"), "<Control><Alt>A", N_("New audio composition"),
G_CALLBACK (action_new_audio_composition),},
- /*{"load-composition", GTK_STOCK_OPEN, N_("Load composition"), NULL, N_("Load composition"),
+ /*{"load-composition", "document-open", N_("Load composition"), NULL, N_("Load composition"),
G_CALLBACK (action_load),},
- {"save-composition", GTK_STOCK_SAVE, N_("Save composition"), NULL, N_("Save composition"),
+ {"save-composition", "document-save", N_("Save composition"), NULL, N_("Save composition"),
G_CALLBACK (action_save),},
- {"save-composition-as", GTK_STOCK_SAVE_AS, N_("Save composition as..."), NULL, N_("Save composition as"),
+ {"save-composition-as", "document-save"_AS, N_("Save composition as..."), NULL, N_("Save composition as"),
G_CALLBACK (action_save_as),},*/
- {"close-composition", GTK_STOCK_CLOSE, N_("Close composition"), NULL, N_("Close composition"),
+ {"close-composition", "window-close", N_("Close composition"), NULL, N_("Close composition"),
G_CALLBACK (action_close),},
- {"quit", GTK_STOCK_QUIT, N_("_Quit"), NULL, N_("Quit Xfburn"), G_CALLBACK (action_quit),},
+ {"quit", "application-exit", N_("_Quit"), NULL, N_("Quit Xfburn"), G_CALLBACK (action_quit),},
{"edit-menu", NULL, N_("_Edit"), NULL, NULL, NULL},
- {"preferences", GTK_STOCK_PREFERENCES, N_("Prefere_nces"), NULL, N_("Show preferences dialog"),
+ {"preferences", "preferences-system", N_("Prefere_nces"), NULL, N_("Show preferences dialog"),
G_CALLBACK (action_preferences),},
{"action-menu", NULL, N_("_Actions"), NULL, NULL, NULL},
{"view-menu", NULL, N_("_View"), NULL, NULL, NULL},
- {"refresh", GTK_STOCK_REFRESH, N_("Refresh"), NULL, N_("Refresh file list"),
+ {"refresh", "view-refresh", N_("Refresh"), NULL, N_("Refresh file list"),
G_CALLBACK (action_refresh_directorybrowser),},
{"help-menu", NULL, N_("_Help"), NULL, NULL, NULL},
- {"about", GTK_STOCK_ABOUT, N_("_About"), NULL, N_("Display information about Xfburn"),
+ {"about", "gtk-about", N_("_About"), NULL, N_("Display information about Xfburn"),
G_CALLBACK (action_about),},
{"blank-disc", "xfburn-blank-cdrw", N_("Blank CD-RW"), NULL, N_("Blank CD-RW"),
G_CALLBACK (action_blank),},
@@ -472,7 +472,7 @@ action_new_audio_composition (GtkAction *action, XfburnMainWindow * window)
static void
action_quit (GtkAction * action, XfburnMainWindow * window)
{
- // if (xfce_confirm (_("Are sure you want to quit?"), GTK_STOCK_QUIT, _("_Quit")))
+ // if (xfce_confirm (_("Are sure you want to quit?"), "application-exit", _("_Quit")))
gtk_main_quit ();
}
@@ -524,7 +524,7 @@ action_about (GtkAction * action, XfburnMainWindow * window)
if (!icon)
icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), "media-cdrom", x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
if (!icon)
- icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), GTK_STOCK_CDROM, x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
+ icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), "media-optical", x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
#if !GTK_CHECK_VERSION (2, 18, 0)
gtk_about_dialog_set_email_hook (exo_gtk_url_about_dialog_hook, NULL, NULL);
diff --git a/xfburn/xfburn-notebook-tab.c b/xfburn/xfburn-notebook-tab.c
index a08677b..38d96b5 100644
--- a/xfburn/xfburn-notebook-tab.c
+++ b/xfburn/xfburn-notebook-tab.c
@@ -127,7 +127,7 @@ xfburn_notebook_tab_init (XfburnNotebookTab * tab)
gtk_button_set_relief (GTK_BUTTON (priv->button_close), GTK_RELIEF_NONE);
gtk_widget_show (priv->button_close);
- img = gtk_image_new_from_stock (GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
+ img = gtk_image_new_from_stock ("window-close", GTK_ICON_SIZE_MENU);
gtk_widget_show (img);
gtk_container_add (GTK_CONTAINER (priv->button_close), img);
gtk_box_pack_start (hbox, priv->button_close, FALSE, FALSE, 0);
diff --git a/xfburn/xfburn-preferences-dialog.c b/xfburn/xfburn-preferences-dialog.c
index e025905..2304a43 100644
--- a/xfburn/xfburn-preferences-dialog.c
+++ b/xfburn/xfburn-preferences-dialog.c
@@ -145,7 +145,7 @@ xfburn_preferences_dialog_init (XfburnPreferencesDialog * obj)
xfce_titled_dialog_set_subtitle (XFCE_TITLED_DIALOG (obj), _("Tune how Xfburn behaves"));
gtk_window_set_default_size (GTK_WINDOW (obj), 775, 400);
gtk_window_set_destroy_with_parent (GTK_WINDOW (obj), TRUE);
- gtk_window_set_icon_name (GTK_WINDOW (obj), GTK_STOCK_PREFERENCES);
+ gtk_window_set_icon_name (GTK_WINDOW (obj), "preferences-system");
gtk_dialog_set_has_separator (GTK_DIALOG (obj), FALSE);
hbox = gtk_hbox_new (FALSE, 0);
@@ -217,7 +217,7 @@ xfburn_preferences_dialog_init (XfburnPreferencesDialog * obj)
gtk_widget_show (priv->check_show_human_readable);
icon = gtk_widget_render_icon (GTK_WIDGET (priv->icon_bar),
- GTK_STOCK_PROPERTIES,
+ "document-properties",
GTK_ICON_SIZE_DIALOG,
NULL);
gtk_list_store_append (icon_store, &iter);
@@ -299,7 +299,7 @@ xfburn_preferences_dialog_init (XfburnPreferencesDialog * obj)
gtk_box_pack_start (GTK_BOX (vbox2), hbox, FALSE, FALSE, BORDER);
gtk_widget_show (hbox);
- priv->button_scan = xfce_gtk_button_new_mixed (GTK_STOCK_CDROM, _("Sc_an for devices"));
+ priv->button_scan = xfce_gtk_button_new_mixed ("media-optical", _("Sc_an for devices"));
gtk_box_pack_end (GTK_BOX (hbox), priv->button_scan, FALSE, FALSE, BORDER);
g_signal_connect (G_OBJECT (priv->button_scan), "clicked", G_CALLBACK (scan_button_clicked_cb), obj);
gtk_widget_show (priv->button_scan);
@@ -309,7 +309,7 @@ xfburn_preferences_dialog_init (XfburnPreferencesDialog * obj)
if (!icon)
icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), "media-cdrom", x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
if (!icon)
- icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), GTK_STOCK_CDROM, x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
+ icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), "media-optical", x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
gtk_list_store_append (icon_store, &iter);
diff --git a/xfburn/xfburn-progress-dialog.c b/xfburn/xfburn-progress-dialog.c
index c6c911f..5270621 100644
--- a/xfburn/xfburn-progress-dialog.c
+++ b/xfburn/xfburn-progress-dialog.c
@@ -246,12 +246,12 @@ xfburn_progress_dialog_init (XfburnProgressDialog * obj)
gtk_widget_show (priv->buffer_bar);
/* action buttons */
- priv->button_stop = gtk_button_new_from_stock (GTK_STOCK_STOP);
+ priv->button_stop = gtk_button_new_from_stock ("process-stop");
gtk_widget_show (priv->button_stop);
gtk_dialog_add_action_widget (GTK_DIALOG (obj), priv->button_stop, GTK_RESPONSE_CANCEL);
g_signal_connect (G_OBJECT (priv->button_stop), "clicked", G_CALLBACK (cb_button_stop_clicked), obj);
- priv->button_close = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
+ priv->button_close = gtk_button_new_from_stock ("window-close");
gtk_widget_show (priv->button_close);
gtk_dialog_add_action_widget (GTK_DIALOG (obj), priv->button_close, GTK_RESPONSE_CLOSE);
GTK_WIDGET_SET_FLAGS (priv->button_close, GTK_CAN_DEFAULT);
diff --git a/xfburn/xfburn-utils.c b/xfburn/xfburn-utils.c
index 9862e38..d860baf 100644
--- a/xfburn/xfburn-utils.c
+++ b/xfburn/xfburn-utils.c
@@ -129,7 +129,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,
- GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL);
+ GTK_RESPONSE_CANCEL, "document-save", GTK_RESPONSE_ACCEPT, NULL);
if(xfburn_main_has_initial_dir ()) {
gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), xfburn_main_get_initial_dir ());
diff --git a/xfburn/xfburn-welcome-tab.c b/xfburn/xfburn-welcome-tab.c
index f4dad4d..d2f20b3 100644
--- a/xfburn/xfburn-welcome-tab.c
+++ b/xfburn/xfburn-welcome-tab.c
@@ -137,22 +137,22 @@ xfburn_welcome_tab_init (XfburnWelcomeTab * obj)
gtk_widget_show (table);
/* buttons */
- priv->button_image = create_welcome_button (XFBURN_STOCK_BURN_CD, _("<big>Burn _Image</big>"), _("Burn a prepared compilation, i.e. an .ISO file"));
+ priv->button_image = create_welcome_button ("stock_xfburn", _("<big>Burn _Image</big>"), _("Burn a prepared compilation, i.e. an .ISO file"));
gtk_table_attach_defaults (GTK_TABLE (table), priv->button_image, 0, 1, 0, 1);
gtk_widget_show (priv->button_image);
g_signal_connect (G_OBJECT(priv->button_image), "clicked", G_CALLBACK(burn_image), obj);
- priv->button_data_comp = create_welcome_button (XFBURN_STOCK_NEW_DATA_COMPOSITION, _("<big>New _Data Composition</big>"), _("Create a new data disc with the files of your choosing"));
+ priv->button_data_comp = create_welcome_button ("stock_xfburn-new-data-composition", _("<big>New _Data Composition</big>"), _("Create a new data disc with the files of your choosing"));
gtk_table_attach_defaults (GTK_TABLE (table), priv->button_data_comp, 1, 2, 0, 1);
gtk_widget_show (priv->button_data_comp);
g_signal_connect (G_OBJECT(priv->button_data_comp), "clicked", G_CALLBACK(new_data_composition), obj);
- priv->button_blank = create_welcome_button (XFBURN_STOCK_BLANK_CDRW, _("<big>_Blank Disc</big>"), _("Prepare the rewriteable disc for a new burn"));
+ priv->button_blank = create_welcome_button ("stock_xfburn-blank-cdrw", _("<big>_Blank Disc</big>"), _("Prepare the rewriteable disc for a new burn"));
gtk_table_attach_defaults (GTK_TABLE (table), priv->button_blank, 0, 1, 1, 2);
gtk_widget_show (priv->button_blank);
g_signal_connect (G_OBJECT(priv->button_blank), "clicked", G_CALLBACK(blank_disc), obj);
- priv->button_audio_comp = create_welcome_button (XFBURN_STOCK_AUDIO_CD, _("<big>_Audio CD</big>"), _("Audio CD playable in regular stereos"));
+ priv->button_audio_comp = create_welcome_button ("stock_xfburn-audio-cd", _("<big>_Audio CD</big>"), _("Audio CD playable in regular stereos"));
gtk_table_attach_defaults (GTK_TABLE (table), priv->button_audio_comp, 1, 2, 1, 2);
gtk_widget_show (priv->button_audio_comp);
g_signal_connect (G_OBJECT(priv->button_audio_comp), "clicked", G_CALLBACK(new_audio_cd), obj);
@@ -181,7 +181,7 @@ create_welcome_button (const gchar *stock, const gchar *text, const gchar *secon
gtk_label_set_markup_with_mnemonic (GTK_LABEL (label), text);
gtk_label_set_mnemonic_widget (GTK_LABEL (label), button);
- image = gtk_image_new_from_stock (stock, GTK_ICON_SIZE_DIALOG);
+ image = gtk_image_new_from_icon_name (stock, GTK_ICON_SIZE_DIALOG);
hbox = gtk_hbox_new (FALSE, 20);
vbox = gtk_vbox_new (FALSE, 2);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list