Re: Change backgrnd()
- From: Andreas Volz <lists brachttal net>
- To: gtk-app-devel-list gnome org
- Subject: Re: Change backgrnd()
- Date: Thu, 22 Jul 2004 09:56:30 +0200
Am Thu, 22 Jul 2004 05:44:00 +0100 schrieb Bibin Bhanu:
Hi,
I am using gtk1.2, and i would like to change the color of the window
background and the font in the label.
Could anybody suggest me a simple program.
Hi,
create your own theme that has another window background and load it at
runtime:
...
gtk_init(&argc, &argv);
/* get system theme dir
* later add ~/.themes */
theme_path = gtk_rc_get_theme_dir();
g_print ("%s\n", theme_path);
g_free (theme_path);
/* change gtk theme */
gtk_rc_parse ("gtkrc/gtkrc");/*or any other system available theme*/
/* create a new window */
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
...
For fonts I don't know exactly, but I think it should be possible
without theming.
regards
Andreas
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]