aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-widget.c
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@src.gnome.org>2008-08-20 17:18:02 +0800
committerFrederic Peters <fpeters@src.gnome.org>2008-08-20 17:18:02 +0800
commit4bfaa6a1f18836ca01d6bd37711a4ff5e3fac052 (patch)
tree50b447e428c11b6d5f75558519b726fc2be3378c /libempathy-gtk/empathy-contact-widget.c
parenta50bfdd4592569391bcc7c3e0193de66be0c88fc (diff)
downloadgsoc2013-empathy-4bfaa6a1f18836ca01d6bd37711a4ff5e3fac052.tar
gsoc2013-empathy-4bfaa6a1f18836ca01d6bd37711a4ff5e3fac052.tar.gz
gsoc2013-empathy-4bfaa6a1f18836ca01d6bd37711a4ff5e3fac052.tar.bz2
gsoc2013-empathy-4bfaa6a1f18836ca01d6bd37711a4ff5e3fac052.tar.lz
gsoc2013-empathy-4bfaa6a1f18836ca01d6bd37711a4ff5e3fac052.tar.xz
gsoc2013-empathy-4bfaa6a1f18836ca01d6bd37711a4ff5e3fac052.tar.zst
gsoc2013-empathy-4bfaa6a1f18836ca01d6bd37711a4ff5e3fac052.zip
don't let label text be selected in contact tooltip (closes: #546568)
svn path=/trunk/; revision=1360
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r--libempathy-gtk/empathy-contact-widget.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 2e591ece3..fb09fa3b6 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -530,7 +530,9 @@ contact_widget_contact_setup (EmpathyContactWidget *information)
else
{
information->widget_account = gtk_label_new (NULL);
- gtk_label_set_selectable (GTK_LABEL (information->widget_account), TRUE);
+ if (!information->flags & EMPATHY_CONTACT_WIDGET_FOR_TOOLTIP) {
+ gtk_label_set_selectable (GTK_LABEL (information->widget_account), TRUE);
+ }
gtk_misc_set_alignment (GTK_MISC (information->widget_account), 0, 0.5);
}
gtk_table_attach_defaults (GTK_TABLE (information->table_contact),
@@ -552,7 +554,9 @@ contact_widget_contact_setup (EmpathyContactWidget *information)
else
{
information->widget_id = gtk_label_new (NULL);
- gtk_label_set_selectable (GTK_LABEL (information->widget_id), TRUE);
+ if (!information->flags & EMPATHY_CONTACT_WIDGET_FOR_TOOLTIP) {
+ gtk_label_set_selectable (GTK_LABEL (information->widget_id), TRUE);
+ }
gtk_misc_set_alignment (GTK_MISC (information->widget_id), 0, 0.5);
}
gtk_table_attach_defaults (GTK_TABLE (information->table_contact),
@@ -574,12 +578,17 @@ contact_widget_contact_setup (EmpathyContactWidget *information)
else
{
information->widget_alias = gtk_label_new (NULL);
- gtk_label_set_selectable (GTK_LABEL (information->widget_alias), TRUE);
+ if (!information->flags & EMPATHY_CONTACT_WIDGET_FOR_TOOLTIP) {
+ gtk_label_set_selectable (GTK_LABEL (information->widget_alias), TRUE);
+ }
gtk_misc_set_alignment (GTK_MISC (information->widget_alias), 0, 0.5);
}
gtk_table_attach_defaults (GTK_TABLE (information->table_contact),
information->widget_alias,
1, 2, 2, 3);
+ if (information->flags & EMPATHY_CONTACT_WIDGET_FOR_TOOLTIP) {
+ gtk_label_set_selectable (GTK_LABEL (information->label_status), FALSE);
+ }
gtk_widget_show (information->widget_alias);
}