aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-12-28 05:00:53 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-12-28 05:00:53 +0000
commitf4ab0f022c847485d347d1ce8cd2ffcde3497f56 (patch)
treea09345c7580cdeb102f97a6510a01e3b46132081 /src/mainwindow.c
parentf0ded112875ffa7337d442bd05abdd97170d8dc1 (diff)
added configure option '--disable-updatecheck' which disables the update check feature.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2407 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index f83ffcfa..dd5eedb9 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -527,9 +527,11 @@ static void faq_open_cb (MainWindow *mainwin,
static void help_cmdline_cb (MainWindow *mainwin,
guint action,
GtkWidget *widget);
+#if USE_UPDATE_CHECK
static void update_check_cb (MainWindow *mainwin,
guint action,
GtkWidget *widget);
+#endif
static void scan_tree_func (Folder *folder,
FolderItem *item,
@@ -888,8 +890,10 @@ static GtkItemFactoryEntry mainwin_entries[] =
{N_("/_Help/_FAQ/_French"), NULL, faq_open_cb, MANUAL_LANG_FR, NULL},
{N_("/_Help/_FAQ/_Italian"), NULL, faq_open_cb, MANUAL_LANG_IT, NULL},
{N_("/_Help/_Command line options"), NULL, help_cmdline_cb, 0, NULL},
+#if USE_UPDATE_CHECK
{N_("/_Help/---"), NULL, NULL, 0, "<Separator>"},
{N_("/_Help/_Update check..."), NULL, update_check_cb, 0, NULL},
+#endif
{N_("/_Help/---"), NULL, NULL, 0, "<Separator>"},
{N_("/_Help/_About"), NULL, about_show, 0, NULL}
};
@@ -4046,11 +4050,13 @@ static void help_cmdline_cb(MainWindow *mainwin, guint action,
help_command_line_show();
}
+#if USE_UPDATE_CHECK
static void update_check_cb(MainWindow *mainwin, guint action,
GtkWidget *widget)
{
update_check(TRUE);
}
+#endif
static void scan_tree_func(Folder *folder, FolderItem *item, gpointer data)
{