From 5f422835967f2dee0ec58eaf4e077730cba0d865 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 10 Dec 2003 03:31:38 +0000 Subject: [PATCH] * src/Plugins.py (PluginDialog.__init__): catch the attribute error that is thown if gtk does not support gtk_tooltips_data.get svn: r2490 --- gramps2/src/Plugins.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gramps2/src/Plugins.py b/gramps2/src/Plugins.py index e7a052452..92eed37dd 100644 --- a/gramps2/src/Plugins.py +++ b/gramps2/src/Plugins.py @@ -166,9 +166,12 @@ class PluginDialog: self.apply_button.set_label(_("_Apply")) self.apply_button.set_use_underline(gtk.TRUE) if tool_tip: - tt = gtk.gtk_tooltips_data_get(self.apply_button) - if tt: - tt[0].set_tip(self.apply_button,tool_tip) + try: + tt = gtk.gtk_tooltips_data_get(self.apply_button) + if tt: + tt[0].set_tip(self.apply_button,tool_tip) + except AttributeError: + pass self.run_tool = None self.build_tree(list)