From e5bd2471b06793da690ecfd8f812efd377b3d9d5 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Sat, 29 Oct 2011 04:46:42 -0400 Subject: [PATCH] ocarina: Rearrange the now playing panel I want controls to be on the same level as the artist / album / title labels. This will be more compact, and it won't waste a lot of empty space above the labels and next to the controls. --- ocarina/footer/footer.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ocarina/footer/footer.cpp b/ocarina/footer/footer.cpp index 6489cc6d..54b587c4 100644 --- a/ocarina/footer/footer.cpp +++ b/ocarina/footer/footer.cpp @@ -7,18 +7,19 @@ static GtkWidget *footer = NULL; static void make_footer() { GtkWidget *sep = gtk_hseparator_new(); - footer = gtk_vbox_new(FALSE, 0); + GtkWidget *content = gtk_hbox_new(FALSE, 5); - gtk_widget_show(sep); - gtk_widget_show(footer); + footer = gtk_vbox_new(FALSE, 0); + box_pack_start(footer, sep, FALSE, FALSE, 0); + box_pack_start(footer, content, FALSE, FALSE, 0); /* * The pause button begins life hidden, so show everything up until * this point, and then add the controls */ gtk_widget_show_all(footer); - box_pack_start(footer, sep, FALSE, FALSE, 0); - box_pack_start(footer, get_controls(), FALSE, FALSE, 0); - box_pack_start(footer, get_nowplaying(), FALSE, FALSE, 0); + + box_pack_start(content, get_nowplaying(), TRUE, TRUE, 0); + box_pack_start(content, get_controls(), FALSE, FALSE, 0); } GtkWidget *get_footer()