diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2014-03-18 21:30:46 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2014-03-23 07:34:46 +0800 |
commit | 250620dd3dacd62645d820859c05a90389dcf0d0 (patch) | |
tree | 5b9c327b2386f4b12d9caf987753e5bad8999555 /shell | |
parent | 85757e39e6912bfc952958ce0d026e05cda6b645 (diff) | |
download | gsoc2013-evolution-250620dd3dacd62645d820859c05a90389dcf0d0.tar gsoc2013-evolution-250620dd3dacd62645d820859c05a90389dcf0d0.tar.gz gsoc2013-evolution-250620dd3dacd62645d820859c05a90389dcf0d0.tar.bz2 gsoc2013-evolution-250620dd3dacd62645d820859c05a90389dcf0d0.tar.lz gsoc2013-evolution-250620dd3dacd62645d820859c05a90389dcf0d0.tar.xz gsoc2013-evolution-250620dd3dacd62645d820859c05a90389dcf0d0.tar.zst gsoc2013-evolution-250620dd3dacd62645d820859c05a90389dcf0d0.zip |
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.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/e-shell.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 |