RC files - I have problems !

Hello all,

I was attempting change the font of a GtkLabel inside a GtkViewport
using rc files but I can't change it, when the rc works it change all
widgets in window and not only that I want to change.

What I do ?

This is a fragment of my files : 

rc file :

style "fontpadrao"
	font = "-adobe-helvetica-bold-r-normal-*-*-140-*-*-p-*-iso8859-1"

widget "*GtkWindow" style "fontpadrao"
widget "*GtkWindow*" style "fontpadrao"

style "fontviewport"
	font = "-adobe-helvetica-bold-r-normal-*-*-180-*-*-p-*-iso8859-1"

widget "*GtkLabel" style "fontviewport"
widget "viewportchangefont.*GtkLabel*" style "fontviewport"

and my program is this :


  gnome_init ("ihm_princ", VERSION, argc, argv);

 window_base = create_window_base ();
  gtk_widget_show (window_base);

  window_ihm = create_window_ihm ();

  window_senha = create_window_senha ();
  gtk_widget_show (window_senha);

  widgt = lookup_widget (window_ihm, "viewport_producao");

  gtk_widget_set_name (widgt, "viewportchangefont");

  gtk_widget_show (window_ihm);

  gtk_main ();

note that I use the function lookup_widget supplied by Glade to
manipulate a child widget in a parent widget, in this case
viewport_producao is a viewport widget that I give a name and want to
change the font by the rc file.

Any help I thanks very much,

Flavio Alberto

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]