diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-02-01 06:14:04 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-02-01 06:14:04 +0000 |
commit | 06419d2b001022b5c85d6fca399dfbac1bfe4427 (patch) | |
tree | 75cab54610c74685d00221617dcee069fe8d1bba /src/mainwindow.c | |
parent | 82a2ac81b66667aaf0d45d3db27388c0b4cccee8 (diff) |
disabled Actions menu on win32.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@952 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index a3bcc308..f78fb06e 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -448,9 +448,11 @@ static void prefs_filter_open_cb (MainWindow *mainwin, static void prefs_template_open_cb (MainWindow *mainwin, guint action, GtkWidget *widget); +#ifndef G_OS_WIN32 static void prefs_actions_open_cb (MainWindow *mainwin, guint action, GtkWidget *widget); +#endif static void prefs_account_open_cb (MainWindow *mainwin, guint action, GtkWidget *widget); @@ -770,8 +772,10 @@ static GtkItemFactoryEntry mainwin_entries[] = {N_("/_Tools/Filter junk _mails in selected messages"), NULL, filter_junk_cb, 1, NULL}, {N_("/_Tools/---"), NULL, NULL, 0, "<Separator>"}, +#ifndef G_OS_WIN32 {N_("/_Tools/Actio_ns"), NULL, NULL, 0, "<Branch>"}, {N_("/_Tools/---"), NULL, NULL, 0, "<Separator>"}, +#endif {N_("/_Tools/Delete du_plicated messages"), NULL, delete_duplicated_cb, 0, NULL}, {N_("/_Tools/---"), NULL, NULL, 0, "<Separator>"}, @@ -785,7 +789,9 @@ static GtkItemFactoryEntry mainwin_entries[] = {N_("/_Configuration/_Filter setting..."), NULL, prefs_filter_open_cb, 0, NULL}, {N_("/_Configuration/_Template..."), NULL, prefs_template_open_cb, 0, NULL}, +#ifndef G_OS_WIN32 {N_("/_Configuration/_Actions..."), NULL, prefs_actions_open_cb, 0, NULL}, +#endif {N_("/_Configuration/---"), NULL, NULL, 0, "<Separator>"}, {N_("/_Configuration/_Preferences for current account..."), NULL, prefs_account_open_cb, 0, NULL}, @@ -1080,7 +1086,9 @@ MainWindow *main_window_create(SeparateType type) main_window_set_toolbar_sensitive(mainwin); /* create actions menu */ +#ifndef G_OS_WIN32 action_update_mainwin_menu(ifactory, mainwin); +#endif /* initialize online switch */ prefs_common.online_mode = !prefs_common.online_mode; @@ -1947,7 +1955,9 @@ void main_window_set_menu_sensitive(MainWindow *mainwin) {"/Tools/Create filter rule" , M_SINGLE_TARGET_EXIST|M_UNLOCKED}, {"/Tools/Filter junk mails in folder" , M_MSG_EXIST|M_EXEC|M_ENABLE_JUNK}, {"/Tools/Filter junk mails in selected messages", M_TARGET_EXIST|M_EXEC|M_ENABLE_JUNK}, +#ifndef G_OS_WIN32 {"/Tools/Actions" , M_TARGET_EXIST|M_UNLOCKED}, +#endif {"/Tools/Execute" , M_MSG_EXIST|M_EXEC}, {"/Tools/Delete duplicated messages" , M_MSG_EXIST|M_ALLOW_DELETE}, @@ -3425,11 +3435,13 @@ static void prefs_template_open_cb(MainWindow *mainwin, guint action, prefs_template_open(); } +#ifndef G_OS_WIN32 static void prefs_actions_open_cb(MainWindow *mainwin, guint action, GtkWidget *widget) { prefs_actions_open(mainwin); } +#endif static void prefs_account_open_cb(MainWindow *mainwin, guint action, GtkWidget *widget) |