Definite's Extractor

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

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: