* 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:
parent
1aff41add9
commit
5f42283596
@ -166,9 +166,12 @@ class PluginDialog:
|
|||||||
self.apply_button.set_label(_("_Apply"))
|
self.apply_button.set_label(_("_Apply"))
|
||||||
self.apply_button.set_use_underline(gtk.TRUE)
|
self.apply_button.set_use_underline(gtk.TRUE)
|
||||||
if tool_tip:
|
if tool_tip:
|
||||||
|
try:
|
||||||
tt = gtk.gtk_tooltips_data_get(self.apply_button)
|
tt = gtk.gtk_tooltips_data_get(self.apply_button)
|
||||||
if tt:
|
if tt:
|
||||||
tt[0].set_tip(self.apply_button,tool_tip)
|
tt[0].set_tip(self.apply_button,tool_tip)
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
|
||||||
self.run_tool = None
|
self.run_tool = None
|
||||||
self.build_tree(list)
|
self.build_tree(list)
|
||||||
|
Loading…
Reference in New Issue
Block a user