From 122b1b0d2c784c384024578228d280826b90dd75 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 1 May 2015 10:11:22 -0400 Subject: [PATCH] Some TODO consolidation. --- TODO.md | 1 + unix/menu.c | 1 - windows/menu.c | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index 0896763f..28243421 100644 --- a/TODO.md +++ b/TODO.md @@ -34,6 +34,7 @@ - make their headers generated by an IDL - make sure complain()s don't have \n at the end; add one on each platform - add a `[libui]` to the beginning of the message +- figure out what to do on Windows and GTK+ if we don't have menus but the user wants a menubar (zero-height widget? don't bother? complain?) ultimately: - add some sort of runtime type checking diff --git a/unix/menu.c b/unix/menu.c index c814efe5..48f9c594 100644 --- a/unix/menu.c +++ b/unix/menu.c @@ -275,7 +275,6 @@ static void appendMenuItem(GtkMenuShell *submenu, struct menuItem *item, uiWindo g_hash_table_insert(item->windows, menuitem, ww); } -// TODO should this return a zero-height widget (or NULL) if there are no menus defined? GtkWidget *makeMenubar(uiWindow *w) { GtkWidget *menubar; diff --git a/windows/menu.c b/windows/menu.c index 432225a3..ffbc927f 100644 --- a/windows/menu.c +++ b/windows/menu.c @@ -264,7 +264,6 @@ static HMENU makeMenu(struct menu *m) return menu; } -// TODO should this return a zero-height widget (or NULL) if there are no menus defined? HMENU makeMenubar(void) { HMENU menubar;