]> git.0d.be Git - empathy.git/commitdiff
Don't show the presence twice
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Fri, 15 Jul 2011 07:27:34 +0000 (17:27 +1000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 22 Dec 2011 09:46:18 +0000 (10:46 +0100)
libempathy-gtk/empathy-contact-widget.c
libempathy-gtk/empathy-contact-widget.h
src/empathy-accounts-dialog.c

index 3a08b6f26362a82cdb50534c0cb1761f1ce44ff4..531f8e410bd01b90b4c9b042dad4ae4d429eebab 100644 (file)
@@ -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
     {
index e683b1afe5dd23073e59662b2771d566739bfccf..2533248b5b676b81f7a05a4f39721a5a26b5c1e8 100644 (file)
@@ -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,
index ae312df2fa9f1861ab507c49db6b7d002ad61dab..6c8fe1ca9905141384f0da67a98b5889195fb579 100644 (file)
@@ -648,6 +648,7 @@ account_dialog_got_self_contact (TpConnection *conn,
   editor = empathy_contact_widget_new (contact,
       EMPATHY_CONTACT_WIDGET_EDIT_ALIAS |
       EMPATHY_CONTACT_WIDGET_EDIT_AVATAR |
+      EMPATHY_CONTACT_WIDGET_NO_STATUS |
       EMPATHY_CONTACT_WIDGET_EDIT_DETAILS);
   gtk_box_pack_start (GTK_BOX (priv->dialog_content), editor, FALSE, FALSE, 0);
   gtk_widget_show (editor);