Skip to content
Permalink
Browse files

error-message-area: avoid 'gtk_info_bar_new_with_buttons' with stock id

  • Loading branch information...
sc0w committed Apr 17, 2018
1 parent 1eb3e78 commit 6ab83502622938048e7cf3b783beb1c618861819
Showing with 7 additions and 3 deletions.
  1. +7 −3 pluma/pluma-io-error-message-area.c
@@ -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);

0 comments on commit 6ab8350

Please sign in to comment.
You can’t perform that action at this time.