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>
This commit is contained in:
Lubomir I. Ivanov 2012-09-29 14:58:24 +03:00 committed by Dirk Hohndel
parent 3e3e632e1f
commit cfb1baa030

1
info.c
View file

@ -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);