[billreminder] Fixed depecration warning message about gtk.ToolTips.



commit d61c402f3990c1dc12fd44fb024d6c1d5a1c1a19
Author: Og B. Maciel <ogmaciel gnome org>
Date:   Wed Nov 4 16:15:46 2009 -0500

    Fixed depecration warning message about gtk.ToolTips.

 src/gui/widgets/toolbar.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/widgets/toolbar.py b/src/gui/widgets/toolbar.py
index 7d6824b..ae51b8e 100644
--- a/src/gui/widgets/toolbar.py
+++ b/src/gui/widgets/toolbar.py
@@ -17,7 +17,7 @@ class Toolbar(gtk.Toolbar):
     def add_button(self, image, title, tip_text=None, callback=None):
         toolitem = gtk.ToolButton(image)
         toolitem.set_label(title)
-        toolitem.set_tooltip(gtk.Tooltips(), tip_text, tip_text)
+        toolitem.set_tooltip_text(tip_text)
         if callback:
             toolitem.connect('clicked', callback)
         self.insert(toolitem,-1)
@@ -26,7 +26,7 @@ class Toolbar(gtk.Toolbar):
 
     def add_stock(self, stock_id, tip_text=None, callback=None):
         toolitem = gtk.ToolButton(stock_id)
-        toolitem.set_tooltip(gtk.Tooltips(), tip_text, tip_text)
+        toolitem.set_tooltip_text(tip_text)
         if callback:
             toolitem.connect('clicked', callback)
         self.insert(toolitem,-1)
@@ -34,7 +34,7 @@ class Toolbar(gtk.Toolbar):
     def add_toggle(self, stock_id, title, tip_text, callback):
         toolitem = gtk.ToggleToolButton(stock_id)
         toolitem.connect('toggled', callback)
-        toolitem.set_tooltip(gtk.Tooltips(), tip_text, tip_text)
+        toolitem.set_tooltip_text(tip_text)
         self.insert(toolitem,-1)
 
     def add_widget(self, widget, tip_text, private_text):
@@ -42,5 +42,5 @@ class Toolbar(gtk.Toolbar):
         toolitem.add(widget)
         toolitem.set_expand(False)
         toolitem.set_homogeneous(False)
-        toolitem.set_tooltip(gtk.Tooltips(), tip_text, tip_text)
+        toolitem.set_tooltip_text(tip_text)
         self.insert(toolitem,-1)



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