Fixing a recent calls issue
authorepage <eopage@byu.net>
Fri, 3 Oct 2008 00:28:17 +0000 (00:28 +0000)
committerepage <eopage@byu.net>
Fri, 3 Oct 2008 00:28:17 +0000 (00:28 +0000)
git-svn-id: file:///svnroot/gc-dialer/trunk@164 c39d3808-3fe2-4d86-a59f-b7f623ee9f21

src/dialcentral/gc_dialer.py

index f705485..a876e28 100755 (executable)
@@ -800,12 +800,15 @@ class Dialpad(object):
                self._contactsviewselection.unselect_all()
 
        def _on_notebook_switch_page(self, notebook, page, page_num):
-               if page_num == 1 and 300 < (time.time() - self._contactstime):
-                       threading.Thread(target=self._idly_populate_contactsview).start()
-               elif page_num == 2 and 300 < (time.time() - self._recenttime):
-                       threading.Thread(target=self._idly_populate_recentview).start()
-               #elif page_num == 3 and self._callbackNeedsSetup:
-               #       gobject.idle_add(self._idly_populate_callback_combo)
+               if page_num == 1:
+                       if 300 < (time.time() - self._contactstime):
+                               threading.Thread(target=self._idly_populate_contactsview).start()
+               elif page_num == 3:
+                       if 300 < (time.time() - self._recenttime):
+                               threading.Thread(target=self._idly_populate_recentview).start()
+               #elif page_num == 2:
+               #       self._callbackNeedsSetup::
+               #               gobject.idle_add(self._idly_populate_callback_combo)
 
                tabTitle = self._notebook.get_tab_label(self._notebook.get_nth_page(page_num)).get_text()
                if hildon is not None: