# HG changeset patch # User Herman Bloggs # Date 1057880746 0 # Node ID 65fad4831077eec40c7bdf967c0e7f33f0adb2d0 # Parent 61e6682af3122518c7c5e8af8a70fab46258275e [gaim-migrate @ 6542] Moved systray code to docklet plugin. committer: Tailor Script diff -r 61e6682af312 -r 65fad4831077 src/win32/win32dep.c --- 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 */ diff -r 61e6682af312 -r 65fad4831077 src/win32/win32dep.h --- 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);