aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-03-11 23:46:57 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-03-11 23:55:39 +0800
commit34fc9df7c2d660ff29250e25ca3441f571863146 (patch)
tree2484b785866d11d7191893187664cf518019ee16
parent6549ab3005c67b222f1f9d244cb9f7d551b3e325 (diff)
downloadgsoc2013-empathy-34fc9df7c2d660ff29250e25ca3441f571863146.tar
gsoc2013-empathy-34fc9df7c2d660ff29250e25ca3441f571863146.tar.gz
gsoc2013-empathy-34fc9df7c2d660ff29250e25ca3441f571863146.tar.bz2
gsoc2013-empathy-34fc9df7c2d660ff29250e25ca3441f571863146.tar.lz
gsoc2013-empathy-34fc9df7c2d660ff29250e25ca3441f571863146.tar.xz
gsoc2013-empathy-34fc9df7c2d660ff29250e25ca3441f571863146.tar.zst
gsoc2013-empathy-34fc9df7c2d660ff29250e25ca3441f571863146.zip
live_search_unmap: check if priv->hook_widget is not NULL
https://bugzilla.gnome.org/show_bug.cgi?id=692105
-rw-r--r--libempathy-gtk/empathy-live-search.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-live-search.c b/libempathy-gtk/empathy-live-search.c
index bb1881fe6..443882fc5 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