* src/Plugins.py (PluginDialog.__init__): catch the attribute

error that is thown if gtk does not support gtk_tooltips_data.get


svn: r2490
This commit is contained in:
Don Allingham 2003-12-10 03:31:38 +00:00
parent 3e9026bba7
commit e636c8c0b0

View File

@ -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)