Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
mirek is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TabCtrl now supports Insert and Remove of tabs
Next Topic: Multidisplay support (in Windows).
Goto Forum:
  


Current Time: Thu Aug 28 16:10:06 CEST 2025

Total time taken to generate the page: 0.11542 seconds