Removed the commented-out GTK+ menu deletion functions. I have no idea how I'm going to clean up after package ui.

This commit is contained in:
Pietro Gagliardi 2015-04-23 19:37:55 -04:00
parent 9592affb18
commit 663a2c84bb
1 changed files with 0 additions and 26 deletions

View File

@ -217,32 +217,6 @@ uiMenu *uiNewMenu(const char *name)
return uiMenu(m); return uiMenu(m);
} }
/*
void menuItemDestroy(struct menuItem *item)
{
// TODO checck that item->uiWindows is empty
g_hash_table_destroy(item->uiWindows);
gtk_widget_destroy(item->baseItem);
if (item->name != NULL)
g_free(item->name);
}
void menuDestroy(void)
{
guint i, j;
struct menu *m;
for (i = 0; i < menus->len; i++) {
m = &g_array_index(menus, struct menu, i);
for (j = 0; j < m->items->len; j++)
menuItemDestroy(&g_array_index(m->items, struct menuItem, j));
g_array_free(m->items, TRUE);
g_free(m->name);
}
g_array_free(menus, TRUE);
}
*/
static void appendMenuItem(GtkMenuShell *submenu, struct menuItem *item, uiWindow *w) static void appendMenuItem(GtkMenuShell *submenu, struct menuItem *item, uiWindow *w)
{ {
GtkWidget *menuitem; GtkWidget *menuitem;