Hi all...
I am trying to use themes with gtk-2.0. I have been able to change
colors, but gtk programs ignore my font settings.
This is my /etc/gtk-2.0/gtkrc:
style "default" {
font="-*-lucida-bold-r-normal-*-*-190-*-iso8859-1"
bg[NORMAL] = { 0.0,0.5,0.0 }
fg[NORMAL] = { 1.0,1.0,1.0 }
bg[PRELIGHT] = { 0.0,0.5,0.0 }
fg[PRELIGHT] = { 1.0,1.0,1.0 }
bg[ACTIVE] = { 0.0,0.0,0.0 }
fg[ACTIVE] = { 1.0,1.0,1.0 }
}
class "GtkWidget" style "default"
And my test program (gtst.cc):
#include <gtk/gtk.h>
#include <iostream.h>
int main(int argc, char** argv)
{
gchar** rc = gtk_rc_get_default_files();
for (int i=0; rc[i]; i++)
cout << "rc: " << rc[i] << endl;
gtk_init(&argc,&argv);
GtkWidget* top = gtk_window_new(GTK_WINDOW_TOPLEVEL);
GtkWidget* but = gtk_button_new_with_label("Push me !!");
gtk_container_add(GTK_CONTAINER(top),but);
gtk_widget_show_all(top);
gtk_main();
return 0;
}
Files parsed are:
rc: /etc/gtk-2.0/gtkrc
rc: /home/magallon/.gtkrc-2.0
And as expected, the button is white text in green background (its
a test....:-))
But the font settings are IGNORED. Font spec is correct (have tried
with xterm and gtk-1.2).
What happens ?
--
J.A. Magallon # Let the source be with you...
mailto:[EMAIL PROTECTED]
Mandrake Linux release 8.3 (Cooker) for i586
Linux werewolf 2.4.19-pre4-jam2 #1 SMP Mon Mar 25 01:34:14 CET 2002 i686