[evolution] Forbid header bars in stock GTK+ dialogs.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Forbid header bars in stock GTK+ dialogs.
- Date: Sun, 23 Mar 2014 01:07:37 +0000 (UTC)
commit 250620dd3dacd62645d820859c05a90389dcf0d0
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Mar 18 09:30:46 2014 -0400
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 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/shell/e-shell.c b/shell/e-shell.c
index b1a8e7e..2c1ae2f 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]