empathy r2788 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2788 - trunk/libempathy-gtk
- Date: Fri, 10 Apr 2009 16:54:21 +0000 (UTC)
Author: xclaesse
Date: Fri Apr 10 16:54:21 2009
New Revision: 2788
URL: http://svn.gnome.org/viewvc/empathy?rev=2788&view=rev
Log:
Commit the changed status message on focus-out.
I'm dubious if this is the right behaviour, but there was no obvious
consensus. So I propose we find out with actual users. It can always be
changed.
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:21 2009
@@ -465,6 +465,20 @@
return (type == ENTRY_TYPE_SEPARATOR);
}
+static gboolean
+focus_out_cb (EmpathyPresenceChooser *chooser, GdkEventFocus *event,
+ GtkEntry *entry)
+{
+ EmpathyPresenceChooserPriv *priv = GET_PRIV (chooser);
+
+ if (priv->editing_status)
+ {
+ entry_activate_cb (chooser, entry);
+ }
+
+ return FALSE;
+}
+
static void
empathy_presence_chooser_init (EmpathyPresenceChooser *chooser)
{
@@ -520,6 +534,8 @@
G_CALLBACK (changed_cb), NULL);
g_signal_connect_swapped (entry, "changed",
G_CALLBACK (changed_cb), chooser);
+ g_signal_connect_swapped (entry, "focus-out-event",
+ G_CALLBACK (focus_out_cb), chooser);
priv->idle = empathy_idle_dup_singleton ();
presence_chooser_presence_changed_cb (chooser);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]