Skip to content

Commit

Permalink
error-message-area: avoid 'gtk_info_bar_new_with_buttons' with stock id
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Apr 17, 2018
1 parent 1eb3e78 commit 6ab8350
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pluma/pluma-io-error-message-area.c
Expand Up @@ -162,9 +162,13 @@ create_io_loading_error_message_area (const gchar *primary_text,
{
GtkWidget *message_area;

message_area = gtk_info_bar_new_with_buttons (
"gtk-cancel", GTK_RESPONSE_CANCEL,
NULL);
message_area = gtk_info_bar_new ();

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);

Expand Down

0 comments on commit 6ab8350

Please sign in to comment.