Re: [gtk-list] Change menu text




At Tue, 17 Aug 1999 11:32:16 -0300,
Leonardo Zide <leonardo@centroin.com.br> wrote:
> 
>   Hi,
> 
>   I'm writing an application that constantly changes the text of a menu
> item but I couldn't find any functions to do that in the docs. Is there
> a way to do this directly without having to remove the menu item and
> adding a new one with a different text ?

It's the way:

  gtk_label_set_text (GTK_BIN (menu_item)->child, "new menu item");

> PS: Sorry if this is a very stupid question but I'm new to GTK, I used
> to work under MS Windows only.

What a unfortune work ;-)
--
Mitsuru Oka



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