[Gtk-sharp-list] Embed Gtk+ theme into app
wolfgang at silbermayr.at
Wed Oct 2 07:05:30 UTC 2013
On 2013-10-01 19:05, Weston Weems wrote:
> I'd like to embed a gtk+ theme, so I can effectively skin my app and
> look the same way regardless of what default gtk+ theme is setup.
> Is this something I can do? I've read people make comments of using
> resource files etc... but I have yet to hear specific details on this...
> or better yet an example.
> Anyone have any pointers?
You can deploy your own gtkrc file and load the data from there:
string filename = "/the/path/to/my.gtkrc";
or my preferred method: you include the gtkrc file as a resource inside
using (Stream stream =
using (TextReader reader = new StreamReader(stream))
Hope this helps.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 551 bytes
Desc: OpenPGP digital signature
More information about the Gtk-sharp-list