diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-06-10 08:11:08 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-06-10 08:11:08 +0000 |
commit | ca06cd994b09cbb500b35af30c8bd75dc3e0e5b7 (patch) | |
tree | 3474db42cb4b1c42007cfb84ec24ca8331b50dba /src/mainwindow.c | |
parent | 81f0f7394f9c47a30314f2884be6d4bdae302673 (diff) |
merged plugin-test branch into trunk.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2164 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index e0a43dd8..7d9736c7 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -79,6 +79,7 @@ #include "prefs_template.h" #include "prefs_search_folder.h" #include "prefs_toolbar.h" +#include "plugin_manager.h" #include "action.h" #include "account.h" #include "account_dialog.h" @@ -95,6 +96,7 @@ #include "codeconv.h" #include "about.h" #include "manual.h" +#include "update_check.h" #include "version.h" #define AC_LABEL_WIDTH 240 @@ -495,6 +497,9 @@ static void prefs_filter_open_cb (MainWindow *mainwin, static void prefs_template_open_cb (MainWindow *mainwin, guint action, GtkWidget *widget); +static void plugin_manager_open_cb (MainWindow *mainwin, + guint action, + GtkWidget *widget); #ifndef G_OS_WIN32 static void prefs_actions_open_cb (MainWindow *mainwin, guint action, @@ -522,6 +527,9 @@ static void faq_open_cb (MainWindow *mainwin, static void help_cmdline_cb (MainWindow *mainwin, guint action, GtkWidget *widget); +static void update_check_cb (MainWindow *mainwin, + guint action, + GtkWidget *widget); static void scan_tree_func (Folder *folder, FolderItem *item, @@ -857,6 +865,8 @@ static GtkItemFactoryEntry mainwin_entries[] = #ifndef G_OS_WIN32 {N_("/_Configuration/_Actions..."), NULL, prefs_actions_open_cb, 0, NULL}, #endif + {N_("/_Configuration/Plug-in _manager..."), + NULL, plugin_manager_open_cb, 0, NULL}, {N_("/_Configuration/---"), NULL, NULL, 0, "<Separator>"}, {N_("/_Configuration/_Preferences for current account..."), NULL, prefs_account_open_cb, 0, NULL}, @@ -879,6 +889,8 @@ static GtkItemFactoryEntry mainwin_entries[] = {N_("/_Help/_FAQ/_Italian"), NULL, faq_open_cb, MANUAL_LANG_IT, NULL}, {N_("/_Help/_Command line options"), NULL, help_cmdline_cb, 0, NULL}, {N_("/_Help/---"), NULL, NULL, 0, "<Separator>"}, + {N_("/_Help/_Update check..."), NULL, update_check_cb, 0, NULL}, + {N_("/_Help/---"), NULL, NULL, 0, "<Separator>"}, {N_("/_Help/_About"), NULL, about_show, 0, NULL} }; @@ -3852,6 +3864,12 @@ static void prefs_template_open_cb(MainWindow *mainwin, guint action, prefs_template_open(); } +static void plugin_manager_open_cb(MainWindow *mainwin, guint action, + GtkWidget *widget) +{ + plugin_manager_open(); +} + #ifndef G_OS_WIN32 static void prefs_actions_open_cb(MainWindow *mainwin, guint action, GtkWidget *widget) @@ -4027,6 +4045,12 @@ static void help_cmdline_cb(MainWindow *mainwin, guint action, help_command_line_show(); } +static void update_check_cb(MainWindow *mainwin, guint action, + GtkWidget *widget) +{ + update_check(TRUE); +} + static void scan_tree_func(Folder *folder, FolderItem *item, gpointer data) { MainWindow *mainwin = (MainWindow *)data; |