Ticket #1235: 0002-fix-Journal-list-view-jumping-back-to-first-page-on-.patch

File 0002-fix-Journal-list-view-jumping-back-to-first-page-on-.patch, 1.3 KB (added by sascha_silbe, 12 years ago)

fix Journal list view jumping back to first page on showing a Palette

  • src/jarabe/journal/listview.py

    From 2aacff4d1eb93c980c5466f91ec29eeafb0ff810 Mon Sep 17 00:00:00 2001
    From: Sascha Silbe <sascha-org-sugar-git@silbe.org>
    Date: Tue, 25 Aug 2009 12:31:53 +0200
    Subject: [PATCH 2/2] fix Journal list view jumping back to first page on showing a Palette
    
    ---
     src/jarabe/journal/listview.py |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py
    index 251388d..d6f8fd7 100644
    a b class BaseListView(gtk.Bin): 
    412412
    413413    def set_is_visible(self, visible):
    414414        logging.debug('canvas_visibility_notify_event_cb %r', visible)
    415         if visible:
     415        if visible and self._fully_obscured:
    416416            self._fully_obscured = False
    417417            if self._dirty:
    418418                self.refresh()
    class BaseListView(gtk.Bin): 
    421421                self._update_dates_timer = \
    422422                        gobject.timeout_add_seconds(UPDATE_INTERVAL,
    423423                                            self.__update_dates_timer_cb)
    424         else:
     424        elif not visible:
    425425            self._fully_obscured = True
    426426            if self._update_dates_timer is not None:
    427427                logging.debug('Remove date updating timer')