diff --git a/ChangeLog b/ChangeLog index 528797249..93064c3d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-15 Matthias Clasen + + * gtk/gtktreemodel.c (gtk_tree_path_prev): Return FALSE if + depth is 0 (noticed by Tim Janik) + 2004-11-15 Erwann Chenede - * gtk/gtkfilesel.c: fix unselect in multiple selection (#156805) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 528797249..93064c3d5 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2004-11-15 Matthias Clasen + + * gtk/gtktreemodel.c (gtk_tree_path_prev): Return FALSE if + depth is 0 (noticed by Tim Janik) + 2004-11-15 Erwann Chenede - * gtk/gtkfilesel.c: fix unselect in multiple selection (#156805) diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 528797249..93064c3d5 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2004-11-15 Matthias Clasen + + * gtk/gtktreemodel.c (gtk_tree_path_prev): Return FALSE if + depth is 0 (noticed by Tim Janik) + 2004-11-15 Erwann Chenede - * gtk/gtkfilesel.c: fix unselect in multiple selection (#156805) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 528797249..93064c3d5 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2004-11-15 Matthias Clasen + + * gtk/gtktreemodel.c (gtk_tree_path_prev): Return FALSE if + depth is 0 (noticed by Tim Janik) + 2004-11-15 Erwann Chenede - * gtk/gtkfilesel.c: fix unselect in multiple selection (#156805) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index eed61bde4..786dd035b 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,9 @@ +2004-11-15 Matthias Clasen + + * queryloaders.c (query_module): Set vtable->module before + calling fill_vtable(), since gdk-pixbuf-io.c does does the + same and modules may rely on it. (#158177, Dan Winship) + 2004-11-12 Matthias Clasen * gdk-pixbuf-io.c (gdk_pixbuf_io_init): Don't use diff --git a/gdk-pixbuf/queryloaders.c b/gdk-pixbuf/queryloaders.c index 21aa320eb..1fc5d58b3 100644 --- a/gdk-pixbuf/queryloaders.c +++ b/gdk-pixbuf/queryloaders.c @@ -181,7 +181,9 @@ query_module (const char *dir, const char *file) #endif info = g_new0 (GdkPixbufFormat, 1); vtable = g_new0 (GdkPixbufModule, 1); - + + vtable->module = module; + (*fill_info) (info); (*fill_vtable) (vtable); diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c index 148f153f2..033c5cfc4 100644 --- a/gtk/gtktreemodel.c +++ b/gtk/gtktreemodel.c @@ -734,6 +734,9 @@ gtk_tree_path_prev (GtkTreePath *path) { g_return_val_if_fail (path != NULL, FALSE); + if (path->depth == 0) + return FALSE; + if (path->indices[path->depth - 1] == 0) return FALSE;