Mercurial > pidgin.yaz
changeset 3970:3bc436a24548
[gaim-migrate @ 4154]
win32: minimize and maximize effect for hide_buddy_list and docklet_toggle
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Sat, 16 Nov 2002 01:07:25 +0000 |
parents | 020345f97ceb |
children | 15b0d5b2de4d |
files | src/buddy.c |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buddy.c Sat Nov 16 01:03:14 2002 +0000 +++ b/src/buddy.c Sat Nov 16 01:07:25 2002 +0000 @@ -2012,6 +2012,10 @@ void hide_buddy_list() { if (blist) { if (!connections || docklet_count) { +#ifdef _WIN32 + /* minimize to systray with effects */ + wgaim_systray_minimize(blist); +#endif gtk_widget_hide(blist); } else { gtk_window_iconify(GTK_WINDOW(blist)); @@ -2082,6 +2086,9 @@ hide_buddy_list(); } } else { +#if _WIN32 + wgaim_systray_maximize(blist); +#endif unhide_buddy_list(); } } else if (connections) { @@ -2092,9 +2099,15 @@ if (GAIM_WINDOW_ICONIFIED(mainwindow)) { gtk_window_present(GTK_WINDOW(mainwindow)); } else { +#if _WIN32 + wgaim_systray_minimize(mainwindow); +#endif gtk_widget_hide(mainwindow); } } else { +#if _WIN32 + wgaim_systray_maximize(mainwindow); +#endif gtk_window_present(GTK_WINDOW(mainwindow)); } }