emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: svn icons in the toolbar


From: Jan Djärv
Subject: Re: svn icons in the toolbar
Date: Mon, 24 Sep 2007 18:04:21 +0200
User-agent: Thunderbird 1.5.0.13 (X11/20070824)

Stephen Berman skrev:
> On Thu, 20 Sep 2007 08:24:46 +0200 Jan Djärv <address@hidden> wrote:
> 
>> Stephen Berman skrev:
>>
>>> I forgot that I am using the gtk-qt engine, which "allows GTK
>>> applications to use Qt widget styles", including tool bar icons.  The
>>> icons I see are actually KDE icons from
>>> /opt/kde3/share/icons/crystalsvg/32x32/actions.  I assume gtk-qt maps
>>> the Gnome stock icons to corresponding KDE icons of the selected
>>> theme.  I couldn't find an icon in the crystal theme corresponding to
>>> system-file-manager, but it may just be that gtk-qt does not handle
>>> named Gnome icons.
>>>
>> Try the attached program.  Compile like this:
>>
>> % gcc -o icon-view icon-view.c `pkg-config  gtk+-2.0 --cflags --libs`
>>
>> If run without arguments, it lists the named icons Gtk+ knows about.
>> The list may be long, I have 2309 names.
>>
>> If you give it names as arguments, it displays a tool bar with those icons.
>>
>> If it just list stock-* names, then the gtk-qt engine only deals
>> with stock icons.
> 
> Thanks.  The program prints a list of 1279 names.  The list contains
> only two items matching stock*: stock_keyring and stock_printers, and
> only one item matching gtk*: gtkvim.  The list does not contain
> system-file-manager.  I do not see how your program interacts with
> gtk-qt.

It does not, it just uses Gtk+ functions. gtk-qt does its job behind the scenes.

> I looked at the gtk-qt sources and found a function
> doIconMapping() which IIUC maps a GTK+ stock icon to a corresponding
> KDE icon, the specific icons are hardcoded in the function
> setRcProperties().  I could not find any function that looked like it
> handles names icons, but I could well have overlooked it.
> 

There are relativly few stock icons, so mapping those to Qt-icons is not that
hard.  But over 2000 named icons is probably too much for Qt to attempt.

        Jan D.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]