[pan] fix preferences window size (close #99)



commit 3e7fb82244200c8029721a596927f37797e07d14
Author: Dominique Dumont <dod debian org>
Date:   Wed Oct 20 18:31:03 2021 +0200

    fix preferences window size (close #99)
    
    Let Gtk compute itself the right size. This also let user resize the
    preferences widget

 pan/gui/prefs-ui.cc | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/pan/gui/prefs-ui.cc b/pan/gui/prefs-ui.cc
index 82f0b8c..d83cb22 100644
--- a/pan/gui/prefs-ui.cc
+++ b/pan/gui/prefs-ui.cc
@@ -1329,9 +1329,6 @@ PrefsDialog :: PrefsDialog (Prefs& prefs, GtkWindow* parent):
                                    GTK_POLICY_AUTOMATIC);
   gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW(scroll), notebook);
 
-  GdkScreen* screen = gdk_screen_get_default ();
-  gtk_widget_set_size_request (scroll, gdk_screen_get_width(screen) - 400, gdk_screen_get_height(screen) - 
200);
-
   gtk_widget_show_all (scroll);
 
   gtk_box_pack_start (GTK_BOX(gtk_dialog_get_content_area( GTK_DIALOG(dialog))), scroll, true, true, 0);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]