[evince/hildon-2-28] Disable menu and button images
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evince/hildon-2-28] Disable menu and button images
- Date: Mon, 26 Oct 2009 12:13:00 +0000 (UTC)
commit f664c3724af4236811a35f5fb9287001d21b79bd
Author: Christian Persch <chpe gnome org>
Date: Sat Jun 6 22:03:57 2009 +0200
Disable menu and button images
Due to the weird way these GtkSettings properties are installed, it is
necessary to first ref the imagemenuitem and button classes.
shell/ev-application.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-application.c b/shell/ev-application.c
index 73b38ae..951970f 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -1055,9 +1055,22 @@ ev_application_init (EvApplication *ev_application)
g_signal_connect (ev_application->program, "notify::is-topmost",
G_CALLBACK(sync_is_topmost_cb), ev_application);
+ /* This is necessary since the setting is only installed
+ * during class initialisation. See bug #585024.
+ */
+ /* For "gtk-menu-images" setting */
+ g_type_class_unref (g_type_class_ref (GTK_TYPE_IMAGE_MENU_ITEM));
+ /* For "gtk-button-images" setting */
+ g_type_class_unref (g_type_class_ref (GTK_TYPE_BUTTON));
+ /* For "gtk-toolbar-style" setting */
+ g_type_class_unref (g_type_class_ref (GTK_TYPE_TOOLBAR));
+
/* FIXMEchpe sort of strange that maemo doesn't all of this out-of-the-box... */
g_object_set (gtk_settings_get_for_screen (gdk_screen_get_default ()),
"gtk-alternative-button-order", TRUE,
+ "gtk-toolbar-style", GTK_TOOLBAR_ICONS,
+ "gtk-menu-images", FALSE,
+ "gtk-button-images", FALSE,
"gtk-enable-mnemonics", FALSE,
/* We want the default of FALSE for this property, but to work
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]