[gimp] Use gtk.Tooltip() instead of gtk.Tooltips()



commit a78bffbfb9d40d304c57b896863465282228424f
Author: Jerry Baker <jbaker gimpthoughts com>
Date:   Mon Apr 12 14:40:47 2010 -0400

    Use gtk.Tooltip() instead of gtk.Tooltips()

 plug-ins/pygimp/gimpfu.py |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/pygimp/gimpfu.py b/plug-ins/pygimp/gimpfu.py
index f7fae77..5cf1149 100644
--- a/plug-ins/pygimp/gimpfu.py
+++ b/plug-ins/pygimp/gimpfu.py
@@ -651,7 +651,7 @@ def _interact(proc_name, start_params):
     if on_run:
         on_run()
 
-    tooltips = gtk.Tooltips()
+    tooltips = gtk.Tooltip()
 
     dialog = gimpui.Dialog(proc_name, "python-fu", None, 0, None, proc_name,
                            (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
@@ -731,10 +731,10 @@ def _interact(proc_name, start_params):
         table.attach(wid, 2,3, i,i+1, yoptions=0)
 
         if pf_type != PF_TEXT:
-            tooltips.set_tip(wid, desc, None)
+            wid.set_tooltip_text(desc)
         else:
             # Attach tip to TextView, not to ScrolledWindow
-            tooltips.set_tip(wid.view, desc, None)
+            wid.view.set_tooltip_text(desc)
         wid.show()
 
         wid.desc = desc
@@ -759,7 +759,6 @@ def _interact(proc_name, start_params):
 #    progress_vbox.pack_start(progress_label)
 #    progress_label.show()
 
-    tooltips.enable()
     dialog.show()
 
     gtk.main()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]