From 1b9101cf26af60835cb18601c20e7ad878043307 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Mon, 15 Aug 2016 09:33:41 -0400 Subject: [PATCH] gui/collection: Replace Add Library Path GtkButton with a GtkMenuButton This lets me add new options without needing to clutter the gui with lots of rarely-used buttons. Signed-off-by: Anna Schumaker --- gui/collection.c | 2 +- share/ocarina/ocarina6.glade | 68 ++++++++++++++++++++++++++++++++---- 2 files changed, 62 insertions(+), 8 deletions(-) diff --git a/gui/collection.c b/gui/collection.c index c1e2ca92..77ff6aec 100644 --- a/gui/collection.c +++ b/gui/collection.c @@ -19,7 +19,7 @@ static void __collection_add(GtkFileChooser *chooser) g_free(filename); } -void __collection_choose(GtkButton *button, gpointer data) +void __collection_choose(GtkMenuItem *item, gpointer data) { GtkFileFilter *filter; GtkWidget *dialog; diff --git a/share/ocarina/ocarina6.glade b/share/ocarina/ocarina6.glade index 03f43427..52b22243 100644 --- a/share/ocarina/ocarina6.glade +++ b/share/ocarina/ocarina6.glade @@ -66,11 +66,25 @@ - + True False folder-new + + True + False + + + Library Path + True + False + image21 + False + + + + True False @@ -765,19 +779,59 @@ - - Add Library Path + True True True - image3 - True - + menu1 + up + + + True + False + + + True + False + list-add + + + False + True + 0 + + + + + True + False + Add New ... + + + True + True + 1 + + + + + True + False + up + + + False + True + 2 + + + + False True - 2 + 3