[empathy: 11/26] select the first matching network when searching
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 11/26] select the first matching network when searching
- Date: Thu, 26 Aug 2010 12:04:17 +0000 (UTC)
commit cc260a6fe68be18a935dbc81caf25107325b5563
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Aug 25 14:12:22 2010 +0200
select the first matching network when searching
.../empathy-irc-network-chooser-dialog.c | 6 ++++++
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 4f0b618..8fadaf3 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]