summaryrefslogtreecommitdiff
path: root/mate-session/gsm-logout-dialog.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-12-12 00:52:21 +0100
committerZenWalker <[email protected]>2018-12-15 22:47:22 +0100
commit7cd2ccc48b5a90cd54ba24f6bcdfe36dd8b495f6 (patch)
treef5bc23514956c286ccaf659b69dcb63e91771d3a /mate-session/gsm-logout-dialog.c
parent717a8f94d63a2040e8af7e6613d55d74660e07ed (diff)
downloadmate-session-manager-7cd2ccc48b5a90cd54ba24f6bcdfe36dd8b495f6.tar.bz2
mate-session-manager-7cd2ccc48b5a90cd54ba24f6bcdfe36dd8b495f6.tar.xz
avoid 'gtk_dialog_add_button' with stock ids
Diffstat (limited to 'mate-session/gsm-logout-dialog.c')
-rw-r--r--mate-session/gsm-logout-dialog.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/mate-session/gsm-logout-dialog.c b/mate-session/gsm-logout-dialog.c
index 0b5741c..36aad7b 100644
--- a/mate-session/gsm-logout-dialog.c
+++ b/mate-session/gsm-logout-dialog.c
@@ -33,6 +33,7 @@
#endif
#include "gsm-consolekit.h"
#include "mdm.h"
+#include "gsm-util.h"
#define GSM_ICON_LOGOUT "system-log-out"
#define GSM_ICON_SHUTDOWN "system-shutdown"
@@ -447,9 +448,9 @@ gsm_get_dialog (GsmDialogLogoutType type,
GSM_LOGOUT_RESPONSE_SWITCH_USER);
}
- gtk_dialog_add_button (GTK_DIALOG (logout_dialog),
- "gtk-cancel",
- GTK_RESPONSE_CANCEL);
+ gsm_util_dialog_add_button (GTK_DIALOG (logout_dialog),
+ _("_Cancel"), "process-stop",
+ GTK_RESPONSE_CANCEL);
gtk_dialog_add_button (GTK_DIALOG (logout_dialog),
_("_Log Out"),
@@ -480,9 +481,9 @@ gsm_get_dialog (GsmDialogLogoutType type,
GSM_LOGOUT_RESPONSE_REBOOT);
}
- gtk_dialog_add_button (GTK_DIALOG (logout_dialog),
- "gtk-cancel",
- GTK_RESPONSE_CANCEL);
+ gsm_util_dialog_add_button (GTK_DIALOG (logout_dialog),
+ _("_Cancel"), "process-stop",
+ GTK_RESPONSE_CANCEL);
if (gsm_logout_supports_shutdown (logout_dialog)) {
gtk_dialog_add_button (GTK_DIALOG (logout_dialog),