aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-25 20:12:22 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-25 20:12:22 +0800
commitcc260a6fe68be18a935dbc81caf25107325b5563 (patch)
tree7e5ac5e774776858a1c311136084daabf18c7484 /libempathy-gtk
parentfd86b3c72bcc01a3592cc5beec052526c098e1bd (diff)
downloadgsoc2013-empathy-cc260a6fe68be18a935dbc81caf25107325b5563.tar
gsoc2013-empathy-cc260a6fe68be18a935dbc81caf25107325b5563.tar.gz
gsoc2013-empathy-cc260a6fe68be18a935dbc81caf25107325b5563.tar.bz2
gsoc2013-empathy-cc260a6fe68be18a935dbc81caf25107325b5563.tar.lz
gsoc2013-empathy-cc260a6fe68be18a935dbc81caf25107325b5563.tar.xz
gsoc2013-empathy-cc260a6fe68be18a935dbc81caf25107325b5563.tar.zst
gsoc2013-empathy-cc260a6fe68be18a935dbc81caf25107325b5563.zip
select the first matching network when searching
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-irc-network-chooser-dialog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-irc-network-chooser-dialog.c b/libempathy-gtk/empathy-irc-network-chooser-dialog.c
index 4f0b618b5..8fadaf3d6 100644
--- a/libempathy-gtk/empathy-irc-network-chooser-dialog.c
+++ b/libempathy-gtk/empathy-irc-network-chooser-dialog.c
@@ -383,8 +383,14 @@ search_text_notify_cb (EmpathyLiveSearch *search,
EmpathyIrcNetworkChooserDialog *self)
{
EmpathyIrcNetworkChooserDialogPriv *priv = GET_PRIV (self);
+ GtkTreeIter iter;
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 */
}
static void