diff --git a/openbox/menu.c b/openbox/menu.c index caf3887b..a02cda9d 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -72,7 +72,7 @@ void menu_startup() Action *a; menu_hash = g_hash_table_new_full(g_str_hash, g_str_equal, - menu_destroy_hash_key, + (GDestroyNotify)menu_destroy_hash_key, (GDestroyNotify)menu_destroy_hash_value); m = menu_new("sex menu", "root", NULL); diff --git a/openbox/menu.h b/openbox/menu.h index 7b0fb678..6cb76a5e 100644 --- a/openbox/menu.h +++ b/openbox/menu.h @@ -69,7 +69,7 @@ typedef enum MenuEntryRenderType { MenuEntryRenderType_Other = 1 << 7 } MenuEntryRenderType; -typedef struct { +typedef struct MenuEntry { char *label; Menu *parent;