LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   using GtkComboBox with widgets in c (https://www.linuxquestions.org/questions/programming-9/using-gtkcombobox-with-widgets-in-c-711053/)

joel2001k 03-12-2009 08:59 AM

using GtkComboBox with widgets in c
 
I'm writing an application and I'm still using deprecated GtkOptionMenu, but today I really want to migrate. I tried to find out how to pack widget's in a GtkComboBox but I didn't find an answer. So help me please! One more question I'm asking me about GtkComboBox, is how to set hidden user data to text, which I would append. Are there created GtkLabel's where I can call g_object_set_data to do so?

ciotog 03-15-2009 12:08 PM

I don't believe GtkComboBoxes are allowed to contain widgets, just strings. I imagine you'll have to define your own type of combo box. Try this reference for ideas:
http://www.kksou.com/php-gtk2/articl...d-combobox.php


All times are GMT -5. The time now is 11:23 PM.