[ wxwindows-Patches-1884553 ] Patch to Set GTK Theme runtime

SourceForge.net noreply at sourceforge.net
Fri Feb 1 07:44:29 PST 2008


Patches item #1884553, was opened at 2008-02-01 16:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1884553&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: GTK specific
Group: new feature
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stefan H. (stefanh85)
Assigned to: Nobody/Anonymous (nobody)
Summary: Patch to Set GTK Theme runtime

Initial Comment:
Hi all,

i wrote a patch to wxGTK.
This patch adds a funktion named "SetTheme" to toplevel.cpp (toplevel.h), which allows runtime switching of GTK-Themes! 

To use this funktion, you simply have to call [SetTheme("lalala")] with either a themename (will be searched in the standart theme directory) or an absolute path to a "gtkrc"-File (theme file)!
If the Theme can`t be found, a "wxLogWarning" MessageBox pops up.

There is one thing you have to consider:
Calling SetTheme() with Macros like wxT(), _T() etc. won`t work yet because of bad string converting.

Maybe some Developers can take a look at this patch and add it to wxWidgets.

Regards
Stefan H.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1884553&group_id=9863




More information about the wx-dev mailing list