diff options
Diffstat (limited to 'libempathy-gtk/empathy-presence-chooser.c')
-rw-r--r-- | libempathy-gtk/empathy-presence-chooser.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-presence-chooser.c b/libempathy-gtk/empathy-presence-chooser.c index d36228010..98a609f57 100644 --- a/libempathy-gtk/empathy-presence-chooser.c +++ b/libempathy-gtk/empathy-presence-chooser.c @@ -269,6 +269,7 @@ set_status_editing (EmpathyPresenceChooser *self, gboolean editing) /* unset the focus */ gtk_window_set_focus (GTK_WINDOW (window), NULL); } + gtk_editable_set_position (GTK_EDITABLE (entry), 0); priv->editing_status = FALSE; } @@ -404,6 +405,12 @@ changed_cb (GtkComboBox *self, gpointer user_data) GTK_ENTRY_ICON_PRIMARY, icon_name); + /* preseed the status */ + const char *status = empathy_idle_get_status (priv->idle); + priv->block_set_editing++; + gtk_entry_set_text (GTK_ENTRY (entry), status); + priv->block_set_editing--; + /* grab the focus */ gtk_widget_grab_focus (entry); |