mirror of
https://github.com/jtheoof/swappy.git
synced 2024-10-26 15:44:47 +03:00
cdbd06d7af
If the input file is invalid (example: `grim` did not work due to invalid geometry), handle the error gracefully. Previously we had a coredump due to `g_error`.
14 lines
556 B
C
14 lines
556 B
C
#pragma once
|
|
|
|
#include "swappy.h"
|
|
|
|
GdkPixbuf *pixbuf_init_from_file(struct swappy_state *state);
|
|
GdkPixbuf *pixbuf_get_from_state(struct swappy_state *state);
|
|
void pixbuf_save_state_to_folder(GdkPixbuf *pixbuf, char *folder,
|
|
char *filename_format);
|
|
void pixbuf_save_to_file(GdkPixbuf *pixbuf, char *file);
|
|
void pixbuf_save_to_stdout(GdkPixbuf *pixbuf);
|
|
void pixbuf_scale_surface_from_widget(struct swappy_state *state,
|
|
GtkWidget *widget);
|
|
void pixbuf_free(struct swappy_state *state);
|