diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-06-05 13:29:38 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-06-05 13:30:53 +0200 |
commit | 4ca8825e02ff8959e3790df2d7818ecfb4134963 (patch) | |
tree | ae412b0d399ccf2bed1a771560c7b7a43e49fa52 /fiv-view.c | |
parent | 024b5117b4fdbd3193afab40c071abd11b85a013 (diff) | |
download | fiv-4ca8825e02ff8959e3790df2d7818ecfb4134963.tar.gz fiv-4ca8825e02ff8959e3790df2d7818ecfb4134963.tar.xz fiv-4ca8825e02ff8959e3790df2d7818ecfb4134963.zip |
Clean up
Use gchar when memory is allocated through GLib.
Diffstat (limited to 'fiv-view.c')
-rw-r--r-- | fiv-view.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1161,7 +1161,7 @@ fiv_view_init(FivView *self) // --- Public interface -------------------------------------------------------- static cairo_surface_t * -open_without_swapping_in(FivView *self, const gchar *uri) +open_without_swapping_in(FivView *self, const char *uri) { FivIoOpenContext ctx = { .uri = uri, @@ -1190,7 +1190,7 @@ open_without_swapping_in(FivView *self, const gchar *uri) // TODO(p): Progressive picture loading, or at least async/cancellable. gboolean -fiv_view_set_uri(FivView *self, const gchar *uri) +fiv_view_set_uri(FivView *self, const char *uri) { // This is extremely expensive, and only works sometimes. g_clear_pointer(&self->enhance_swap, cairo_surface_destroy); |