Re: 1.3.11 candidate tarballs



Hi,

"Matthias Clasen" <matthiasc poet de> writes:

> One trivial thing.
> 
> Trying the textview demo from gtk-demo when run in a directory other than
> gtk+-1.3.11/demos/gtk-demo
> fails with "Failed to load image file gtk-logo-rgb.gif". Fix appended.
> 
> Matthias
> 
> --- demos/gtk-demo/textview.c.orig	Fri Nov 23 09:57:26 2001
> +++ demos/gtk-demo/textview.c	Fri Nov 23 10:01:30 2001
> @@ -154,7 +154,7 @@
> 
>    pixbuf = gdk_pixbuf_new_from_file ("./gtk-logo-rgb.gif", NULL);
>    if (pixbuf == NULL)
> -    gdk_pixbuf_new_from_file (DEMOCODEDIR"/gtk-logo-rgb.gif", NULL);
> +    pixbuf = gdk_pixbuf_new_from_file (DEMOCODEDIR"/gtk-logo-rgb.gif",
> NULL);

I guess that should be 

  filename = g_build_filename (DEMOCODEDIR, "gtk-logo-rgb.gif", NULL);
  pixbuf = gdk_pixbuf_new_from_file (filename, NULL);
  g_free (filename);

so it works for the poor souls that run an OS where the slash is backwards.


Salut, Sven



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]