summaryrefslogtreecommitdiff
path: root/mate-panel/panel.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-04-09 20:47:07 +0200
committerPablo Barciela <[email protected]>2018-04-09 20:53:39 +0200
commita518a93b575372faee1a3da6aaa9f20cf2e10ec1 (patch)
treec51b7b40e3d2ed6f5740d1d8f76b753964177ea3 /mate-panel/panel.c
parent397531135d3510562b7c787eae2ac165dde65ef9 (diff)
downloadmate-panel-a518a93b575372faee1a3da6aaa9f20cf2e10ec1.tar.bz2
mate-panel-a518a93b575372faee1a3da6aaa9f20cf2e10ec1.tar.xz
avoid gtk_dialog_add_buttons with stock ids
Diffstat (limited to 'mate-panel/panel.c')
-rw-r--r--mate-panel/panel.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/mate-panel/panel.c b/mate-panel/panel.c
index aa129e4b..72b9e6cd 100644
--- a/mate-panel/panel.c
+++ b/mate-panel/panel.c
@@ -22,6 +22,7 @@
#include <gtk/gtkx.h> /* for GTK_IS_SOCKET */
#include <libpanel-util/panel-glib.h>
+#include <libpanel-util/panel-gtk.h>
#include "panel.h"
@@ -1342,10 +1343,14 @@ panel_deletion_dialog (PanelToplevel *toplevel)
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
"%s", text2);
- gtk_dialog_add_buttons (GTK_DIALOG (dialog),
- "gtk-cancel", GTK_RESPONSE_CANCEL,
- "gtk-delete", GTK_RESPONSE_OK,
- NULL);
+
+ panel_dialog_add_button (GTK_DIALOG (dialog),
+ _("_Cancel"), "process-stop",
+ GTK_RESPONSE_CANCEL);
+
+ panel_dialog_add_button (GTK_DIALOG (dialog),
+ _("_Delete"), "edit-delete",
+ GTK_RESPONSE_OK);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);