From 0e8988aa98b60a7a380a8f5755bc8cb7b0384bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Fernandes?= Date: Tue, 28 Aug 2018 20:38:18 +0100 Subject: preferences-window: Avoid ulgy 2px aura Glade has been used to change the .ui definition of the Preference dialog in commit f2061e94093a33072e792181433b0618bf68d1b2 It has removed the "border-width" property, resulting in a 2px padding being added around the notebook widget, which wasn not intended and looks bad. This issue will be gone in GTK+4, but we need to explicitly set this style property to 0px in the meantime. Do it in the code instead, where Glade cannot erase it. Closes https://gitlab.gnome.org/GNOME/nautilus/issues/563 --- src/nautilus-preferences-window.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nautilus-preferences-window.c') diff --git a/src/nautilus-preferences-window.c b/src/nautilus-preferences-window.c index cace13313..d75d9dcfa 100644 --- a/src/nautilus-preferences-window.c +++ b/src/nautilus-preferences-window.c @@ -516,6 +516,12 @@ static void nautilus_preferences_window_setup(GtkBuilder *builder, gtk_window_set_transient_for (GTK_WINDOW (preferences_window), parent_window); + /* This statement is necessary because GtkDialog defaults to 2px. Will not + * be necessary in GTK+4. + */ + gtk_container_set_border_width (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (preferences_window))), + 0); + gtk_widget_show (preferences_window); } -- cgit v1.2.1