]> Dogcows Code - chaz/openbox/blobdiff - openbox/menu.c
yay for simplifying code. if we check for errors we dont need the "focus_tried" stuff
[chaz/openbox] / openbox / menu.c
index da9ba6b851aa2889eaf0b9b92308811b123284bd..dbb0c70129417f54213ee9abd775c6cdcee44038 100644 (file)
@@ -110,13 +110,13 @@ void menu_startup(gboolean reconfig)
     g_assert(menu_parse_state.parent == NULL);
 
     if (!reconfig)
-        client_add_destructor(client_dest, NULL);
+        client_add_destroy_notify(client_dest, NULL);
 }
 
 void menu_shutdown(gboolean reconfig)
 {
     if (!reconfig)
-        client_remove_destructor(client_dest);
+        client_remove_destroy_notify(client_dest);
 
     parse_shutdown(menu_parse_inst);
     menu_parse_inst = NULL;
@@ -357,11 +357,12 @@ static void menu_destroy_hash_value(ObMenu *self)
     g_free(self->name);
     g_free(self->title);
     g_free(self->execute);
+    g_free(self->more_menu);
 
     g_free(self);
 }
 
-void menu_unref(ObMenu *menu)
+void menu_free(ObMenu *menu)
 {
     if (menu)
         g_hash_table_remove(menu_hash, menu->name);
This page took 0.020827 seconds and 4 git commands to generate.