From 7147742803fdf31ccc66c0fed75293d780e95598 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Thu, 27 Apr 2017 08:59:18 +0200 Subject: error-message: replace usage of GtkStock --- src/eom-error-message-area.c | 6 +++--- 1 file 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); -- cgit v1.2.1