Re: [jokosher-devel] [PATCH] recent project menu items now have tooltips that contain a label showing the user where their recent projects are stored.
- From: Stefan Kost <ensonic hora-obscura de>
- To: John Kelly <kelly_worth2003 yahoo co uk>
- Cc: Jokosher development list <jokosher-devel-list gnome org>
- Subject: Re: [jokosher-devel] [PATCH] recent project menu items now have tooltips that contain a label showing the user where their recent projects are stored.
- Date: Mon, 30 Oct 2006 21:48:36 +0200
Hi,
John Kelly wrote:
> Hello everyone,
>
> The recent project menu items now have tooltips. The tooltips contain a label of where the user's projects are stored.
>
> Regards,
> John
>
> ------------------------------------------------------------------------
>
> Index: JokosherApp.py
> ===================================================================
> --- JokosherApp.py (revision 855)
> +++ JokosherApp.py (working copy)
> @@ -721,6 +721,8 @@
> if self.recentprojectitems:
> for item in self.recentprojectitems:
> mitem = gtk.MenuItem(item[1])
> + tooltips = gtk.Tooltips()
> + tooltips.set_tip(mitem, item[0], None)
> self.recentprojectsmenu.append(mitem)
> mitem.connect("activate", self.OnRecentProjectsItem, item[0], item[1])
>
>
You can share the Tooltips object. Just move
tooltips = gtk.Tooltips()
out of the loop.
Stefan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]