aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-irc-network-chooser-dialog.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-irc-network-chooser-dialog.c b/libempathy-gtk/empathy-irc-network-chooser-dialog.c
index c7bf3c078..eab8f5b09 100644
--- a/libempathy-gtk/empathy-irc-network-chooser-dialog.c
+++ b/libempathy-gtk/empathy-irc-network-chooser-dialog.c
@@ -385,13 +385,18 @@ search_text_notify_cb (EmpathyLiveSearch *search,
{
EmpathyIrcNetworkChooserDialogPriv *priv = GET_PRIV (self);
GtkTreeIter iter;
+ gboolean sensitive = FALSE;
gtk_tree_model_filter_refilter (priv->filter);
/* Select first matching network */
if (gtk_tree_model_get_iter_first (GTK_TREE_MODEL (priv->filter), &iter))
- select_iter (self, &iter, TRUE);
- /* TODO: else unsensitive the close button */
+ {
+ select_iter (self, &iter, TRUE);
+ sensitive = TRUE;
+ }
+
+ gtk_widget_set_sensitive (priv->select_button, sensitive);
}
static void