diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-01-23 18:01:05 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-01-23 18:01:05 +0000 |
commit | 90999c9a9932fe8d8f1bed21d7799db84f310076 (patch) | |
tree | 79e48eeacd4427fe31f4226e7584f9ed16fb292a /src/mainwindow.c | |
parent | 68457eb396400cc621286817298e3912e08361b1 (diff) |
use GTK stock button for dialog button set.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@30 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 9 |
1 files changed, 6 insertions, 3 deletions
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); } |