Nmap Development mailing list archives

Re: [PATCH] Zenmap Radialnet gtk.Tooltip Update


From: David Fifield <david () bamsoftware com>
Date: Mon, 8 Nov 2010 15:02:47 -0700

On Sun, Nov 07, 2010 at 09:07:30AM -0000, Rob Nicholls wrote:
Whenever I launch Zenmap I get two deprecated warnings written to the log
file (this is problematic when Zenmap has been installed in, for example,
"C:\Program Files\Nmap" as a low privileged user doesn't have permission to
write the log file). This is because radialnet uses the old gtk.Tooltips
when it should ideally be using its replacement gtk.Tooltip.

Thanks. This has been bothering me for a while too. The only thing to
worry about is backwards compatibility. gtk.Tooltip was introduced in
PyGTK 2.12. I added a function called try_set_tooltip_text that sets the
tooltip text only if the necessary functions are available.

I've been trying to keep compatibility with PyGTK 2.8, not for any
special reason but only because that was a reasonable choice at the time
I started caring about it. Debian stable has 2.12. Just now looking, I
see a place where we're even checking for gtk.STOCK_ABOUT, which was
introduced in PyGTK 2.6. But we can probably start to relax the oldest
of these restrictions.

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: