Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » FileSel is now using icons from windows....
Re: FileSel is now using icons from windows.... [message #11129 is a reply to message #11127] |
Tue, 21 August 2007 13:19   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
mrjt wrote on Tue, 21 August 2007 04:34 | Sorry, I thought you knew because it's used in Chameleon:
enum GtkIconSize {
ICON_SIZE_INVALID,
ICON_SIZE_MENU,
ICON_SIZE_SMALL_TOOLBAR,
ICON_SIZE_LARGE_TOOLBAR,
ICON_SIZE_DND,
ICON_SIZE_DIALOG
};
Image file_icon = GtkImage("gtk-file", ICON_SIZE_SMALL_TOOLBAR, 22);
You may have to fiddle with the sizes, and AFAIK GtkImage isn't currently exposed in Draw/Ch.h.
And to get the GTK theme to match QT/KDE you want this
James
|
Ah, sorry, I perhaps was not clear enough.
What works in Windows is that files are displayed with icons dedicated to their types. Means, .txt files have different icon than .xls and from .exe the icon is extracted.
This is what I would like to know how to implement in Ggnome...
Mirek
|
|
|
Goto Forum:
Current Time: Thu Aug 28 08:54:20 CEST 2025
Total time taken to generate the page: 0.06574 seconds
|