From cfb1baa030c0fd0d20e3d47e03940b7e7f3f7809 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 29 Sep 2012 14:58:24 +0300 Subject: 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 Signed-off-by: Dirk Hohndel --- info.c | 1 + 1 file changed, 1 insertion(+) (limited to 'info.c') 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); -- cgit v1.2.3-70-g09d2