summaryrefslogtreecommitdiff
path: root/pluma/pluma-io-error-message-area.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-04-16 00:41:37 +0200
committerPablo Barciela <[email protected]>2018-04-18 00:43:02 +0200
commit1eb3e7807e74f91c809e0ef57da2ef704fa54237 (patch)
treee1e3fe1cd8ce7ec4ae14d84271d7f70b11cb8384 /pluma/pluma-io-error-message-area.c
parent4c0af0cacc5d40b4f8cb4f2561fe811c9333d0be (diff)
downloadpluma-1eb3e7807e74f91c809e0ef57da2ef704fa54237.tar.bz2
pluma-1eb3e7807e74f91c809e0ef57da2ef704fa54237.tar.xz
avoid 'gtk_info_bar_add_button' with stock ids
Diffstat (limited to 'pluma/pluma-io-error-message-area.c')
-rw-r--r--pluma/pluma-io-error-message-area.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/pluma/pluma-io-error-message-area.c b/pluma/pluma-io-error-message-area.c
index 06eb0d77..6560e5b1 100644
--- a/pluma/pluma-io-error-message-area.c
+++ b/pluma/pluma-io-error-message-area.c
@@ -499,9 +499,11 @@ create_conversion_error_message_area (const gchar *primary_text,
}
else
{
- gtk_info_bar_add_button (GTK_INFO_BAR (message_area),
- "gtk-cancel",
- GTK_RESPONSE_CANCEL);
+ gtk_button_set_image (GTK_BUTTON (gtk_info_bar_add_button (GTK_INFO_BAR (message_area),
+ _("_Cancel"),
+ GTK_RESPONSE_CANCEL)),
+ gtk_image_new_from_icon_name ("process-stop", GTK_ICON_SIZE_BUTTON));
+
gtk_info_bar_set_message_type (GTK_INFO_BAR (message_area),
GTK_MESSAGE_ERROR);
}
@@ -1179,9 +1181,12 @@ pluma_externally_modified_message_area_new (const gchar *uri,
_("_Reload"),
"view-refresh",
GTK_RESPONSE_OK);
- gtk_info_bar_add_button (GTK_INFO_BAR (message_area),
- "gtk-cancel",
- GTK_RESPONSE_CANCEL);
+
+ gtk_button_set_image (GTK_BUTTON (gtk_info_bar_add_button (GTK_INFO_BAR (message_area),
+ _("_Cancel"),
+ GTK_RESPONSE_CANCEL)),
+ gtk_image_new_from_icon_name ("process-stop", GTK_ICON_SIZE_BUTTON));
+
gtk_info_bar_set_message_type (GTK_INFO_BAR (message_area),
GTK_MESSAGE_WARNING);