diff options
author | António Fernandes <antoniof@gnome.org> | 2018-08-28 20:38:18 +0100 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2018-08-28 20:38:18 +0100 |
commit | 0e8988aa98b60a7a380a8f5755bc8cb7b0384bae (patch) | |
tree | 38b4477e3c846da6643911e370d9d444f7cb55ab /src/nautilus-preferences-window.c | |
parent | 60ee6a24f31fa89d882244d779d45550ff5f7767 (diff) | |
download | nautilus-0e8988aa98b60a7a380a8f5755bc8cb7b0384bae.tar.gz |
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
Diffstat (limited to 'src/nautilus-preferences-window.c')
-rw-r--r-- | src/nautilus-preferences-window.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |