From 90999c9a9932fe8d8f1bed21d7799db84f310076 Mon Sep 17 00:00:00 2001 From: hiro Date: Sun, 23 Jan 2005 18:01:05 +0000 Subject: use GTK stock button for dialog button set. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@30 ee746299-78ed-0310-b773-934348b2243d --- src/mainwindow.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/mainwindow.c') diff --git a/src/mainwindow.c b/src/mainwindow.c index e01cfc9e..9d0b0c05 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -1472,7 +1472,8 @@ gboolean main_window_toggle_online_if_offline(MainWindow *mainwin) if (!prefs_common.online_mode) { if (alertpanel(_("Offline"), _("You are offline. Go online?"), - _("Yes"), _("No"), NULL) == G_ALERTDEFAULT) + GTK_STOCK_YES, GTK_STOCK_NO, NULL) + == G_ALERTDEFAULT) main_window_toggle_online(mainwin, TRUE); } @@ -1486,7 +1487,8 @@ void main_window_empty_trash(MainWindow *mainwin, gboolean confirm) if (confirm) { if (alertpanel(_("Empty all trash"), _("Empty messages in all trash?"), - _("Yes"), _("No"), NULL) != G_ALERTDEFAULT) + GTK_STOCK_YES, GTK_STOCK_NO, NULL) + != G_ALERTDEFAULT) return; manage_window_focus_in(mainwin->window, NULL, NULL); } @@ -2607,7 +2609,8 @@ static void app_exit_cb(MainWindow *mainwin, guint action, GtkWidget *widget) { if (prefs_common.confirm_on_exit) { if (alertpanel(_("Exit"), _("Exit this program?"), - _("OK"), _("Cancel"), NULL) != G_ALERTDEFAULT) + GTK_STOCK_OK, GTK_STOCK_CANCEL, NULL) + != G_ALERTDEFAULT) return; manage_window_focus_in(mainwin->window, NULL, NULL); } -- cgit v1.2.3