aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-02-08 23:29:19 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-02-08 23:44:01 +0800
commit49e6e5ce115d2c6792ad16b56fcb23c0f7a1984f (patch)
tree914efc40abbad52535ceb7fceda36051da26e0dc
parentdf46e07c93dec1d9cb3e3bee9c67f22918f40312 (diff)
downloadgsoc2013-empathy-49e6e5ce115d2c6792ad16b56fcb23c0f7a1984f.tar
gsoc2013-empathy-49e6e5ce115d2c6792ad16b56fcb23c0f7a1984f.tar.gz
gsoc2013-empathy-49e6e5ce115d2c6792ad16b56fcb23c0f7a1984f.tar.bz2
gsoc2013-empathy-49e6e5ce115d2c6792ad16b56fcb23c0f7a1984f.tar.lz
gsoc2013-empathy-49e6e5ce115d2c6792ad16b56fcb23c0f7a1984f.tar.xz
gsoc2013-empathy-49e6e5ce115d2c6792ad16b56fcb23c0f7a1984f.tar.zst
gsoc2013-empathy-49e6e5ce115d2c6792ad16b56fcb23c0f7a1984f.zip
contact-widget: use 'Personal Details' when editing our own info
https://bugzilla.gnome.org/show_bug.cgi?id=669655
-rw-r--r--libempathy-gtk/empathy-contact-widget.c9
-rw-r--r--libempathy-gtk/empathy-contact-widget.ui2
2 files changed, 10 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 509df53e8..b352ee124 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -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);
diff --git a/libempathy-gtk/empathy-contact-widget.ui b/libempathy-gtk/empathy-contact-widget.ui
index 39223aedf..a8d9fbe7a 100644
--- a/libempathy-gtk/empathy-contact-widget.ui
+++ b/libempathy-gtk/empathy-contact-widget.ui
@@ -144,7 +144,7 @@
<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>