diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-04-08 22:21:30 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-04-08 22:21:30 +0100 |
commit | 5a14a74ab193c1252cac62a94e019747aaad9d99 (patch) | |
tree | 636d18adc6ee826064d0ff7f9ecb26014d59a259 /gtk/download.c | |
parent | a6b02680a70afebacc479730edcf3a7b1449b5f3 (diff) | |
download | netsurf-5a14a74ab193c1252cac62a94e019747aaad9d99.tar.gz netsurf-5a14a74ab193c1252cac62a94e019747aaad9d99.tar.bz2 |
Update gtk compatability header to cope with deprication of stock icon interface
Diffstat (limited to 'gtk/download.c')
-rw-r--r-- | gtk/download.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gtk/download.c b/gtk/download.c index d2588ed5a..8f7916608 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), NSGTK_STOCK_SAVE, + GTK_RESPONSE_DOWNLOAD, NSGTK_STOCK_CANCEL, + GTK_RESPONSE_CANCEL, NSGTK_STOCK_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, + NSGTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, + NSGTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER(dialog), filename); @@ -664,12 +664,11 @@ 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-save", + nsgtk_image_new_from_stock( + NSGTK_STOCK_SAVE, GTK_ICON_SIZE_BUTTON)); - gint result = gtk_dialog_run(GTK_DIALOG( - dialog)); + gint result = gtk_dialog_run(GTK_DIALOG(dialog)); if (result == GTK_RESPONSE_CANCEL) destination = NULL; |