From 6d21f90e600bf5fd61b5a06cd09bb61b3f54ecbf Mon Sep 17 00:00:00 2001 From: Michael Homer Date: Fri, 27 Apr 2018 11:28:44 +1200 Subject: Remove runtime warning about icon fallback gtk_icon_theme_lookup_by_gicon was called with the GTK_ICON_GENERIC_FALLBACK flag, which is not meaningful for that function and produced a warning. --- dragon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dragon.c b/dragon.c index fd19aa8..bc6c7fd 100644 --- a/dragon.c +++ b/dragon.c @@ -151,7 +151,7 @@ void add_file_button(char *filename) { GFileInfo *fileinfo = g_file_query_info(file, "*", 0, NULL, NULL); GIcon *icon = g_file_info_get_icon(fileinfo); GtkIconInfo *icon_info = gtk_icon_theme_lookup_by_gicon(icon_theme, - icon, 48, GTK_ICON_LOOKUP_GENERIC_FALLBACK); + icon, 48, 0); gtk_button_set_image(button, gtk_image_new_from_pixbuf( gtk_icon_info_load_icon(icon_info, NULL) -- cgit