summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pluma/pluma-io-error-message-area.c17
-rw-r--r--pluma/pluma-progress-message-area.c7
2 files changed, 15 insertions, 9 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);
diff --git a/pluma/pluma-progress-message-area.c b/pluma/pluma-progress-message-area.c
index e8ed12eb..91acdf38 100644
--- a/pluma/pluma-progress-message-area.c
+++ b/pluma/pluma-progress-message-area.c
@@ -62,9 +62,10 @@ pluma_progress_message_area_set_has_cancel_button (PlumaProgressMessageArea *are
gboolean has_button)
{
if (has_button)
- gtk_info_bar_add_button (GTK_INFO_BAR (area),
- "gtk-cancel",
- GTK_RESPONSE_CANCEL);
+ gtk_button_set_image (GTK_BUTTON (gtk_info_bar_add_button (GTK_INFO_BAR (area),
+ _("_Cancel"),
+ GTK_RESPONSE_CANCEL)),
+ gtk_image_new_from_icon_name ("process-stop", GTK_ICON_SIZE_BUTTON));
g_object_notify (G_OBJECT (area), "has-cancel-button");
}