From e444d7315c723f173591c20634a550f10a1467d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 6 Mar 2020 18:53:05 +0100 Subject: [PATCH] demos/icon-browser: Add common_cflags to build And fix the generated warnings --- demos/icon-browser/iconbrowserwin.c | 2 ++ demos/icon-browser/meson.build | 1 + 2 files changed, 3 insertions(+) diff --git a/demos/icon-browser/iconbrowserwin.c b/demos/icon-browser/iconbrowserwin.c index 471a7d1bc2..858e246c5e 100644 --- a/demos/icon-browser/iconbrowserwin.c +++ b/demos/icon-browser/iconbrowserwin.c @@ -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)); diff --git a/demos/icon-browser/meson.build b/demos/icon-browser/meson.build index a3ec8664fa..6a8cd80e40 100644 --- a/demos/icon-browser/meson.build +++ b/demos/icon-browser/meson.build @@ -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,