forked from AuroraMiddleware/gtk
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);
|
||||
|
||||
if (texture == NULL)
|
||||
{
|
||||
g_printerr ("Failed to take a screenshot\n");
|
||||
exit (1);
|
||||
}
|
||||
|
||||
save_to = (char *)save_file;
|
||||
|
||||
if (save_to == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user