[libdazzle] tests: remove add theme API usage from test



commit 9e43b7793dacd0b8108baeb25f87af9766eb7127
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jun 12 19:04:14 2017 -0700

    tests: remove add theme API usage from test
    
    We are going to drop this and force loading themes from files rather than
    deal with in-memory mutation and construction of themes.
    
    This is simpler in the long run and safer to ensure we get correct.

 tests/test-shortcuts.c |   18 +-----------------
 1 files changed, 1 insertions(+), 17 deletions(-)
---
diff --git a/tests/test-shortcuts.c b/tests/test-shortcuts.c
index c435204..d8a5449 100644
--- a/tests/test-shortcuts.c
+++ b/tests/test-shortcuts.c
@@ -110,23 +110,7 @@ main (gint argc,
                     G_CALLBACK (on_current_chord_notify),
                     &app);
 
-  if (argc > 1 && g_file_test (argv[1], G_FILE_TEST_IS_REGULAR))
-    {
-      g_autoptr(GError) error = NULL;
-      const gchar *path = argv[1];
-
-      theme = dzl_shortcut_theme_new (NULL);
-
-      if (!dzl_shortcut_theme_load_from_path (theme, path, NULL, &error))
-        g_error ("%s", error->message);
-
-      dzl_shortcut_manager_add_theme (manager, theme);
-      dzl_shortcut_manager_set_theme (manager, theme);
-    }
-  else
-    {
-      theme = g_object_ref (dzl_shortcut_manager_get_theme (manager));
-    }
+  theme = g_object_ref (dzl_shortcut_manager_get_theme (manager));
 
   app.header = g_object_new (GTK_TYPE_HEADER_BAR,
                              "show-close-button", TRUE,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]