File: tooltip.diff

package info (click to toggle)
dissy 9-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 340 kB
  • ctags: 320
  • sloc: python: 1,886; xml: 21; makefile: 5; sh: 5
file content (19 lines) | stat: -rw-r--r-- 980 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Varun Hiremath <vh63@cornell.edu>
Date: Fri, 16 Jul 2010 23:03:51 -0400
Description: Fix gtk.Tooltip DeprecationWarnings
Index: dissy-9/scripts/dissy
===================================================================
--- dissy-9.orig/scripts/dissy	2009-03-11 14:14:06.000000000 -0400
+++ dissy-9/scripts/dissy	2010-07-16 23:27:50.000000000 -0400
@@ -155,9 +155,8 @@
 
         patternMatchBin.connect("activate", self.patternMatchBinCallback, patternMatchBin)
 
-        tooltips = gtk.Tooltips()
-        tooltips.set_tip(pasteBin.child, "Lookup an address or symbol (shortcut Ctrl-l)")
-        tooltips.set_tip(patternMatchBin, "Enter a pattern to highlight (shortcut Ctrl-k)")
+        pasteBin.child.set_tooltip_text("Lookup an address or symbol (shortcut Ctrl-l)")
+        patternMatchBin.set_tooltip_text("Enter a pattern to highlight (shortcut Ctrl-k)")
 
         hbox.pack_start(gtk.Label("Lookup"), expand=False, padding=2)
         hbox.pack_start(pasteBin)