static void check_if_empty (EmpathyRosterView *self) { /* Roster is considered as empty if there is no contact *and* no group * currently displayed. */ if (g_hash_table_size (self->priv->displayed_contacts) != 0 || at_least_one_group_displayed (self)) { update_empty (self, FALSE); return; } update_empty (self, TRUE); }
static void add_to_displayed (EmpathyRosterView *self, EmpathyRosterContact *contact) { FolksIndividual *individual; GHashTable *contacts; GHashTableIter iter; gpointer k; if (g_hash_table_lookup (self->priv->displayed_contacts, contact) != NULL) return; g_hash_table_add (self->priv->displayed_contacts, contact); update_empty (self, FALSE); /* Groups of this contact may now be displayed if we just displays the first * child in this group. */ if (!self->priv->show_groups) return; individual = empathy_roster_contact_get_individual (contact); contacts = g_hash_table_lookup (self->priv->roster_contacts, individual); if (contacts == NULL) return; g_hash_table_iter_init (&iter, contacts); while (g_hash_table_iter_next (&iter, &k, NULL)) { const gchar *group_name = k; GtkListBoxRow *group; group = g_hash_table_lookup (self->priv->roster_groups, group_name); if (group == NULL) continue; gtk_list_box_row_changed (group); } }
void tms57002_device::device_reset() { sti = (sti & ~(SU_MASK|S_READ|S_WRITE|S_BRANCH|S_HOST|S_UPDATE)) | (SU_ST0|S_IDLE); pc = 0; ca = 0; hidx = 0; id = 0; ba0 = 0; ba1 = 0; update_counter_tail = 0; update_counter_head = 0; st0 &= ~(ST0_INCS | ST0_DIRI | ST0_FI | ST0_SIM | ST0_PLRI | ST0_PBCI | ST0_DIRO | ST0_FO | ST0_SOM | ST0_PLRO | ST0_PBCO | ST0_CNS); st1 &= ~(ST1_AOV | ST1_SFAI | ST1_SFAO | ST1_AOVM | ST1_MOVM | ST1_MOV | ST1_SFMA | ST1_SFMO | ST1_RND | ST1_CRM | ST1_DBP); update_dready(); update_pc0(); update_empty(); xba = 0; xoa = 0; cache_flush(); }