The idea behind this is that you can't set a custom status when you
are offline. It just doesn't make sense.
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
GtkTreeModel *model;
GtkTreeIter iter;
gboolean valid, match_state = FALSE, match = FALSE;
+ GtkWidget *entry;
priv = GET_PRIV (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