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:
parent
fc4f311971
commit
e5bd2471b0
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue