summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-02-04 04:26:19 +0100
committerAlexander Larsson <alexl@redhat.com>2020-02-04 16:51:54 +0100
commit138de60ab27691fc5022732566b21634e13d0c3a (patch)
tree8f0a6682d4034133b64b75659e66d1a098394d0b /demos
parent571021cbc1f8480585db3bbe452578c6b4f880d1 (diff)
downloadgtk+-138de60ab27691fc5022732566b21634e13d0c3a.tar.gz
icontheme: Remove GENERIC_FALLBACKS
Instead, rely on people passing fallbacks explicitly. Alternatively, GThemedIcon provides the functionality to create fallbacks, which is what GtkImage and the testsuite now use. That method is slightly better, too, so the expected test results have been updated accordingly.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/clipboard.c2
-rw-r--r--demos/gtk-demo/textview.c2
-rw-r--r--demos/icon-browser/iconbrowserwin.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/demos/gtk-demo/clipboard.c b/demos/gtk-demo/clipboard.c
index 63c6519a9b..7b2705c3f8 100644
--- a/demos/gtk-demo/clipboard.c
+++ b/demos/gtk-demo/clipboard.c
@@ -112,7 +112,7 @@ get_image_paintable (GtkImage *image)
NULL,
48, 1,
gtk_widget_get_direction (GTK_WIDGET (image)),
- GTK_ICON_LOOKUP_GENERIC_FALLBACK);
+ 0);
if (icon == NULL)
return NULL;
return GDK_PAINTABLE (icon);
diff --git a/demos/gtk-demo/textview.c b/demos/gtk-demo/textview.c
index efe46e62be..d69163389a 100644
--- a/demos/gtk-demo/textview.c
+++ b/demos/gtk-demo/textview.c
@@ -140,7 +140,7 @@ insert_text (GtkTextView *view)
NULL,
32, 1,
gtk_widget_get_direction (widget),
- GTK_ICON_LOOKUP_GENERIC_FALLBACK);
+ 0);
texture = gtk_icon_download_texture (icon, NULL);
g_object_unref (icon);
g_assert (texture);
diff --git a/demos/icon-browser/iconbrowserwin.c b/demos/icon-browser/iconbrowserwin.c
index 3a6e1a596a..b8dce9357d 100644
--- a/demos/icon-browser/iconbrowserwin.c
+++ b/demos/icon-browser/iconbrowserwin.c
@@ -372,7 +372,7 @@ get_image_paintable (GtkImage *image)
NULL,
size, 1,
gtk_widget_get_direction (GTK_WIDGET (image)),
- GTK_ICON_LOOKUP_FORCE_SIZE | GTK_ICON_LOOKUP_GENERIC_FALLBACK);
+ GTK_ICON_LOOKUP_FORCE_SIZE);
if (icon == NULL)
return NULL;
return GDK_PAINTABLE (icon);