diff options
author | Pablo Barciela <[email protected]> | 2018-04-18 01:16:11 +0200 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2018-04-18 01:18:55 +0200 |
commit | 6ab83502622938048e7cf3b783beb1c618861819 (patch) | |
tree | a880599dc82fa95b86fc54ef7bbedb4b5d2d2e11 | |
parent | 1eb3e7807e74f91c809e0ef57da2ef704fa54237 (diff) | |
download | pluma-6ab83502622938048e7cf3b783beb1c618861819.tar.bz2 pluma-6ab83502622938048e7cf3b783beb1c618861819.tar.xz |
error-message-area: avoid 'gtk_info_bar_new_with_buttons' with stock id
-rw-r--r-- | pluma/pluma-io-error-message-area.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pluma/pluma-io-error-message-area.c b/pluma/pluma-io-error-message-area.c index 6560e5b1..53487fbb 100644 --- a/pluma/pluma-io-error-message-area.c +++ b/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); |