aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-02-21 08:02:04 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-02-21 08:02:04 +0800
commit9a390a3125826aeb7f62bdac0b6c31c576f688be (patch)
treeb8671d31aae7e6c5bc4f345577ff8b7ed78ac496 /lib/widgets
parenta26946a39370cdf88882752aaf6deb40a97dabf1 (diff)
downloadgsoc2013-epiphany-9a390a3125826aeb7f62bdac0b6c31c576f688be.tar
gsoc2013-epiphany-9a390a3125826aeb7f62bdac0b6c31c576f688be.tar.gz
gsoc2013-epiphany-9a390a3125826aeb7f62bdac0b6c31c576f688be.tar.bz2
gsoc2013-epiphany-9a390a3125826aeb7f62bdac0b6c31c576f688be.tar.lz
gsoc2013-epiphany-9a390a3125826aeb7f62bdac0b6c31c576f688be.tar.xz
gsoc2013-epiphany-9a390a3125826aeb7f62bdac0b6c31c576f688be.tar.zst
gsoc2013-epiphany-9a390a3125826aeb7f62bdac0b6c31c576f688be.zip
Fix another warning
2003-02-21 Marco Pesenti Gritti <marco@it.gnome.org> * lib/widgets/ephy-autocompletion-window.c: (hack_tree_view_move_selection): Fix another warning
Diffstat (limited to 'lib/widgets')
-rw-r--r--lib/widgets/ephy-autocompletion-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/widgets/ephy-autocompletion-window.c b/lib/widgets/ephy-autocompletion-window.c
index 1bdf48130..2eba9da66 100644
--- a/lib/widgets/ephy-autocompletion-window.c
+++ b/lib/widgets/ephy-autocompletion-window.c
@@ -655,7 +655,7 @@ hack_tree_view_move_selection (GtkTreeView *tv, GtkTreeView *alternate, int dir)
model = gtk_tree_view_get_model (alternate);
c = gtk_tree_model_iter_n_children (model, NULL);
- if (c > 0)
+ if (c > 0 && alternate)
{
gtk_tree_model_iter_nth_child (model, &iter, NULL, c - 1);
p = gtk_tree_model_get_path (model, &iter);