dynamically changing the text of a GtkMenuItem



i have a menu which as 2 item that potentially need updating every
time it is displayed (its a submenu of a menubar). at the moment, i
connect to the map_event, remove (and delete) all the items, recreate
new items, and return FALSE. this works, but after a couple of rounds
of this, i start to messages about ref counts not being > 0, and
various other issues that make it clear that something has gone wrong.

what would be the preferred way of handling this?

--p



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