[empathy] EmpathySearchContactDialog: Set search entry insensitive when search is not supported
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] EmpathySearchContactDialog: Set search entry insensitive when search is not supported
- Date: Mon, 8 Jul 2013 10:44:30 +0000 (UTC)
commit 3823c48231c9a81c4e916057ff8de6245d7d112a
Author: Xavier Claessens <xavier claessens collabora co uk>
Date: Mon Jul 8 12:26:40 2013 +0200
EmpathySearchContactDialog: Set search entry insensitive when search is not supported
There is no point in letting user type something if the search
button is insensitive anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=703775
libempathy-gtk/empathy-contact-search-dialog.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-search-dialog.c b/libempathy-gtk/empathy-contact-search-dialog.c
index 33a60ff..e581059 100644
--- a/libempathy-gtk/empathy-contact-search-dialog.c
+++ b/libempathy-gtk/empathy-contact-search-dialog.c
@@ -337,6 +337,7 @@ on_searcher_created (GObject *source_object,
G_CALLBACK (_on_search_state_changed_cb), self);
gtk_widget_set_sensitive (priv->find_button, TRUE);
+ gtk_widget_set_sensitive (priv->search_entry, TRUE);
}
static void
@@ -385,6 +386,7 @@ _account_chooser_changed (EmpathyAccountChooser *chooser,
/* gtk_widget_set_sensitive (priv->server_entry, can_set_server); */
gtk_widget_set_sensitive (priv->find_button, FALSE);
+ gtk_widget_set_sensitive (priv->search_entry, FALSE);
DEBUG ("New account is %s", tp_proxy_get_object_path (account));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]