Re: [jokosher-devel] [PATCH] recent project menu items now have tooltips that contain a label showing the user where their recent projects are stored.



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]