diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-09-26 09:11:35 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-09-26 09:11:35 +0000 |
commit | 3f9199ca083813e08de4299a5fb966bc0c716420 (patch) | |
tree | eef2a25209041d9bf29591da89915aab2f3a2b98 /src/mainwindow.c | |
parent | b94e6a1d8c18513d022cd1ff57a1924de7be1b84 (diff) |
implemented tray icon in Win32.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1189 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 3a46c90a..814fbcf5 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -849,7 +849,7 @@ MainWindow *main_window_create(SeparateType type) GtkWidget *ac_button; GtkWidget *ac_label; - GtkWidget *tray_icon; + TrayIcon *tray_icon; FolderView *folderview; SummaryView *summaryview; @@ -966,7 +966,7 @@ MainWindow *main_window_create(SeparateType type) tray_icon = trayicon_create(mainwin); if (tray_icon && prefs_common.show_trayicon) - gtk_widget_show(tray_icon); + trayicon_show(tray_icon); /* create views */ mainwin->folderview = folderview = folderview_create(); @@ -1222,10 +1222,10 @@ void main_window_reflect_prefs_all(void) if (mainwin->tray_icon) { if (prefs_common.show_trayicon) - gtk_widget_show(mainwin->tray_icon); + trayicon_show(mainwin->tray_icon); else { /* trayicon is automatically restored after this */ - gtk_widget_destroy(mainwin->tray_icon); + trayicon_destroy(mainwin->tray_icon); } } @@ -2807,6 +2807,10 @@ static gboolean main_window_window_state_cb(GtkWidget *widget, mainwin->window_hidden = FALSE; } + if (mainwin->window_hidden && + prefs_common.show_trayicon && prefs_common.minimize_to_tray) + gtk_window_set_skip_taskbar_hint(GTK_WINDOW(widget), TRUE); + return FALSE; } |