aboutsummaryrefslogtreecommitdiff
path: root/dragon.c
diff options
context:
space:
mode:
authorMichael Homer <mwh@mwh.geek.nz>2018-04-27 11:28:44 +1200
committerMichael Homer <mwh@mwh.geek.nz>2018-04-27 11:28:44 +1200
commit6d21f90e600bf5fd61b5a06cd09bb61b3f54ecbf (patch)
treeec60c287f836d91986aa9ada2866ebcdd38a268a /dragon.c
parentLet GIO handle URI building (diff)
downloaddragon-6d21f90e600bf5fd61b5a06cd09bb61b3f54ecbf.tar.gz
dragon-6d21f90e600bf5fd61b5a06cd09bb61b3f54ecbf.tar.bz2
dragon-6d21f90e600bf5fd61b5a06cd09bb61b3f54ecbf.zip
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.
Diffstat (limited to 'dragon.c')
-rw-r--r--dragon.c2
1 files changed, 1 insertions, 1 deletions
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)
bgstack15