st/test-theme: Don't initialize GTK
St no longer requires GTK to be initialized, so this is no longer needed (and pulls in an unnecessary GTK dependency). Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2733>
This commit is contained in:
parent
fb927d5196
commit
a53d7faf9d
@ -199,7 +199,7 @@ if get_option('tests')
|
|||||||
test_theme = executable('test-theme',
|
test_theme = executable('test-theme',
|
||||||
sources: 'test-theme.c',
|
sources: 'test-theme.c',
|
||||||
c_args: st_cflags,
|
c_args: st_cflags,
|
||||||
dependencies: [mutter_test_dep, gtk_dep, libxml_dep],
|
dependencies: [mutter_test_dep, libxml_dep],
|
||||||
build_rpath: mutter_typelibdir,
|
build_rpath: mutter_typelibdir,
|
||||||
link_with: libst
|
link_with: libst
|
||||||
)
|
)
|
||||||
|
@ -28,8 +28,6 @@
|
|||||||
#include <meta-test/meta-context-test.h>
|
#include <meta-test/meta-context-test.h>
|
||||||
#include <meta/meta-backend.h>
|
#include <meta/meta-backend.h>
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
|
||||||
|
|
||||||
static ClutterActor *stage;
|
static ClutterActor *stage;
|
||||||
static StThemeNode *root;
|
static StThemeNode *root;
|
||||||
static StThemeNode *group1;
|
static StThemeNode *group1;
|
||||||
@ -549,8 +547,6 @@ main (int argc, char **argv)
|
|||||||
GFile *file;
|
GFile *file;
|
||||||
g_autofree char *cwd = NULL;
|
g_autofree char *cwd = NULL;
|
||||||
|
|
||||||
gtk_init (&argc, &argv);
|
|
||||||
|
|
||||||
/* meta_init() cds to $HOME */
|
/* meta_init() cds to $HOME */
|
||||||
cwd = g_get_current_dir ();
|
cwd = g_get_current_dir ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user