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

Re: How do you use Gtk--'s set_name() and gtk rc files?



I managed to figure all of this out mysekf, but in case 
anyone else wanted to know:

In message <199810292318.SAA23868@torb.pix.net>, jmo writes:
>I have the following rc file (without the --'s):
>
>----------------------------------------------------------------------
>style "standout" {
>    font = "-adobe-new century schoolbook-bold-i-normal--*-360-*-*-*-*-*-*"  
>}
>
>style "vanilla" {
>    font = "-adobe-new century schoolbook-medium-r-normal--*-240-*-*-*-*-*-*"
>}
>
>widget_class "*bold" style "standout"
>widget_class "bold*" style "standout"
>widget_class "*bold*" style "standout"
>
>widget_class "bold*GtkLabel" style "standout"
>widget_class "*GtkLabel*" style "vanilla"
>----------------------------------------------------------------------
>
>Nothing shows up in new century schoolbook.

But if I wrote "Gtk_Label" rather then "GtkLabel" it would have
worked.

[...]
>Later in my code I call:
>  skip.label()->set_name("bold");
>before packing skip into it's container (which is done before I
>call show_all() on the window the skip label is in).
>
>skip.label() returns a pointer to a GtkLabel.
>
>I was really hoping to see that one label in 36 point italic new
>century schoolbook.

Which can be done with:
  widget "*bold*" style "standout"
(as opposed to widget_class)

[...]



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