[empathy] contact-widget: use 'Personal Details' when editing our own info
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] contact-widget: use 'Personal Details' when editing our own info
- Date: Wed, 8 Feb 2012 15:44:15 +0000 (UTC)
commit 49e6e5ce115d2c6792ad16b56fcb23c0f7a1984f
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Feb 8 16:29:19 2012 +0100
contact-widget: use 'Personal Details' when editing our own info
https://bugzilla.gnome.org/show_bug.cgi?id=669655
libempathy-gtk/empathy-contact-widget.c | 9 +++++++++
libempathy-gtk/empathy-contact-widget.ui | 2 +-
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 509df53..b352ee1 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 39223ae..a8d9fbe 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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]