diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-02-21 08:02:04 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-02-21 08:02:04 +0800 |
commit | 9a390a3125826aeb7f62bdac0b6c31c576f688be (patch) | |
tree | b8671d31aae7e6c5bc4f345577ff8b7ed78ac496 | |
parent | a26946a39370cdf88882752aaf6deb40a97dabf1 (diff) | |
download | gsoc2013-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
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/widgets/ephy-autocompletion-window.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2003-02-21 Marco Pesenti Gritti <marco@it.gnome.org> + + * lib/widgets/ephy-autocompletion-window.c: + (hack_tree_view_move_selection): + + Fix another warning + 2003-02-20 Christophe Fergeau <teuf@users.sourceforge.net> * configure.in: added fr.po to ALL_LINGUAS 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); |