Re: [gtk-list] Button label question
- From: Havoc Pennington <hp redhat com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Button label question
- Date: 15 Jan 2000 20:41:55 -0500
Stephen Wilhelm <swilhelm@theriver.com> writes:
> I've got an easy question for everyone. If I create a button using
> gtk_button_new_with_label(), how can I later on change the button label?
>
> I know I should probably define the label seperate and just add it to a
> button create using gtk_button_new(), but is it possible to change the
> label of a button created using gtk_button_new_with_label()?
>
Creating the label separately is the best solution IMO. What if you
later add a pixmap to the button?
You can use GTK_BIN(button)->child though, that should be the label
inside the button.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]