demos/icon-browser: Add common_cflags to build

And fix the generated warnings
This commit is contained in:
Timm Bäder 2020-03-06 18:53:05 +01:00
parent 5d1e006a95
commit e444d7315c
2 changed files with 3 additions and 0 deletions

View File

@ -383,6 +383,8 @@ get_image_paintable (GtkImage *image)
if (icon == NULL)
return NULL;
return GDK_PAINTABLE (icon);
case GTK_IMAGE_GICON:
case GTK_IMAGE_EMPTY:
default:
g_warning ("Image storage type %d not handled",
gtk_image_get_storage_type (image));

View File

@ -11,6 +11,7 @@ iconbrowser_resources = gnome.compile_resources('iconbrowser_resources',
executable('gtk4-icon-browser',
iconbrowser_sources, iconbrowser_resources,
c_args: common_cflags,
dependencies: libgtk_dep,
include_directories: confinc,
gui_app: true,