Skip to content

Commit 6ab8350

Browse files
committed
error-message-area: avoid 'gtk_info_bar_new_with_buttons' with stock id
1 parent 1eb3e78 commit 6ab8350

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pluma/pluma-io-error-message-area.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,13 @@ create_io_loading_error_message_area (const gchar *primary_text,
162162
{
163163
GtkWidget *message_area;
164164

165-
message_area = gtk_info_bar_new_with_buttons (
166-
"gtk-cancel", GTK_RESPONSE_CANCEL,
167-
NULL);
165+
message_area = gtk_info_bar_new ();
166+
167+
gtk_button_set_image (GTK_BUTTON (gtk_info_bar_add_button (GTK_INFO_BAR (message_area),
168+
_("_Cancel"),
169+
GTK_RESPONSE_CANCEL)),
170+
gtk_image_new_from_icon_name ("process-stop", GTK_ICON_SIZE_BUTTON));
171+
168172
gtk_info_bar_set_message_type (GTK_INFO_BAR (message_area),
169173
GTK_MESSAGE_ERROR);
170174

0 commit comments

Comments
 (0)