From 250620dd3dacd62645d820859c05a90389dcf0d0 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 18 Mar 2014 09:30:46 -0400 Subject: Forbid header bars in stock GTK+ dialogs. Even in GNOME Shell, header bars look very out of place in Evolution. Override the system-wide setting to suppress them. --- shell/e-shell.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'shell') diff --git a/shell/e-shell.c b/shell/e-shell.c index b1a8e7e125..2c1ae2f83f 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -801,6 +801,14 @@ shell_window_added (GtkApplication *application, (gintptr) window); gtk_window_set_role (window, role); g_free (role); + +#if GTK_CHECK_VERSION(3,11,5) + /* Forbid header bars in stock GTK+ dialogs. + * They look very out of place in Evolution. */ + g_object_set ( + gtk_widget_get_settings (GTK_WIDGET (window)), + "gtk-dialogs-use-header", FALSE, NULL); +#endif } static gboolean -- cgit v1.2.3