Re: Accessing a MenuItem's Label



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]