diff options
author | Michael Homer <mwh@mwh.geek.nz> | 2018-04-27 11:28:44 +1200 |
---|---|---|
committer | Michael Homer <mwh@mwh.geek.nz> | 2018-04-27 11:28:44 +1200 |
commit | 6d21f90e600bf5fd61b5a06cd09bb61b3f54ecbf (patch) | |
tree | ec60c287f836d91986aa9ada2866ebcdd38a268a /dragon.c | |
parent | Let GIO handle URI building (diff) | |
download | dragon-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |