summaryrefslogtreecommitdiff
path: root/openbox/menu.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-04-22 00:36:54 +0000
committerDana Jansens <danakj@orodu.net>2007-04-22 00:36:54 +0000
commit957963e272be1fba1e06dd2bdcfa9a4348121baf (patch)
tree03b239699cc3472652ecf63605ff4df88b80f588 /openbox/menu.h
parent854b2ae68498133f3119ec614b725025af3fd66b (diff)
1) get rid of menu titles
2) let separators have labels, when they have a label, then they will appear like a menu title used to so if you want a menu title, you use a separator in the menu itself at the top more style work may be needed
Diffstat (limited to 'openbox/menu.h')
-rw-r--r--openbox/menu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/menu.h b/openbox/menu.h
index f9daef10..5b8810fd 100644
--- a/openbox/menu.h
+++ b/openbox/menu.h
@@ -1,7 +1,7 @@
/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
menu.h for the Openbox window manager
- Copyright (c) 2003 Ben Jansens
+ Copyright (c) 2003-2007 Dana Jansens
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
@@ -100,7 +100,7 @@ struct _ObSubmenuMenuEntry {
};
struct _ObSeparatorMenuEntry {
- gchar foo; /* placeholder */
+ gchar *label;
};
struct _ObMenuEntry
@@ -136,7 +136,7 @@ void menu_set_destroy_func(ObMenu *menu, ObMenuDestroyFunc func);
ObMenuEntry* menu_add_normal(ObMenu *menu, gint id, const gchar *label,
GSList *actions);
ObMenuEntry* menu_add_submenu(ObMenu *menu, gint id, const gchar *submenu);
-ObMenuEntry* menu_add_separator(ObMenu *menu, gint id);
+ObMenuEntry* menu_add_separator(ObMenu *menu, gint id, const gchar *label);
void menu_clear_entries(ObMenu *menu);
void menu_entry_remove(ObMenuEntry *self);