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.
This commit is contained in:
Bryan Schumaker 2011-10-29 04:46:42 -04:00
parent fc4f311971
commit e5bd2471b0

View File

@ -7,18 +7,19 @@ static GtkWidget *footer = NULL;
static void make_footer() static void make_footer()
{ {
GtkWidget *sep = gtk_hseparator_new(); GtkWidget *sep = gtk_hseparator_new();
footer = gtk_vbox_new(FALSE, 0); GtkWidget *content = gtk_hbox_new(FALSE, 5);
gtk_widget_show(sep); footer = gtk_vbox_new(FALSE, 0);
gtk_widget_show(footer); 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 * The pause button begins life hidden, so show everything up until
* this point, and then add the controls * this point, and then add the controls
*/ */
gtk_widget_show_all(footer); 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(content, get_nowplaying(), TRUE, TRUE, 0);
box_pack_start(footer, get_nowplaying(), FALSE, FALSE, 0); box_pack_start(content, get_controls(), FALSE, FALSE, 0);
} }
GtkWidget *get_footer() GtkWidget *get_footer()