aboutsummaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-03-03 22:30:55 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-03-03 22:30:55 -0800
commit280405d9b679fd02d32335a0b0bddef979afc0f8 (patch)
tree95ff1724710f9cac3d277f4fd4fc3412b53aba26 /info.c
parentd8811e2e4026297fb6f48d831deb3728b562bfb0 (diff)
downloadsubsurface-280405d9b679fd02d32335a0b0bddef979afc0f8.tar.gz
Fix scaling problem in scrolled edit dialog
With this change resizing the dive edit dialog once again has its content resize as well. So now we have the best of both worlds: if the content grows we add scroll bars (so things stay usable on small screens), yet when we resize the window, the notes area gets nice and big (which is great on big screens). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'info.c')
-rw-r--r--info.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/info.c b/info.c
index 43025bbfe..0517eaccb 100644
--- a/info.c
+++ b/info.c
@@ -810,9 +810,9 @@ static void dive_info_widget(GtkWidget *obox, struct dive *dive, struct dive_inf
}
/* two column layout (inner hbox ibox) within the outer vbox (obox) we are given */
ibox = gtk_hbox_new(FALSE, 0);
- gtk_box_pack_start(GTK_BOX(obox), ibox, FALSE, FALSE, 0);
+ gtk_box_pack_start(GTK_BOX(obox), ibox, TRUE, TRUE, 0);
box = gtk_vbox_new(FALSE, 0);
- gtk_box_pack_start(GTK_BOX(ibox), box, FALSE, FALSE, 0);
+ gtk_box_pack_start(GTK_BOX(ibox), box, TRUE, TRUE, 0);
info->location = text_entry(box, _("Location"), location_list, dive->location);
g_signal_connect(G_OBJECT(info->location), "changed", G_CALLBACK(location_entry_change_cb), NULL);
@@ -873,13 +873,13 @@ static void dive_info_widget(GtkWidget *obox, struct dive *dive, struct dive_inf
gtk_text_buffer_set_text(gtk_text_view_get_buffer(info->notes), dive->notes, -1);
}
hbox = gtk_hbox_new(FALSE, 3);
- gtk_box_pack_start(GTK_BOX(ibox), hbox, FALSE, TRUE, 0);
+ gtk_box_pack_start(GTK_BOX(ibox), hbox, TRUE, TRUE, 0);
/* create a secondary Equipment widget */
frame = gtk_frame_new(_("Equipment"));
equipment = equipment_widget(W_IDX_SECONDARY);
gtk_container_add(GTK_CONTAINER(frame), equipment);
- gtk_box_pack_start(GTK_BOX(hbox), frame, FALSE, TRUE, 0);
+ gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0);
}
/* we use these to find out if we edited the cylinder or weightsystem entries */