On čt 19. března 2009, Colin Clark wrote:
> Hi
>
> I find it very useful to be able to put extra icons on the toolbar by
> putting entries to .desktop files in the toolbar section of geeqierc.xml.
>
> But I tend to forget what my icons mean, so tooltips would also be useful.
>
> I see in the Freedesktop.org standards that the Comment key of a desktop
> file can be used for tooltips [but it also says that "The value should
> not be redundant with the values of |Name| and |GenericName|.". Does
> this mean that the Name key should be used for a tooltip unless there is
> an entry in the Comment key?]

I'd say let's try what works best.

>
>
> I have no idea about this kind of programming, but I have got something
> to work by:
>
> putting an extra field for tooltips in the _EditorDescription structure
> in editors.h
>     gchar *tooltip;
>
> putting an extra line in editors.c, at about line 266, to read in the
> tooltip
>     editor->tooltip = g_key_file_get_string(key_file, DESKTOP_GROUP,
> "Comment", NULL);
>
> changing line 1681 of layout_util.c to load the tooltip.
>         GtkActionEntry entry = { editor->key, NULL, editor->name,
> editor->hotkey, editor->tooltip, G_CALLBACK(layout_menu_edit_cb) };
>
>
>
> Am I going in the right direction, or have I completely missed an
> important aspect?
>
Yes, this would be a correct implementation. It would be great if you could 
send a patch.

Thanks,

Vladimir

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel

Reply via email to