[empathy/gnome-3-6] live_search_unmap: check if priv->hook_widget is not NULL
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-3-6] live_search_unmap: check if priv->hook_widget is not NULL
- Date: Mon, 11 Mar 2013 16:05:33 +0000 (UTC)
commit f5940b4bb9c483759ada19a887e1789b08cab917
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Mar 11 16:46:57 2013 +0100
live_search_unmap: check if priv->hook_widget is not NULL
https://bugzilla.gnome.org/show_bug.cgi?id=692105
libempathy-gtk/empathy-live-search.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-live-search.c b/libempathy-gtk/empathy-live-search.c
index bb1881f..443882f 100644
--- a/libempathy-gtk/empathy-live-search.c
+++ b/libempathy-gtk/empathy-live-search.c
@@ -499,7 +499,9 @@ live_search_unmap (GtkWidget *widget)
gtk_widget_hide (widget);
gtk_entry_set_text (GTK_ENTRY (priv->search_entry), "");
- gtk_widget_grab_focus (priv->hook_widget);
+
+ if (priv->hook_widget != NULL)
+ gtk_widget_grab_focus (priv->hook_widget);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]