aboutsummaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2012-09-29 14:58:24 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-29 08:29:48 -0700
commitcfb1baa030c0fd0d20e3d47e03940b7e7f3f7809 (patch)
treeade69ef82003473d5c2280d43d54d8815e44be99 /info.c
parent3e3e632e1f73103703f3886de54e29c6be1d2828 (diff)
downloadsubsurface-cfb1baa030c0fd0d20e3d47e03940b7e7f3f7809.tar.gz
Set a default size to the "Edit Trip Info" window
Debian and Ubuntu's distributed Gtk decide to make the window tiny (completely hiding the Notes section). To prevent that we "put" a default size of 400x300px to the window, which is proportionally OK compared to the main window's default size. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'info.c')
-rw-r--r--info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/info.c b/info.c
index ce7240c39..5b9063373 100644
--- a/info.c
+++ b/info.c
@@ -629,6 +629,7 @@ gboolean edit_trip(dive_trip_t *trip)
GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
NULL);
+ gtk_window_set_default_size(GTK_WINDOW(dialog), 400, 300);
vbox = gtk_dialog_get_content_area(GTK_DIALOG(dialog));
dive_trip_widget(vbox, trip, &info);
gtk_widget_show_all(dialog);