Ticket #4040: 0001-Journal-details-view-Update-entry-when-description-o.patch

File 0001-Journal-details-view-Update-entry-when-description-o.patch, 1.7 KB (added by manuq, 11 years ago)

Candidate patch

  • src/jarabe/journal/expandedentry.py

    From 6ee95e681b3ac192bb95dcdadb7536a9d718adb7 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Wed, 24 Oct 2012 11:09:12 -0300
    Subject: [PATCH shell 1/3] Journal details view: Update entry when
     description or tags change - SL #4040
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    The focus-out-event callback was commented out in the hippocanvas
    removal, commit d9fbf9db .
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     src/jarabe/journal/expandedentry.py | 9 +++------
     1 file changed, 3 insertions(+), 6 deletions(-)
    
    diff --git a/src/jarabe/journal/expandedentry.py b/src/jarabe/journal/expandedentry.py
    index 21c0672..0d76139 100644
    a b class ExpandedEntry(Gtk.EventBox): 
    340340        scrolled_window.add(text_view)
    341341        vbox.pack_start(scrolled_window, True, True, 0)
    342342
    343         # text_view.text_view_widget.connect('focus-out-event',
    344         #                  self._description_focus_out_event_cb)
     343        text_view.connect('focus-out-event',
     344                          self._description_tags_focus_out_event_cb)
    345345
    346346        return vbox, text_view
    347347
    class ExpandedEntry(Gtk.EventBox): 
    359359    def _title_focus_out_event_cb(self, entry, event):
    360360        self._update_entry()
    361361
    362     def _description_focus_out_event_cb(self, text_view, event):
    363         self._update_entry()
    364 
    365     def _tags_focus_out_event_cb(self, text_view, event):
     362    def _description_tags_focus_out_event_cb(self, text_view, event):
    366363        self._update_entry()
    367364
    368365    def _update_entry(self, needs_update=False):