summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-27 08:59:18 +0200
committerraveit65 <[email protected]>2017-04-27 08:59:18 +0200
commit7147742803fdf31ccc66c0fed75293d780e95598 (patch)
tree4a7b70715e8e0c10ce1db84c5706e14a3077a7f6 /src
parent8e8039aab3fc315478e69f92b216befe974c24b9 (diff)
downloadeom-7147742803fdf31ccc66c0fed75293d780e95598.tar.bz2
eom-7147742803fdf31ccc66c0fed75293d780e95598.tar.xz
error-message: replace usage of GtkStock
Diffstat (limited to 'src')
-rw-r--r--src/eom-error-message-area.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eom-error-message-area.c b/src/eom-error-message-area.c
index d1ecf65..39a1f36 100644
--- a/src/eom-error-message-area.c
+++ b/src/eom-error-message-area.c
@@ -37,7 +37,7 @@
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)
{
@@ -52,7 +52,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_widget_set_valign (image, GTK_ALIGN_START);
@@ -123,7 +123,7 @@ create_error_message_area (const gchar *primary_text,
GTK_MESSAGE_ERROR);
set_message_area_text_and_icon (GTK_INFO_BAR (message_area),
- GTK_STOCK_DIALOG_ERROR,
+ "dialog-error",
primary_text,
secondary_text);