diff options
author | Tom Willemsen | 2012-10-23 21:56:26 +0200 |
---|---|---|
committer | Tom Willemsen | 2012-10-23 21:56:26 +0200 |
commit | fd7f0ec9a302a8e9060af9aa8fbdf7a031c93760 (patch) | |
tree | c8bb6c4cffe65d5e36afc17660b7a5d1d5868099 | |
parent | 4f54019acbdd8981816e1b9d8394cd8b10c49a7c (diff) | |
download | eye-on-manga-fd7f0ec9a302a8e9060af9aa8fbdf7a031c93760.tar.gz eye-on-manga-fd7f0ec9a302a8e9060af9aa8fbdf7a031c93760.zip |
Don't expand or fill the volumes tables
Makes it look ugly.
* src/eom-detail-window.c (on_volume_toggled): Remove unused variable
`txt'.
(set_manga_id): Remove unused variable `bbox'. Change the `expand'
and `fill' arguments to `gtk_box_pack_start' to `FALSE' for both
tables.
-rw-r--r-- | src/eom-detail-window.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/eom-detail-window.c b/src/eom-detail-window.c index f1ef38d..ed8016b 100644 --- a/src/eom-detail-window.c +++ b/src/eom-detail-window.c @@ -131,7 +131,6 @@ on_volume_toggled(GtkToggleButton *togglebutton, gpointer user_data) EomDetailWindow *self = (EomDetailWindow *)user_data; gboolean active = gtk_toggle_button_get_active(togglebutton); gint volume = atoi(gtk_button_get_label(GTK_BUTTON(togglebutton))); - gchar *txt; if (active) { /* Add 1 to mangas collected */ @@ -161,7 +160,6 @@ on_volume_toggled(GtkToggleButton *togglebutton, gpointer user_data) static void set_manga_id(EomDetailWindow *self, gint manga_id) { - GtkWidget *bbox; GtkWidget *clabel, *rlabel; GtkWidget *ctable, *rtable; Manga *manga; @@ -179,7 +177,7 @@ set_manga_id(EomDetailWindow *self, gint manga_id) ctable = gtk_table_new((int)floor(manga->total_qty / COLUMNS), COLUMNS, TRUE); - gtk_box_pack_start(GTK_BOX(self->volsbox), ctable, TRUE, TRUE, 0); + gtk_box_pack_start(GTK_BOX(self->volsbox), ctable, FALSE, FALSE, 0); rlabel = gtk_label_new("Read:"); gtk_misc_set_alignment(GTK_MISC(rlabel), 0.0, 0.5); @@ -187,7 +185,7 @@ set_manga_id(EomDetailWindow *self, gint manga_id) rtable = gtk_table_new((int)floor(manga->total_qty / COLUMNS), COLUMNS, TRUE); - gtk_box_pack_start(GTK_BOX(self->volsbox), rtable, TRUE, TRUE, 0); + gtk_box_pack_start(GTK_BOX(self->volsbox), rtable, FALSE, FALSE, 0); for (i = 0; i < manga->total_qty; i++) { GtkWidget *cbtn, *rbtn; |