Re: Accessing a MenuItem's Label
- From: John Cupitt <john cupitt ng-london org uk>
- To: Felix Braun <fbraun po-box mcgill ca>
- Cc: gtk-list gnome org
- Subject: Re: Accessing a MenuItem's Label
- Date: Wed, 05 Sep 2001 14:51:44 +0100
Felix Braun wrote:
> I have a MenuItem that I created with gtk_menu_item_new_with_label(text).
> Now I want to get hold of that text again. The way that should be done
> seems to be through gtk_label_get(). However, somehow I can't seem to find
> a pointer to the label.
Hi Felix, this works for me (1.2.10):
printf( "label text = \"%s\"\n",
GTK_LABEL( GTK_BIN( item )->child )->label );
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]