tests: Drop testemblems
authorMatthias Clasen <mclasen@redhat.com>
Thu, 14 May 2020 23:44:54 +0000 (19:44 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 14 May 2020 23:44:54 +0000 (19:44 -0400)
We no longer support emblems on icons.

See #2738

tests/meson.build
tests/testemblems.c [deleted file]

index 15768ca5e7f6af00c080908e8a56ad704487a5d6..b02f4f015d7c7b8bd441f0fe7916fbcc35c8906f 100644 (file)
@@ -27,7 +27,6 @@ gtk_tests = [
   ['testdnd2'],
   ['testdnd3'],
   ['testellipsise'],
-  ['testemblems'],
   ['testentrycompletion'],
   ['testentryicons'],
   ['testfilechooser'],
diff --git a/tests/testemblems.c b/tests/testemblems.c
deleted file mode 100644 (file)
index d94b56c..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#include <gtk/gtk.h>
-
-int main (int argc, char **argv)
-{
-       GtkWidget *window;
-       GtkWidget *button;
-       GtkWidget *grid;
-        GIcon *icon;
-        GIcon *icon2;
-
-       gtk_init ();
-
-       window = gtk_window_new ();
-
-       grid = gtk_grid_new ();
-       gtk_grid_set_row_spacing (GTK_GRID (grid), 12);
-       gtk_grid_set_column_spacing (GTK_GRID (grid), 12);
-        gtk_window_set_child (GTK_WINDOW (window), grid);
-
-        icon = g_themed_icon_new ("folder");
-        button = gtk_image_new_from_gicon (icon);
-       gtk_grid_attach (GTK_GRID (grid), button, 1, 1, 1, 1);
-
-        icon2 = g_themed_icon_new ("folder-symbolic");
-        button = gtk_image_new_from_gicon (icon2);
-       gtk_grid_attach (GTK_GRID (grid), button, 2, 1, 1, 1);
-
-       icon = g_emblemed_icon_new (icon, g_emblem_new (g_themed_icon_new ("emblem-new")));
-        button = gtk_image_new_from_gicon (icon);
-       gtk_grid_attach (GTK_GRID (grid), button, 1, 2, 1, 1);
-
-       icon2 = g_emblemed_icon_new (icon2, g_emblem_new (g_themed_icon_new ("emblem-new")));
-        button = gtk_image_new_from_gicon (icon2);
-       gtk_grid_attach (GTK_GRID (grid), button, 2, 2, 1, 1);
-
-       gtk_widget_show (window);
-
-        while (TRUE)
-                g_main_context_iteration (NULL, TRUE);
-
-       return 0;
-}