0

Good day

I'm new to Gtk+ and I want to use GtkComboBox to create a custome combobox where I can insert a gtk widget (which has a table, and a couple of buttons) inside the combobox. is that possible or not using gtk+ under C. I'm using Gtk 2.10.4

if that is not possible, can you please suggest another way to implement that

Thanks!

1 Answer 1

1

It isn't possible to put GtkWidgets into GtkComboBox. The combo box allows you to use GtkCellRenderers into the popup, but they are not GtkWidgets although you may find a GtkCellRenderer which suits your needs.

Alternatively, you could write your own custom GtkCellRenderer which does the same as the widget, or if you can't do that, you'll have to roll your own GtkComboBox-alike widget that does popup a window containing GtkWidgets

Sign up to request clarification or add additional context in comments.

1 Comment

I did the later, I wrote my own GtkComboBox alike widget :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.