mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
gtk-builder-tool: Error out if screenshooting fails
If we don't produce a texture for whatever reason, apologize and fail.
This commit is contained in:
parent
6484807719
commit
e89365e9e3
@ -256,6 +256,12 @@ screenshot_file (const char *filename,
|
|||||||
|
|
||||||
g_object_unref (builder);
|
g_object_unref (builder);
|
||||||
|
|
||||||
|
if (texture == NULL)
|
||||||
|
{
|
||||||
|
g_printerr ("Failed to take a screenshot\n");
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
|
|
||||||
save_to = (char *)save_file;
|
save_to = (char *)save_file;
|
||||||
|
|
||||||
if (save_to == NULL)
|
if (save_to == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user