aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorDavyd Madeley <davyd@madeley.id.au>2009-04-11 00:54:11 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-11 00:54:11 +0800
commit58ba038d38067dd91ed2d9fe57164b939a6256a1 (patch)
treef01d626796542b92873cb570e3843275c261a6ab /libempathy-gtk
parent983528dcb684f3f8339d13d5beb52d2b1e4ca3a0 (diff)
downloadgsoc2013-empathy-58ba038d38067dd91ed2d9fe57164b939a6256a1.tar
gsoc2013-empathy-58ba038d38067dd91ed2d9fe57164b939a6256a1.tar.gz
gsoc2013-empathy-58ba038d38067dd91ed2d9fe57164b939a6256a1.tar.bz2
gsoc2013-empathy-58ba038d38067dd91ed2d9fe57164b939a6256a1.tar.lz
gsoc2013-empathy-58ba038d38067dd91ed2d9fe57164b939a6256a1.tar.xz
gsoc2013-empathy-58ba038d38067dd91ed2d9fe57164b939a6256a1.tar.zst
gsoc2013-empathy-58ba038d38067dd91ed2d9fe57164b939a6256a1.zip
When editing custom messages, preseed the entry with the current status
From: Davyd Madeley <davyd@madeley.id.au> svn path=/trunk/; revision=2785
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-presence-chooser.c7
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);