mirror of
https://github.com/lbonn/rofi
synced 2024-11-29 23:30:27 +00:00
[IconFetcher] Don't check for extension for image file.
Issue: 1977
This commit is contained in:
parent
4f098751cd
commit
9b6e70b365
1 changed files with 5 additions and 3 deletions
|
@ -354,6 +354,7 @@ static void rofi_icon_fetcher_worker(thread_state *sdata,
|
||||||
}
|
}
|
||||||
cairo_surface_t *icon_surf = NULL;
|
cairo_surface_t *icon_surf = NULL;
|
||||||
|
|
||||||
|
#if 0 // unsure why added in past?
|
||||||
const char *suf = strrchr(icon_path, '.');
|
const char *suf = strrchr(icon_path, '.');
|
||||||
if (suf == NULL) {
|
if (suf == NULL) {
|
||||||
sentry->query_done = TRUE;
|
sentry->query_done = TRUE;
|
||||||
|
@ -361,6 +362,7 @@ static void rofi_icon_fetcher_worker(thread_state *sdata,
|
||||||
rofi_view_reload();
|
rofi_view_reload();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
GdkPixbuf *pb = gdk_pixbuf_new_from_file_at_scale(
|
GdkPixbuf *pb = gdk_pixbuf_new_from_file_at_scale(
|
||||||
|
@ -371,8 +373,8 @@ static void rofi_icon_fetcher_worker(thread_state *sdata,
|
||||||
* without decoding all the frames. Since gdk_pixbuf_new_from_file_at_scale
|
* 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.
|
* only decodes the first frame, this specific error needs to be ignored.
|
||||||
*/
|
*/
|
||||||
if (error != NULL && g_error_matches(
|
if (error != NULL && g_error_matches(error, GDK_PIXBUF_ERROR,
|
||||||
error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_INCOMPLETE_ANIMATION)) {
|
GDK_PIXBUF_ERROR_INCOMPLETE_ANIMATION)) {
|
||||||
g_clear_error(&error);
|
g_clear_error(&error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue