aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-presence-chooser.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-presence-chooser.c')
-rw-r--r--libempathy-gtk/empathy-presence-chooser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-presence-chooser.c b/libempathy-gtk/empathy-presence-chooser.c
index cca7a21ef..fa8864984 100644
--- a/libempathy-gtk/empathy-presence-chooser.c
+++ b/libempathy-gtk/empathy-presence-chooser.c
@@ -908,6 +908,7 @@ presence_chooser_presence_changed_cb (EmpathyPresenceChooser *chooser)
GtkTreeModel *model;
GtkTreeIter iter;
gboolean valid, match_state = FALSE, match = FALSE;
+ GtkWidget *entry;
priv = GET_PRIV (chooser);
@@ -977,6 +978,10 @@ presence_chooser_presence_changed_cb (EmpathyPresenceChooser *chooser)
else {
presence_chooser_flash_stop (chooser, state);
}
+
+ entry = gtk_bin_get_child (GTK_BIN (chooser));
+ gtk_editable_set_editable (GTK_EDITABLE (entry),
+ state != TP_CONNECTION_PRESENCE_TYPE_OFFLINE);
}
static gboolean