From d5f77cc1b4319e619011765dab06d0c75e01e7ff Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 21 Sep 2009 00:20:35 +0000 Subject: [PATCH] Nicer logout and shutdown dialog boxes --- src/panel.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/panel.c b/src/panel.c index 4f7ebf0..17c6a25 100644 --- a/src/panel.c +++ b/src/panel.c @@ -283,7 +283,9 @@ static int _panel_helper_logout_dialog(void) int res; dialog = gtk_message_dialog_new(NULL, 0, GTK_MESSAGE_WARNING, - GTK_BUTTONS_NONE, "%s", message); + GTK_BUTTONS_NONE, "%s", "Warning"); + gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), + "%s", message); gtk_dialog_add_buttons(GTK_DIALOG(dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, "Logout", GTK_RESPONSE_ACCEPT, NULL); @@ -340,7 +342,9 @@ static int _panel_helper_shutdown_dialog(void) "now", NULL }; dialog = gtk_message_dialog_new(NULL, 0, GTK_MESSAGE_WARNING, - GTK_BUTTONS_NONE, "%s", message); + GTK_BUTTONS_NONE, "%s", "Warning"); + gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), + "%s", message); gtk_dialog_add_buttons(GTK_DIALOG(dialog), GTK_STOCK_CANCEL, RES_CANCEL, "Reboot", RES_REBOOT, "Shutdown", RES_SHUTDOWN, NULL); gtk_window_set_keep_above(GTK_WINDOW(dialog), TRUE);