diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-06-21 13:19:32 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-06-21 13:19:32 +0000 |
commit | d6e8b1affec7351549c0006cc63b6923091cdd68 (patch) | |
tree | 6e5e9dd1c1ec6e141349337df844b649bbf4277d /hw/xwin/winprefs.h | |
parent | dfdbb60bf5f613b3554d5435f08f16bde72aa353 (diff) |
Bug 777: Merge from CYGWIN branch
Diffstat (limited to 'hw/xwin/winprefs.h')
-rw-r--r-- | hw/xwin/winprefs.h | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/hw/xwin/winprefs.h b/hw/xwin/winprefs.h index 4ae01c081..eb8867907 100644 --- a/hw/xwin/winprefs.h +++ b/hw/xwin/winprefs.h @@ -1,3 +1,5 @@ +#if !defined(WINPREFS_H) +#define WINPREFS_H /* * Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved. * @@ -29,6 +31,11 @@ */ /* $XFree86: $ */ +/* Need Bool */ +#include "Xdefs.h" +/* Need TURE */ +#include "misc.h" + /* Need to know how long paths can be... */ #include <limits.h> @@ -36,7 +43,7 @@ #define NAME_MAX PATH_MAX #endif #define MENU_MAX 128 /* Maximum string length of a menu name or item */ -#define PARAM_MAX (4*PATH_MAX) /* Maximim length of a parameter to a MENU */ +#define PARAM_MAX (4*PATH_MAX) /* Maximum length of a parameter to a MENU */ /* Supported commands in a MENU {} statement */ @@ -89,7 +96,7 @@ typedef struct ICONITEM unsigned long hicon; /* LoadImage() result */ } ICONITEM; -typedef struct WINMULTIWINDOWPREFS +typedef struct WINPREFS { /* Menu information */ MENUPARSED *menu; /* Array of created menus */ @@ -109,18 +116,22 @@ typedef struct WINMULTIWINDOWPREFS /* Icon information */ char iconDirectory[PATH_MAX+1]; /* Where do the .icos lie? (Win32 path) */ char defaultIconName[NAME_MAX+1]; /* Replacement for x.ico */ + char trayIconName[NAME_MAX+1]; /* Replacement for tray icon */ ICONITEM *icon; int iconItems; -} WINMULTIWINDOWPREFS; + /* Silent exit flag */ + Bool fSilentExit; + +} WINPREFS; /* Functions */ void -LoadPreferences(); +LoadPreferences(void); void SetupRootMenu (unsigned long hmenuRoot); @@ -132,7 +143,7 @@ void HandleCustomWM_INITMENU(unsigned long hwndIn, unsigned long hmenuIn); -int +Bool HandleCustomWM_COMMAND (unsigned long hwndIn, int command); @@ -143,5 +154,8 @@ unsigned long winOverrideIcon (unsigned long longpWin); unsigned long -winOverrideDefaultIcon(); +winTaskbarIcon(void); +unsigned long +winOverrideDefaultIcon(int size); +#endif |