]> granicus.if.org Git - transmission/commit
(trunk gtk) Avoid unnecessary GtkComboBox queries.
authorJordan Lee <jordan@transmissionbt.com>
Wed, 13 Apr 2011 22:04:31 +0000 (22:04 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Wed, 13 Apr 2011 22:04:31 +0000 (22:04 +0000)
commit6cd1dcb574243fbad2e2c216a4b2377b500c6c52
treeec4d087d452b62d7ef968788ae44e072c2ae1c2d
parent1d7a4eb528523921b22461ba72d846b432e79e25
(trunk gtk) Avoid unnecessary GtkComboBox queries.

Instead of calling gtk_combo_box_get_active_iter() on the filterbar's two comboboxes in every periodic update, keep the state information in a local struct and update it when the selection changes. That way the filter code doesn't even need to know about the GtkComboBox or the GtkTreeModel.
gtk/filter.c