aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavyd Madeley <davyd@madeley.id.au>2009-04-11 00:54:46 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-11 00:54:46 +0800
commit892426c6377d47e362c9271acf9d008568ea1706 (patch)
treeadeca4b54ebeffdf70c0d0d06fa2ac4780768fc1
parent4976ba9c8adcb8ec0cf5eef22b99fe31b4bff2e7 (diff)
downloadgsoc2013-empathy-892426c6377d47e362c9271acf9d008568ea1706.tar
gsoc2013-empathy-892426c6377d47e362c9271acf9d008568ea1706.tar.gz
gsoc2013-empathy-892426c6377d47e362c9271acf9d008568ea1706.tar.bz2
gsoc2013-empathy-892426c6377d47e362c9271acf9d008568ea1706.tar.lz
gsoc2013-empathy-892426c6377d47e362c9271acf9d008568ea1706.tar.xz
gsoc2013-empathy-892426c6377d47e362c9271acf9d008568ea1706.tar.zst
gsoc2013-empathy-892426c6377d47e362c9271acf9d008568ea1706.zip
Don't set editing mode on click, just select the text
From: Davyd Madeley <davyd@madeley.id.au> svn path=/trunk/; revision=2795
-rw-r--r--libempathy-gtk/empathy-presence-chooser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-presence-chooser.c b/libempathy-gtk/empathy-presence-chooser.c
index bfdc20a17..66ff887d6 100644
--- a/libempathy-gtk/empathy-presence-chooser.c
+++ b/libempathy-gtk/empathy-presence-chooser.c
@@ -377,9 +377,10 @@ presence_chooser_entry_button_press_event_cb (EmpathyPresenceChooser *self,
{
EmpathyPresenceChooserPriv *priv = GET_PRIV (self);
- if (!priv->editing_status && event->button == 1)
+ if (!priv->editing_status &&
+ event->button == 1 &&
+ !GTK_WIDGET_HAS_FOCUS (entry))
{
- presence_chooser_set_status_editing (self, TRUE);
gtk_widget_grab_focus (entry);
gtk_editable_select_region (GTK_EDITABLE (entry), 0, -1);