# HG changeset patch # User Herman Bloggs # Date 1047415070 0 # Node ID 362490c75f747157c3c7ce8b203f56b78b71727b # Parent 51ce3eb7e0bf14c8567bde3c95881b89a07e2c0e [gaim-migrate @ 5026] updating for new buddy list committer: Tailor Script diff -r 51ce3eb7e0bf -r 362490c75f74 src/win32/systray.c --- a/src/win32/systray.c Tue Mar 11 20:36:54 2003 +0000 +++ b/src/win32/systray.c Tue Mar 11 20:37:50 2003 +0000 @@ -235,7 +235,8 @@ if( lparam == WM_LBUTTONDBLCLK ) { /* Double Click */ /* Either hide or show current window (login or buddy) */ - docklet_toggle(); + gaim_gtk_blist_docklet_toggle(); +#if 0 /* if away.. hide/show I'm back win too */ if(st_state == SYSTRAY_STATE_AWAY) { if(GTK_WIDGET_VISIBLE(blist) && !GTK_WIDGET_VISIBLE(imaway)) { @@ -246,6 +247,7 @@ gtk_widget_hide(imaway); } } +#endif debug_printf("Systray got double click\n"); } if( lparam == WM_RBUTTONUP ) { @@ -418,12 +420,12 @@ switch( msg->message ) { case WM_SYSCOMMAND: if( msg->wParam == SC_MINIMIZE ) { - hide_buddy_list(); + gaim_blist_set_visible(FALSE); return GDK_FILTER_REMOVE; } break; case WM_CLOSE: - hide_buddy_list(); + gaim_blist_set_visible(FALSE); return GDK_FILTER_REMOVE; } @@ -464,7 +466,7 @@ /* Create a hidden window and associate it with the systray icon. We use this hidden window to proccess WM_TRAYMESSAGE msgs. */ void wgaim_systray_init(void) { - docklet_add(); + gaim_gtk_blist_docklet_add(); /* dummy window to process systray messages */ systray_hwnd = systray_create_hiddenwin(); @@ -489,7 +491,7 @@ } void wgaim_systray_cleanup(void) { - docklet_remove(); + gaim_gtk_blist_docklet_remove(); systray_remove_nid(); DestroyMenu(systray_menu); DestroyWindow(systray_hwnd);