How to get to the current theme ?
- From: Peter Zhelezniakov <peterz rin ru>
- To: gtk-app-devel-list gnome org
- Subject: How to get to the current theme ?
- Date: Thu, 14 Apr 2005 18:48:56 +0400
Hello,
I have a program that paints widgets to an offscreen pixmap. All my
widgets are realized and parented off a toplevel GtkWindow which is not
shown on screen. It works, but widgets do not update style when the
theme changes and continue paint using old style. I presume this happens
because i never call gtk_main().
So can i update widgets' style somehow without calling gtk_main()? Can i
query the theme currently set and update my widgets to use it? I imagine
something like:
if ("gnome_get_current_theme" () != old_theme) { //theme has changed
"update_theme_for_all_widgets" (window);
Thanks!
--
Peter peterz at rin dot ru
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]