Re: icons in right-click menuitem
- From: Pierre Wieser <pwieser trychlos org>
- To: nautilus-list gnome org
- Subject: Re: icons in right-click menuitem
- Date: Fri, 26 Jun 2009 15:26:32 +0200 (CEST)
> Date: Wed, 24 Jun 2009 00:25:08 -0500
> From: Sunil Negi <vick ram79 yahoo com>
> Subject: icons in right-click menuitem
>
> Hi all,
> To display my menuitem, I am calling the API:
> menuItem = nautilus_menu_item_new("xxx", "xxx" "Manage xxx
> operations.", "iconname");
>
> I know the iconname should be the icon that appears besides the
> menuitem
> on right clicking in nautilus. I can see my menu item but there is no
>
> icon beside it. I have the nautilus code but I am not able to locate
> the right way to select an icon to display.
>
> Some examples on the net show the whole path to a png file (which
> would
> be a 16 x 16 png file). Some thing like:-
> /usr/share/icons/Human/16x16/actions/gohome.png
>
> Others just use a stock string.
>
> Either way is not working for me... Any pointers?
>
> Also, if I just pass the name of the icon, say "myicon", how does
> nautilus locate the correct image to display? Where does it search?
>
> I am afraid the icon display mantra is a bit vague to me...
>
> Thanks,
> Sunil
>
Hi,
To start with displaying icons in Gnome, you should take a look at Free
Desktop Specifications [1].
Also I have made some comments about a look-like bug in nautilus-
actions (see [2]).
As a summary, it appears to me that an application should not let
a user choose an icon by path, as IMO this looke like a non-sense
in regards to the fds.
Instead, an application should have an theme-based icon chooser.
And I'll write one for nautilus-actions (to be coming soon ;-))
Regards
Pierre
[1] http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
[2] http://bugzilla.gnome.org/show_bug.cgi?id=525845
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]