]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-contact-widget.c
local-xmpp-assistant-widget: increase row-spacing
[empathy.git] / libempathy-gtk / empathy-contact-widget.c
index 531f8e410bd01b90b4c9b042dad4ae4d429eebab..b352ee124b617850a79e8855b53f76fc060904e4 100644 (file)
@@ -88,7 +88,6 @@ typedef struct
   GtkWidget *vbox_contact_widget;
 
   /* Contact */
-  GtkWidget *hbox_contact;
   GtkWidget *widget_avatar;
   GtkWidget *widget_account;
   GtkWidget *image_account;
@@ -102,6 +101,7 @@ typedef struct
   GtkWidget *grid_contact;
   GtkWidget *vbox_avatar;
   GtkWidget *favourite_checkbox;
+  GtkWidget *label_details;
 
   /* Location */
   GtkWidget *vbox_location;
@@ -1440,6 +1440,13 @@ contact_widget_contact_update (EmpathyContactWidget *information)
 
       gtk_widget_set_visible (information->hbox_presence,
           !(information->flags & EMPATHY_CONTACT_WIDGET_NO_STATUS));
+
+      if (empathy_contact_is_user (information->contact))
+        gtk_label_set_text (GTK_LABEL (information->label_details),
+            _("Personal Details"));
+      else
+        gtk_label_set_text (GTK_LABEL (information->label_details),
+            _("Contact Details"));
     }
   else
     {
@@ -1738,7 +1745,6 @@ empathy_contact_widget_new (EmpathyContact *contact,
       "libempathy-gtk");
   gui = empathy_builder_get_file (filename,
        "vbox_contact_widget", &information->vbox_contact_widget,
-       "hbox_contact", &information->hbox_contact,
        "hbox_presence", &information->hbox_presence,
        "label_alias", &information->label_alias,
        "image_state", &information->image_state,
@@ -1757,6 +1763,7 @@ empathy_contact_widget_new (EmpathyContact *contact,
        "vbox_client", &information->vbox_client,
        "grid_client", &information->grid_client,
        "hbox_client_requested", &information->hbox_client_requested,
+       "label_details", &information->label_details,
        NULL);
   g_free (filename);