From 280405d9b679fd02d32335a0b0bddef979afc0f8 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 3 Mar 2013 22:30:55 -0800 Subject: 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 --- info.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'info.c') 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 */ -- cgit v1.2.3-70-g09d2