> +static void default_vte_terminal_set_background_image_file(VteTerminal 
> *terminal, const char *path)
> +{
> +     if (background_image_pixbuf)
> +     {
> +             g_object_unref(background_image_pixbuf);
> +             background_image_pixbuf = NULL;
> +     }
> +
> +     if (path != NULL)
> +     {
> +             GError *error = NULL;
> +
> +             background_image_pixbuf = gdk_pixbuf_new_from_file(path, 
> &error);
> +             if (! background_image_pixbuf)
> +             {
> +                     g_warning("Failed to load VTE background image: %s", 
> error->message);

BTW, apparently VTE's implementation of this fails silently when the file can't 
be open/isn't an image.  Warning is better for us I suppose, though.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1181/files/e48fa14aa403c35833a5f4f6e11ab2a6ad6482cb..2bfcbe8c4bb501972b813b25f753a8e0781e0f1b#r75579715

Reply via email to