]> git.0d.be Git - empathy.git/commitdiff
contact-widget: use 'Personal Details' when editing our own info
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 8 Feb 2012 15:29:19 +0000 (16:29 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 8 Feb 2012 15:44:01 +0000 (16:44 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=669655

libempathy-gtk/empathy-contact-widget.c
libempathy-gtk/empathy-contact-widget.ui

index 509df53e828b8906fecff76809c08fd99a323874..b352ee124b617850a79e8855b53f76fc060904e4 100644 (file)
@@ -101,6 +101,7 @@ typedef struct
   GtkWidget *grid_contact;
   GtkWidget *vbox_avatar;
   GtkWidget *favourite_checkbox;
+  GtkWidget *label_details;
 
   /* Location */
   GtkWidget *vbox_location;
@@ -1439,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
     {
@@ -1755,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);
 
index 39223aedf433cb57fa089307c91de49969934fdf..a8d9fbe7abd27a911b2497f4eeb165e426cd4e33 100644 (file)
       <object class="GtkVBox" id="vbox_details">
         <property name="spacing">6</property>
         <child>
-          <object class="GtkLabel" id="label649">
+          <object class="GtkLabel" id="label_details">
             <property name="visible">True</property>
             <property name="xalign">0</property>
             <property name="label" translatable="yes">Contact Details</property>