summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-03-06 18:53:05 +0100
committerTimm Bäder <mail@baedert.org>2020-03-06 18:53:05 +0100
commite444d7315c723f173591c20634a550f10a1467d2 (patch)
treeaf41e8f206f05547ea9cdabcec989c0e24b626d5
parent5d1e006a95cb6b29fbf9268c965c0012a20b2c04 (diff)
downloadgtk+-e444d7315c723f173591c20634a550f10a1467d2.tar.gz
demos/icon-browser: Add common_cflags to build
And fix the generated warnings
-rw-r--r--demos/icon-browser/iconbrowserwin.c2
-rw-r--r--demos/icon-browser/meson.build1
2 files changed, 3 insertions, 0 deletions
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,