From: Daniel A. <dat...@us...> - 2006-01-31 21:45:21
|
Update of /cvsroot/gaim/gaim/plugins/docklet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2369 Modified Files: docklet-win32.c Log Message: Apparently, if you don't have tooltip text specified for a System Tray icon, the customizations for always showing and etc. aren't stored. This seems to work if the tooltip text change, but there needs to be one at startup. Index: docklet-win32.c =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/docklet/docklet-win32.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -p -r1.16 -r1.17 --- docklet-win32.c 16 Dec 2005 09:16:14 -0000 1.16 +++ docklet-win32.c 31 Jan 2006 21:45:10 -0000 1.17 @@ -137,7 +137,7 @@ static void systray_init_icon(HWND hWnd, wgaim_nid.uFlags=NIF_ICON | NIF_MESSAGE | NIF_TIP; wgaim_nid.uCallbackMessage=WM_TRAYMESSAGE; wgaim_nid.hIcon=icon; - lstrcpy(wgaim_nid.szTip, ""); + lstrcpy(wgaim_nid.szTip, "Gaim"); Shell_NotifyIcon(NIM_ADD,&wgaim_nid); docklet_embedded(); } @@ -184,7 +184,7 @@ static void wgaim_tray_set_tooltip(gchar lstrcpyn(wgaim_nid.szTip, locenc, sizeof(wgaim_nid.szTip)/sizeof(TCHAR)); g_free(locenc); } else { - lstrcpy(wgaim_nid.szTip, ""); + lstrcpy(wgaim_nid.szTip, "Gaim"); } Shell_NotifyIcon(NIM_MODIFY, &wgaim_nid); } @@ -207,7 +207,7 @@ static void wgaim_tray_create() { GetVersionEx(&osinfo); /* Load icons, and init systray notify icon - * NOTE: Windows > XP only supports displaying 4-bit images in the Systray, + * NOTE: Windows < XP only supports displaying 4-bit images in the Systray, * 2K and ME will use the highest color depth that the desktop will support, * but will scale it back to 4-bits for display. * That is why we use custom 4-bit icons for pre XP Windowses */ |