Definite's Extractor

My findings on Life, Linux, Open Source, and so on.

Tag Archives: gtk2

Traps in Gtk2.

During the development of MakerDialog, I’ve encountered two …, er, features of Gtk2 widgets.

First one is GtkComboboxEntry. When you select a list item in the pull-down menu, it emits signal “changed”; but when you start editing the text in entry, it still emit signal “changed”. This usually cause confusion for novice Gtk2 developers, because they might be only aware of “changed” event and wonder why the combo box seems to react with every single key stroke.

Second one is radio button group. It has a function to retrieve all the list item as a single linking list. In the beginning, I think the order should be the same as the order you add those items. However, it seems to work in reverse order.

Hope these tips helps.

Advertisements