empathy r2795 - trunk/libempathy-gtk



Author: xclaesse
Date: Fri Apr 10 16:54:46 2009
New Revision: 2795
URL: http://svn.gnome.org/viewvc/empathy?rev=2795&view=rev

Log:
Don't set editing mode on click, just select the text

From: Davyd Madeley <davyd madeley id au>

Modified:
   trunk/libempathy-gtk/empathy-presence-chooser.c

Modified: trunk/libempathy-gtk/empathy-presence-chooser.c
==============================================================================
--- trunk/libempathy-gtk/empathy-presence-chooser.c	(original)
+++ trunk/libempathy-gtk/empathy-presence-chooser.c	Fri Apr 10 16:54:46 2009
@@ -377,9 +377,10 @@
 {
 	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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]