RE: MenutItem get and set label?



I do it in a stupid way:
        Since menu_item is a container. You can go throught all children
of this container, find if the child widget is a label or not, if it is
label, change the label. Otherwise they don't have label. 

        Why no gtk_menu_item_set_label because the menu item may not be
a label, maybe it just a picture or someother widget.


        

-----Original Message-----
From: gtk-app-devel-list-admin gnome org
[mailto:gtk-app-devel-list-admin gnome org] On Behalf Of Philippe
Laporte
Sent: Thursday, October 16, 2003 4:53 AM
To: gtk-app-devel-list gnome org
Subject: MenutItem get and set label?

Hi,
     Why is there no get and set label access for menu items?

i.e., why no

gtk_menu_item_set_label
gtk_menu_item_get_label

?

Do I really have to destroy the old menu item and put in a new one just 
for this?

Thanks,

-- 

Philippe Laporte
Senior Design Engineer
Nokia Mobile Phones, Open Source Software Operations
Street address: Itämerenkatu 11-13, 00180 Helsinki, Finland
Post address:   P.O. Box 407, FIN-00045 NOKIA GROUP
Phone:          +358 50 482 1979
Fax:            +358 7180 36229
E-mail:         philippe laporte nokia com


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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