summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2024-04-18 22:32:50 +0200
committerDave Davenport <qball@gmpclient.org>2024-04-18 22:32:50 +0200
commit9b6e70b365116935158413034cf2aeb16affd9d4 (patch)
treed3ccd0ac8f36cc1d1d488f03434ca858fbfae72a
parent4f098751cd8a328e5b8d034113aae1420fee1c8d (diff)
[IconFetcher] Don't check for extension for image file.
Issue: 1977
-rw-r--r--source/rofi-icon-fetcher.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/rofi-icon-fetcher.c b/source/rofi-icon-fetcher.c
index 106f8f10..ef5847a9 100644
--- a/source/rofi-icon-fetcher.c
+++ b/source/rofi-icon-fetcher.c
@@ -354,6 +354,7 @@ static void rofi_icon_fetcher_worker(thread_state *sdata,
}
cairo_surface_t *icon_surf = NULL;
+#if 0 // unsure why added in past?
const char *suf = strrchr(icon_path, '.');
if (suf == NULL) {
sentry->query_done = TRUE;
@@ -361,6 +362,7 @@ static void rofi_icon_fetcher_worker(thread_state *sdata,
rofi_view_reload();
return;
}
+#endif
GError *error = NULL;
GdkPixbuf *pb = gdk_pixbuf_new_from_file_at_scale(
@@ -371,9 +373,9 @@ static void rofi_icon_fetcher_worker(thread_state *sdata,
* without decoding all the frames. Since gdk_pixbuf_new_from_file_at_scale
* only decodes the first frame, this specific error needs to be ignored.
*/
- if (error != NULL && g_error_matches(
- error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_INCOMPLETE_ANIMATION)) {
- g_clear_error(&error);
+ if (error != NULL && g_error_matches(error, GDK_PIXBUF_ERROR,
+ GDK_PIXBUF_ERROR_INCOMPLETE_ANIMATION)) {
+ g_clear_error(&error);
}
if (error != NULL) {