The active text of the widget was not set when new item was selected from
the combo box. svn: r10721
This commit is contained in:
parent
09eadc3076
commit
66fcb45429
@ -136,6 +136,7 @@ class MultiTypeComboEntry(gtk.ComboBox, gtk.CellLayout):
|
|||||||
Its purpose is to handle escape button.
|
Its purpose is to handle escape button.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
# FIXME Escape never reaches here, the dialog eats it, I assume.
|
||||||
if event.keyval == gtk.keysyms.Escape:
|
if event.keyval == gtk.keysyms.Escape:
|
||||||
entry.set_text(self._active_text)
|
entry.set_text(self._active_text)
|
||||||
|
|
||||||
@ -150,8 +151,8 @@ class MultiTypeComboEntry(gtk.ComboBox, gtk.CellLayout):
|
|||||||
iter = self.get_active_iter()
|
iter = self.get_active_iter()
|
||||||
if iter:
|
if iter:
|
||||||
model = self.get_model()
|
model = self.get_model()
|
||||||
new_text = model.get_value(iter, self._text_column)
|
self._active_text = model.get_value(iter, self._text_column)
|
||||||
self._entry.set_text(new_text)
|
self._entry.set_text(self._active_text)
|
||||||
|
|
||||||
def _on_notify(self, object, gparamspec):
|
def _on_notify(self, object, gparamspec):
|
||||||
"""Signal handler.
|
"""Signal handler.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user