From bfe2ce98e4fcdb280b16ff03739464ad5f700a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 11 Aug 2011 18:57:04 +0200 Subject: [PATCH] Instanciate a dummy button to get gtk-button-images settings working --- tryton/gui/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tryton/gui/main.py b/tryton/gui/main.py index 90face54a1..0fbc0b112a 100644 --- a/tryton/gui/main.py +++ b/tryton/gui/main.py @@ -170,14 +170,15 @@ class Main(object): self.radiomenuitem_normal.set_active(True) settings = gtk.settings_get_default() + # Due to a bug in old version of pyGTk gtk-button-images can + # not be set when there is no buttons + gtk.Button() for setting, value in ( ('gtk-button-images', True), ('gtk-can-change-accels', CONFIG['client.can_change_accelerators']), ('gtk-keynav-cursor-only', True)): try: - # Due to a bug in old version of pyGTk gtk-button-images can - # not be set when there is no buttons settings.set_property(setting, value) except TypeError: pass