diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-25 20:18:06 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-25 20:18:06 +0800 |
commit | c196520a0117248010140b0612e7d2726d135afc (patch) | |
tree | e1ce34b28e9c261469099b55e2db24264314cd2d | |
parent | 75f7bc8ce00e28a84d19bf036382e2566b60f9e8 (diff) | |
download | gsoc2013-empathy-c196520a0117248010140b0612e7d2726d135afc.tar gsoc2013-empathy-c196520a0117248010140b0612e7d2726d135afc.tar.gz gsoc2013-empathy-c196520a0117248010140b0612e7d2726d135afc.tar.bz2 gsoc2013-empathy-c196520a0117248010140b0612e7d2726d135afc.tar.lz gsoc2013-empathy-c196520a0117248010140b0612e7d2726d135afc.tar.xz gsoc2013-empathy-c196520a0117248010140b0612e7d2726d135afc.tar.zst gsoc2013-empathy-c196520a0117248010140b0612e7d2726d135afc.zip |
don't allow to select a network if none is actually selected
-rw-r--r-- | libempathy-gtk/empathy-irc-network-chooser-dialog.c | 9 |
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 |