Re: Set Label on Button with Resource File
- From: Paul Davis <paul linuxaudiosystems com>
- To: "Marcos Leal" <marcos polyflow com>
- Cc: gtk-list gnome org
- Subject: Re: Set Label on Button with Resource File
- Date: Fri, 16 Apr 2004 06:05:59 -0400
>Hey there,
>
> Is that possible to change the Label of a button using just the resource
>files ?
>
> I tried something like
>
>widget "mywindow.GtkLabel.my_button" style "white-label"
in foo.c:
gtk_widget_set_name (button, "MyFoo");
in the RC file:
widget "*MyFoo" style "my-button"
widget "*MyFoo*" style "my-button"
the first line sets the style of the button, the second of all its
children, such as the label.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]