# HG changeset patch # User Herman Bloggs # Date 1053107933 0 # Node ID afe9e1f0b9b0f645e967507f1764101ae84fc177 # Parent dbed3f9673270859a5e7061b843ca5bb3fa7677e [gaim-migrate @ 5775] Fix for disapearing Signoff option. Bug #719134 committer: Tailor Script diff -r dbed3f967327 -r afe9e1f0b9b0 src/win32/systray.c --- a/src/win32/systray.c Fri May 16 17:29:20 2003 +0000 +++ b/src/win32/systray.c Fri May 16 17:58:53 2003 +0000 @@ -1,9 +1,25 @@ /* - * systray.c + * gaim - Windows Gaim systray module + * + * File: systray.c + * Date: November, 2002 + * + * Copyright (C) 2002, Herman Bloggs * - * Author: Herman Bloggs - * Date: November, 2002 - * Description: Gaim systray functionality + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * */ #include #include @@ -34,7 +50,7 @@ typedef enum _SYSTRAY_STATE SYSTRAY_STATE; enum _SYSTRAY_CMND { - SYSTRAY_CMND_MENU_EXIT, + SYSTRAY_CMND_MENU_EXIT=100, SYSTRAY_CMND_SIGNON, SYSTRAY_CMND_SIGNOFF, SYSTRAY_CMND_AUTOLOGIN, @@ -79,6 +95,17 @@ return 1; } +static int GetMenuItemPosition( HMENU hMenu, UINT id ) { + int count = GetMenuItemCount(hMenu); + int i; + + for(i=0;i