diff options
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.c | 4 | ||||
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index 3a08b6f26..531f8e410 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -1436,8 +1436,10 @@ contact_widget_contact_update (EmpathyContactWidget *information) gtk_widget_show (information->label_alias); gtk_widget_show (information->widget_alias); - gtk_widget_show (information->hbox_presence); gtk_widget_show (information->widget_avatar); + + gtk_widget_set_visible (information->hbox_presence, + !(information->flags & EMPATHY_CONTACT_WIDGET_NO_STATUS)); } else { diff --git a/libempathy-gtk/empathy-contact-widget.h b/libempathy-gtk/empathy-contact-widget.h index e683b1afe..2533248b5 100644 --- a/libempathy-gtk/empathy-contact-widget.h +++ b/libempathy-gtk/empathy-contact-widget.h @@ -63,6 +63,7 @@ typedef enum EMPATHY_CONTACT_WIDGET_NO_SET_ALIAS = 1 << 7, EMPATHY_CONTACT_WIDGET_SHOW_DETAILS = 1 << 8, EMPATHY_CONTACT_WIDGET_EDIT_DETAILS = 1 << 9, + EMPATHY_CONTACT_WIDGET_NO_STATUS = 1 << 10, } EmpathyContactWidgetFlags; GtkWidget * empathy_contact_widget_new (EmpathyContact *contact, |