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.
This commit is contained in:
parent
4f54019acb
commit
fd7f0ec9a3
1 changed files with 2 additions and 4 deletions
|
@ -131,7 +131,6 @@ on_volume_toggled(GtkToggleButton *togglebutton, gpointer user_data)
|
||||||
EomDetailWindow *self = (EomDetailWindow *)user_data;
|
EomDetailWindow *self = (EomDetailWindow *)user_data;
|
||||||
gboolean active = gtk_toggle_button_get_active(togglebutton);
|
gboolean active = gtk_toggle_button_get_active(togglebutton);
|
||||||
gint volume = atoi(gtk_button_get_label(GTK_BUTTON(togglebutton)));
|
gint volume = atoi(gtk_button_get_label(GTK_BUTTON(togglebutton)));
|
||||||
gchar *txt;
|
|
||||||
|
|
||||||
if (active) {
|
if (active) {
|
||||||
/* Add 1 to mangas collected */
|
/* Add 1 to mangas collected */
|
||||||
|
@ -161,7 +160,6 @@ on_volume_toggled(GtkToggleButton *togglebutton, gpointer user_data)
|
||||||
static void
|
static void
|
||||||
set_manga_id(EomDetailWindow *self, gint manga_id)
|
set_manga_id(EomDetailWindow *self, gint manga_id)
|
||||||
{
|
{
|
||||||
GtkWidget *bbox;
|
|
||||||
GtkWidget *clabel, *rlabel;
|
GtkWidget *clabel, *rlabel;
|
||||||
GtkWidget *ctable, *rtable;
|
GtkWidget *ctable, *rtable;
|
||||||
Manga *manga;
|
Manga *manga;
|
||||||
|
@ -179,7 +177,7 @@ set_manga_id(EomDetailWindow *self, gint manga_id)
|
||||||
|
|
||||||
ctable = gtk_table_new((int)floor(manga->total_qty / COLUMNS),
|
ctable = gtk_table_new((int)floor(manga->total_qty / COLUMNS),
|
||||||
COLUMNS, TRUE);
|
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:");
|
rlabel = gtk_label_new("Read:");
|
||||||
gtk_misc_set_alignment(GTK_MISC(rlabel), 0.0, 0.5);
|
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),
|
rtable = gtk_table_new((int)floor(manga->total_qty / COLUMNS),
|
||||||
COLUMNS, TRUE);
|
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++) {
|
for (i = 0; i < manga->total_qty; i++) {
|
||||||
GtkWidget *cbtn, *rbtn;
|
GtkWidget *cbtn, *rbtn;
|
||||||
|
|
Loading…
Reference in a new issue