From f33ee443defbb79b34dc26455a819ceec42dbf01 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 24 Oct 2012 00:14:55 +0200 Subject: [PATCH] Show read and collected side-by-side * src/eom-detail-window.c (COLUMNS): Change the number of columns per table from 8 to 4 since they now have to share space. --- src/eom-detail-window.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/eom-detail-window.c b/src/eom-detail-window.c index 2af6f8a..5f3de4a 100644 --- a/src/eom-detail-window.c +++ b/src/eom-detail-window.c @@ -10,7 +10,7 @@ #include "eom-new-item-dialog.h" #include "interface.h" -#define COLUMNS 8 +#define COLUMNS 4 enum { EOM_EDIT_PROP_0, @@ -147,6 +147,7 @@ eom_detail_window_init(EomDetailWindow *self) { GtkWidget *panarea; GtkWidget *clabel, *rlabel; + GtkWidget *vbox; add_menu(self); @@ -156,23 +157,29 @@ eom_detail_window_init(EomDetailWindow *self) NULL); gtk_container_add(GTK_CONTAINER(self), panarea); - self->volsbox = gtk_vbox_new(FALSE, 0); + self->volsbox = gtk_hbox_new(TRUE, 5); hildon_pannable_area_add_with_viewport(HILDON_PANNABLE_AREA(panarea), self->volsbox); + vbox = gtk_vbox_new(FALSE, 0); + gtk_box_pack_start(GTK_BOX(self->volsbox), vbox, TRUE, TRUE, 0); + clabel = gtk_label_new("Collected:"); gtk_misc_set_alignment(GTK_MISC(clabel), 0.0, 0.5); - gtk_box_pack_start(GTK_BOX(self->volsbox), clabel, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(vbox), clabel, FALSE, FALSE, 0); self->ctable = gtk_table_new(0, 0, TRUE); - gtk_box_pack_start(GTK_BOX(self->volsbox), self->ctable, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(vbox), self->ctable, FALSE, FALSE, 0); + + vbox = gtk_vbox_new(FALSE, 0); + gtk_box_pack_start(GTK_BOX(self->volsbox), vbox, TRUE, TRUE, 0); rlabel = gtk_label_new("Read:"); gtk_misc_set_alignment(GTK_MISC(rlabel), 0.0, 0.5); - gtk_box_pack_start(GTK_BOX(self->volsbox), rlabel, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(vbox), rlabel, FALSE, FALSE, 0); self->rtable = gtk_table_new(0, 0, TRUE); - gtk_box_pack_start(GTK_BOX(self->volsbox), self->rtable, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(vbox), self->rtable, FALSE, FALSE, 0); } static void