[eog] Fix deprecated GTK_STOCK_DIALOG_* usage
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Fix deprecated GTK_STOCK_DIALOG_* usage
- Date: Sun, 1 Sep 2013 12:24:16 +0000 (UTC)
commit f0a2faf9bc64f2ddacd77df11c058cbbc4dc0188
Author: Felix Riemann <friemann gnome org>
Date: Sun Sep 1 14:23:45 2013 +0200
Fix deprecated GTK_STOCK_DIALOG_* usage
src/eog-close-confirmation-dialog.c | 4 ++--
src/eog-error-message-area.c | 6 +++---
src/eog-window.c | 6 +++---
3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/eog-close-confirmation-dialog.c b/src/eog-close-confirmation-dialog.c
index a824e67..1c9267b 100644
--- a/src/eog-close-confirmation-dialog.c
+++ b/src/eog-close-confirmation-dialog.c
@@ -419,8 +419,8 @@ build_single_img_dialog (EogCloseConfirmationDialog *dlg)
img = EOG_IMAGE (dlg->priv->unsaved_images->data);
/* Image */
- image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING,
- GTK_ICON_SIZE_DIALOG);
+ image = gtk_image_new_from_icon_name ("dialog-warning",
+ GTK_ICON_SIZE_DIALOG);
gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.0);
/* Primary label */
diff --git a/src/eog-error-message-area.c b/src/eog-error-message-area.c
index 29ac476..06fa1aa 100644
--- a/src/eog-error-message-area.c
+++ b/src/eog-error-message-area.c
@@ -43,7 +43,7 @@ typedef enum {
static void
set_message_area_text_and_icon (GtkInfoBar *message_area,
- const gchar *icon_stock_id,
+ const gchar *icon_name,
const gchar *primary_text,
const gchar *secondary_text)
{
@@ -58,7 +58,7 @@ set_message_area_text_and_icon (GtkInfoBar *message_area,
hbox_content = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
gtk_widget_show (hbox_content);
- image = gtk_image_new_from_stock (icon_stock_id, GTK_ICON_SIZE_DIALOG);
+ image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_DIALOG);
gtk_widget_show (image);
gtk_box_pack_start (GTK_BOX (hbox_content), image, FALSE, FALSE, 0);
gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0);
@@ -135,7 +135,7 @@ create_error_message_area (const gchar *primary_text,
/* set text and icon */
set_message_area_text_and_icon (GTK_INFO_BAR (message_area),
- GTK_STOCK_DIALOG_ERROR,
+ "dialog-error",
primary_text,
secondary_text);
diff --git a/src/eog-window.c b/src/eog-window.c
index 8d99000..0214b34 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -844,7 +844,7 @@ image_file_changed_cb (EogImage *img, EogWindow *window)
GTK_RESPONSE_NO, NULL);
gtk_info_bar_set_message_type (GTK_INFO_BAR (info_bar),
GTK_MESSAGE_QUESTION);
- image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_QUESTION,
+ image = gtk_image_new_from_stock ("dialog-question",
GTK_ICON_SIZE_DIALOG);
label = gtk_label_new (NULL);
@@ -2780,8 +2780,8 @@ eog_window_set_wallpaper (EogWindow *window, const gchar *filename, const gchar
gtk_info_bar_set_message_type (GTK_INFO_BAR (info_bar),
GTK_MESSAGE_QUESTION);
- image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_QUESTION,
- GTK_ICON_SIZE_DIALOG);
+ image = gtk_image_new_from_icon_name ("dialog-question",
+ GTK_ICON_SIZE_DIALOG);
label = gtk_label_new (NULL);
if (!visible_filename)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]