summaryrefslogtreecommitdiff
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
parent4c0af0cacc5d40b4f8cb4f2561fe811c9333d0be (diff)
downloadpluma-1eb3e7807e74f91c809e0ef57da2ef704fa54237.tar.bz2
pluma-1eb3e7807e74f91c809e0ef57da2ef704fa54237.tar.xz
avoid 'gtk_info_bar_add_button' with stock ids
-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");
}