Mercurial > pidgin
changeset 6083:65fad4831077
[gaim-migrate @ 6542]
Moved systray code to docklet plugin.
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Thu, 10 Jul 2003 23:45:46 +0000 |
parents | 61e6682af312 |
children | 9255ff99cb40 |
files | src/win32/win32dep.c src/win32/win32dep.h |
diffstat | 2 files changed, 13 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/win32/win32dep.c Thu Jul 10 23:42:50 2003 +0000 +++ b/src/win32/win32dep.c Thu Jul 10 23:45:46 2003 +0000 @@ -37,7 +37,6 @@ #include "stdafx.h" #include "resource.h" #include "MinimizeToTray.h" -#include "systray.h" #include "winuser_extra.h" #include "idletrack.h" #include "zlib.h" @@ -322,6 +321,16 @@ } } +/* Moved over from old systray.c */ +void wgaim_systray_minimize( GtkWidget *window ) { + MinimizeWndToTray(GDK_WINDOW_HWND(window->window)); +} + +void wgaim_systray_maximize( GtkWidget *window ) { + RestoreWndFromTray(GDK_WINDOW_HWND(window->window)); +} + + /* Windows Initializations */ void wgaim_init(void) { @@ -340,9 +349,6 @@ load_winver_specific_procs(); - /* Initialize Wingaim systray icon */ - wgaim_systray_init(); - /* * Winsock init */ @@ -399,9 +405,6 @@ /* Idle tracker cleanup */ wgaim_remove_idlehooks(); - - /* Remove systray icon */ - wgaim_systray_cleanup(); } /* DLL initializer */
--- a/src/win32/win32dep.h Thu Jul 10 23:42:50 2003 +0000 +++ b/src/win32/win32dep.h Thu Jul 10 23:45:46 2003 +0000 @@ -51,6 +51,9 @@ /* Utility */ extern int wgaim_gz_decompress(const char* in, const char* out); extern int wgaim_gz_untar(const char* filename, const char* destdir); +/* Docklet */ +extern void wgaim_systray_minimize( GtkWidget* ); +extern void wgaim_systray_maximize( GtkWidget* ); /* init / cleanup */ extern void wgaim_init(void); extern void wgaim_cleanup(void);