}
static void
-reset_contact (ELHomeApplet *self)
+reset_contact (ELHomeApplet *self, gboolean resize)
{
ELHomeAppletPrivate *priv = self->priv;
priv->contact = NULL;
}
- resize_sender (priv);
+ if (resize)
+ resize_sender (priv);
}
static void
for (contact_id = ids; *contact_id; contact_id++) {
if (strcmp (*contact_id, priv->contact_id) == 0) {
- reset_contact (self);
+ reset_contact (self, TRUE);
gtk_widget_queue_draw (GTK_WIDGET (self));
return;
}
if (strcmp (*contact_id, uid) == 0) {
- reset_contact (self);
+ reset_contact (self, TRUE);
resolve_contact (self);
gtk_widget_queue_draw (GTK_WIDGET (self));
return;
}
static void
-clean_contact (ELHomeApplet *self)
+clean_contact (ELHomeApplet *self, gboolean resize)
{
ELHomeAppletPrivate *priv = self->priv;
- reset_contact (self);
+ reset_contact (self, resize);
if (priv->aggregator) {
if (priv->aggregator_ready_closure){
}
clean_state (EL_HOME_APPLET (self));
- clean_contact (EL_HOME_APPLET (self));
+ clean_contact (EL_HOME_APPLET (self), FALSE);
G_OBJECT_CLASS (el_home_applet_parent_class)->dispose (self);
}
if (g_strcmp0 (priv->remote_id, remote_id) ||
new_account ||
!priv->contact) {
- clean_contact (self);
+ clean_contact (self, TRUE);
start_aggregator (self);
}
else if (priv->contact) {
dgettext ("rtcom-messaging-ui",
"messaging_ap_conversations"));
- clean_contact (self);
+ clean_contact (self, TRUE);
gtk_widget_hide (priv->icon);
}