[Github-comments] [geany/geany] Support for VTE 2.91 (#1181)
Colomban Wendling
notifications at xxxxx
Sat Aug 20 14:40:41 UTC 2016
> +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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160820/471d4fcf/attachment.html>
More information about the Github-comments
mailing list