(self, notebook, page,  page_num,  data=None)
Prime a single idle tab switch signal, using the most recent set of params
Prime a single idle tab switch signal, using the most recent set of params
Prime a single idle tab switch signal using the most recent set of params
def deferred_on_tab_switch(self, notebook, page,  page_num,  data=None):
        """Prime a single idle tab switch signal, using the most recent set of params"""
        tabs_last_active_term = self.last_active_term.get(self.get_nth_page(page_num),  None)
        data = {'tabs_last_active_term':tabs_last_active_term}

        self.pending_on_tab_switch_args = (notebook, page,  page_num,  data)
        if self.pending_on_tab_switch == True:
            return
        GObject.idle_add(self.do_deferred_on_tab_switch)
        self.pending_on_tab_switch = True
def deferred_on_tab_switch ( self , notebook , page , page_num , data = None ) : tabs_last_active_term = self . last_active_term . get ( self . get_nth_page ( page_num ) , None ) data = { 'tabs_last_active_term' : tabs_last_active_term } self . pending_on_tab_switch_args = ( notebook , page , page_num , data ) if self . pending_on_tab_switch == True : return GObject . idle_add ( self . do_deferred_on_tab_switch ) self . pending_on_tab_switch = True