~ubuntu-branches/ubuntu/karmic/kiwi/karmic

« back to all changes in this revision

Viewing changes to kiwi/ui/comboentry.py

  • Committer: Bazaar Package Importer
  • Author(s): Goedson Teixeira Paixao, Sandro Tosi, Goedson Teixeira Paixao
  • Date: 2008-04-07 10:17:44 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080407101744-g1ssdule7tqviw57
Tags: 1.9.21-1
[ Sandro Tosi ]
* debian/control
  - uniforming Vcs-Browser field

[ Goedson Teixeira Paixao ]
* New upstream release
* debian/control: depend on python-pkg-resources instead of
  python-setuptools (Closes: #468717).

Show diffs side-by-side

added added

removed removed

Lines of Context:
375
375
                           self._on_entry__scroll_event)
376
376
        self.entry.connect('key-press-event',
377
377
                           self._on_entry__key_press_event)
 
378
        self.entry.connect('focus-out-event',
 
379
                           self._on_entry__focus_out_event)
 
380
 
378
381
        self.pack_start(self.entry, True, True)
379
382
        self.entry.show()
380
383
 
406
409
        self.entry.grab_focus()
407
410
 
408
411
    # Callbacks
 
412
    def _on_entry__focus_out_event(self, widget, event):
 
413
        # The popup window should be hidden if the entry loses the focus,
 
414
        # unless we have a combo entry and the user clicked the toggle button
 
415
        # to show the popup window
 
416
        if not self._button.get_active():
 
417
            self.popdown()
409
418
 
410
419
    def _on_entry_completion__match_selected(self, completion, model, iter):
411
420
        # the iter we receive is specific to the tree model filter used