remove the hilightFirst option since it wasnt actually used in the code

This commit is contained in:
Mikael Magnusson 2004-10-06 12:42:46 +00:00
parent 90c81dfff0
commit 492a26844c
3 changed files with 1 additions and 11 deletions

View file

@ -65,7 +65,6 @@ gint config_mouse_dclicktime;
gboolean config_menu_warppointer; gboolean config_menu_warppointer;
gboolean config_menu_xorstyle; gboolean config_menu_xorstyle;
gboolean config_menu_hilightfirst;
guint config_menu_hide_delay; guint config_menu_hide_delay;
GSList *config_menu_files; GSList *config_menu_files;
@ -407,8 +406,6 @@ static void parse_menu(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
config_menu_warppointer = parse_bool(doc, n); config_menu_warppointer = parse_bool(doc, n);
if ((n = parse_find_node("xorStyle", node))) if ((n = parse_find_node("xorStyle", node)))
config_menu_xorstyle = parse_bool(doc, n); config_menu_xorstyle = parse_bool(doc, n);
if ((n = parse_find_node("hilightFirst", node)))
config_menu_hilightfirst = parse_bool(doc, n);
if ((n = parse_find_node("hideDelay", node))) if ((n = parse_find_node("hideDelay", node)))
config_menu_hide_delay = parse_int(doc, n); config_menu_hide_delay = parse_int(doc, n);
} }
@ -599,7 +596,6 @@ void config_startup(ObParseInst *i)
config_menu_warppointer = TRUE; config_menu_warppointer = TRUE;
config_menu_xorstyle = TRUE; config_menu_xorstyle = TRUE;
config_menu_hilightfirst = TRUE;
config_menu_hide_delay = 250; config_menu_hide_delay = 250;
config_menu_files = NULL; config_menu_files = NULL;

View file

@ -111,8 +111,6 @@ extern gboolean config_resist_layers_below;
extern gboolean config_menu_warppointer; extern gboolean config_menu_warppointer;
/*! make menus jump around a lot */ /*! make menus jump around a lot */
extern gboolean config_menu_xorstyle; extern gboolean config_menu_xorstyle;
/*! hilight first entry in menu */
extern gboolean config_menu_hilightfirst;
/*! delay for hiding menu when opening */ /*! delay for hiding menu when opening */
extern guint config_menu_hide_delay; extern guint config_menu_hide_delay;
/*! User-specified menu files */ /*! User-specified menu files */

View file

@ -305,12 +305,8 @@ void menu_show(gchar *name, gint x, gint y, ObClient *client)
else else
menu_frame_move(frame, menu_frame_move(frame,
x - ob_rr_theme->bwidth, y - ob_rr_theme->bwidth); x - ob_rr_theme->bwidth, y - ob_rr_theme->bwidth);
if (!menu_frame_show(frame, NULL)) { if (!menu_frame_show(frame, NULL))
menu_frame_free(frame); menu_frame_free(frame);
} else {
if (frame->entries)
menu_frame_select_next(frame);
}
} }
static ObMenuEntry* menu_entry_new(ObMenu *menu, ObMenuEntryType type, gint id) static ObMenuEntry* menu_entry_new(ObMenu *menu, ObMenuEntryType type, gint id)