Not all of the extended commands worked in the gnome interface because '#' just caused the next character to be treated as a meta character (this was a hack I added a while back when none of the extended commands worked). Resolved by finally adding an extended command menu to the gnome interface. - updated some formatting so I could read the code - fixed startup player selection menus so accelerators work - added necessary calls to make sure selected menu item is visible - also removed some dead code
33 lines
760 B
C
33 lines
760 B
C
/* SCCS Id: @(#)gnmenu.h 3.4 2000/07/16 */
|
|
/* Copyright (C) 1998 by Erik Andersen <andersee@debian.org> */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
|
|
#ifndef GnomeHackMenuWindow_h
|
|
#define GnomeHackMenuWindow_h
|
|
|
|
#include <gnome.h>
|
|
#include "config.h"
|
|
#include "global.h"
|
|
#include "gnomeprv.h"
|
|
|
|
GtkWidget* ghack_init_menu_window( void );
|
|
|
|
struct _GHackMenuItem
|
|
{
|
|
int glyph;
|
|
const ANY_P *identifier;
|
|
CHAR_P accelerator;
|
|
CHAR_P group_accel;
|
|
int attr;
|
|
const char* str;
|
|
BOOLEAN_P presel;
|
|
};
|
|
|
|
typedef struct _GHackMenuItem GHackMenuItem;
|
|
|
|
int ghack_menu_window_select_menu (GtkWidget *menuWin,
|
|
MENU_ITEM_P **_selected, gint how);
|
|
int ghack_menu_ext_cmd(void);
|
|
|
|
#endif /* GnomeHackMenuWindow_h */
|