From a518a93b575372faee1a3da6aaa9f20cf2e10ec1 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Mon, 9 Apr 2018 20:47:07 +0200 Subject: avoid gtk_dialog_add_buttons with stock ids --- mate-panel/panel-recent.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'mate-panel/panel-recent.c') diff --git a/mate-panel/panel-recent.c b/mate-panel/panel-recent.c index bd1287a1..e111c157 100644 --- a/mate-panel/panel-recent.c +++ b/mate-panel/panel-recent.c @@ -31,6 +31,7 @@ #include #include +#include #include "menu.h" #include "panel-util.h" @@ -150,10 +151,13 @@ recent_documents_clear_cb (GtkMenuItem *menuitem, "\342\200\242 All items from the Places \342\206\222 Recent Documents menu item.\n" "\342\200\242 All items from the recent documents list in all applications.")); - gtk_dialog_add_buttons (GTK_DIALOG (clear_recent_dialog), - "gtk-cancel", GTK_RESPONSE_CANCEL, - PANEL_STOCK_CLEAR, GTK_RESPONSE_ACCEPT, - NULL); + panel_dialog_add_button (GTK_DIALOG (clear_recent_dialog), + _("_Cancel"), "process-stop", + GTK_RESPONSE_CANCEL); + + gtk_dialog_add_button (GTK_DIALOG (clear_recent_dialog), + PANEL_STOCK_CLEAR, + GTK_RESPONSE_ACCEPT); gtk_container_set_border_width (GTK_CONTAINER (clear_recent_dialog), 6); -- cgit v1.2.1