aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-10-05 06:47:02 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-10-05 06:47:02 +0000
commitdbeea1f396592439f2c52abcd7067d5107240e19 (patch)
tree62a81e15020ad8119e3ddda8cffaaa2cf07a1c1c /src/main.c
parente1751c80144745a8e6d92c52bd7f4398cb620c7e (diff)
display status on loading plug-ins.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2270 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index af686954..44d29565 100644
--- a/src/main.c
+++ b/src/main.c
@@ -132,6 +132,19 @@ static struct RemoteCmd {
#endif
} cmd;
+#define STATUSBAR_PUSH(mainwin, str) \
+{ \
+ gtk_statusbar_push(GTK_STATUSBAR(mainwin->statusbar), \
+ mainwin->mainwin_cid, str); \
+ gtkut_widget_draw_now(mainwin->statusbar); \
+}
+
+#define STATUSBAR_POP(mainwin) \
+{ \
+ gtk_statusbar_pop(GTK_STATUSBAR(mainwin->statusbar), \
+ mainwin->mainwin_cid); \
+}
+
static void parse_cmd_opt (int argc,
char *argv[]);
@@ -1057,8 +1070,12 @@ static void plugin_init(void)
mainwin = main_window_get();
- if (syl_plugin_init_lib() != 0)
+ STATUSBAR_PUSH(mainwin, _("Loading plug-ins..."));
+
+ if (syl_plugin_init_lib() != 0) {
+ STATUSBAR_POP(mainwin);
return;
+ }
syl_plugin_add_symbol("prog_version", prog_version);
syl_plugin_add_symbol("main_window_get", main_window_get);
@@ -1116,6 +1133,7 @@ static void plugin_init(void)
#else
syl_plugin_load_all(PLUGINDIR);
#endif
+ STATUSBAR_POP(mainwin);
}
static gchar *get_socket_name(void)