Don't set_active(0) on realize, as it would trigger 'changed'.

This commit is contained in:
Tomeu 2007-05-16 15:02:41 +02:00
parent 5d9e19a892
commit 79fdfc5fb7

View File

@ -40,7 +40,6 @@ class ComboBox(gtk.ComboBox):
self.set_model(self._model)
self.set_row_separator_func(self._is_separator)
self.connect('realize', self._realize_cb)
def do_get_property(self, pspec):
if pspec.name == 'value':
@ -49,10 +48,6 @@ class ComboBox(gtk.ComboBox):
else:
return gtk.ComboBox.do_get_property(self, pspec)
def _realize_cb(self, widget, data=None):
if self.get_active() == -1:
self.set_active(0)
def append_item(self, action_id, text, icon_name=None):
if not self._icon_renderer and icon_name:
self._icon_renderer = gtk.CellRendererPixbuf()