summaryrefslogtreecommitdiff
path: root/gtk/download.c
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2015-02-24 14:04:12 +0000
committerJohn-Mark Bell <jmb@netsurf-browser.org>2015-02-24 14:13:58 +0000
commit4c1e16c0772faaf074c19e278d569d70f5951827 (patch)
tree52f81bdd5d62a31b0b39123825feb75c21e3a2b4 /gtk/download.c
parent5f0964fa0936764a1b9ba692f8f33086e280c0c3 (diff)
downloadnetsurf-4c1e16c0772faaf074c19e278d569d70f5951827.tar.gz
netsurf-4c1e16c0772faaf074c19e278d569d70f5951827.tar.bz2
Partially fix usage of APIs deprecated in GTK3.jmb/gtk3hacks
Diffstat (limited to 'gtk/download.c')
-rw-r--r--gtk/download.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/download.c b/gtk/download.c
index d2588ed5a..8a147e306 100644
--- a/gtk/download.c
+++ b/gtk/download.c
@@ -595,9 +595,9 @@ static gchar* nsgtk_download_dialog_show (const gchar *filename, const gchar *do
"\n\n<small>%s</small>",
message, info);
- gtk_dialog_add_buttons(GTK_DIALOG(dialog), GTK_STOCK_SAVE,
- GTK_RESPONSE_DOWNLOAD, GTK_STOCK_CANCEL,
- GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE_AS,
+ gtk_dialog_add_buttons(GTK_DIALOG(dialog), "_Save",
+ GTK_RESPONSE_DOWNLOAD, "_Cancel",
+ GTK_RESPONSE_CANCEL, "Save _As",
GTK_RESPONSE_SAVE_AS, NULL);
gint result = gtk_dialog_run(GTK_DIALOG(dialog));
@@ -611,8 +611,8 @@ static gchar* nsgtk_download_dialog_show (const gchar *filename, const gchar *do
(messages_get("gtkSave"),
nsgtk_download_parent,
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), filename);
@@ -664,7 +664,7 @@ static gchar* nsgtk_download_dialog_show (const gchar *filename, const gchar *do
"_Replace",
GTK_RESPONSE_DOWNLOAD);
gtk_button_set_image(GTK_BUTTON(button),
- gtk_image_new_from_stock(
+ gtk_image_new_from_icon_name(
"gtk-save",
GTK_ICON_SIZE_BUTTON));