summaryrefslogtreecommitdiff
path: root/testsuite/gdk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-12-28 08:53:22 -0500
committerMatthias Clasen <mclasen@redhat.com>2017-01-19 13:50:17 -0500
commit2c7e567f05eb31aa3b78ed83fd92a09153525210 (patch)
treea37b930ca56af69554ef2f8c49e3efbb56fcab00 /testsuite/gdk
parent4d7fa52fe9e41f7d3f1b54b6f82bd28f99b7ec92 (diff)
downloadgtk+-2c7e567f05eb31aa3b78ed83fd92a09153525210.tar.gz
Update callers
Adapt all our tests and examples to the new initialization api.
Diffstat (limited to 'testsuite/gdk')
-rw-r--r--testsuite/gdk/Makefile.am4
-rw-r--r--testsuite/gdk/cairo.c4
-rw-r--r--testsuite/gdk/cursor.c4
-rw-r--r--testsuite/gdk/display.c10
-rw-r--r--testsuite/gdk/encoding.c4
-rw-r--r--testsuite/gdk/keysyms.c4
-rw-r--r--testsuite/gdk/rectangle.c4
-rw-r--r--testsuite/gdk/seat.c4
8 files changed, 19 insertions, 19 deletions
diff --git a/testsuite/gdk/Makefile.am b/testsuite/gdk/Makefile.am
index b8cbca3e12..03cb577468 100644
--- a/testsuite/gdk/Makefile.am
+++ b/testsuite/gdk/Makefile.am
@@ -5,13 +5,13 @@ NULL=
noinst_PROGRAMS = $(TEST_PROGS)
AM_CPPFLAGS = \
- $(GDK_DEP_CFLAGS) \
+ $(GTK_DEP_CFLAGS) \
-I$(top_srcdir) \
-I$(top_builddir)/gdk \
$(NULL)
LDADD = \
- $(GDK_DEP_LIBS) \
+ $(GTK_DEP_LIBS) \
$(top_builddir)/gtk/libgtk-4.la \
$(NULL)
diff --git a/testsuite/gdk/cairo.c b/testsuite/gdk/cairo.c
index 77be879c97..071ca33767 100644
--- a/testsuite/gdk/cairo.c
+++ b/testsuite/gdk/cairo.c
@@ -1,4 +1,4 @@
-#include <gdk/gdk.h>
+#include <gtk/gtk.h>
static void
test_set_source_big_pixbuf (void)
@@ -32,7 +32,7 @@ int
main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
- gdk_init (&argc, &argv);
+ gtk_init ();
g_test_add_func ("/drawing/set-source-big-pixbuf", test_set_source_big_pixbuf);
diff --git a/testsuite/gdk/cursor.c b/testsuite/gdk/cursor.c
index 5ae3bc064e..ec2997a600 100644
--- a/testsuite/gdk/cursor.c
+++ b/testsuite/gdk/cursor.c
@@ -1,4 +1,4 @@
-#include <gdk/gdk.h>
+#include <gtk/gtk.h>
static char *cursor_names[] = {
"none",
@@ -76,7 +76,7 @@ main (int argc, char *argv[])
char *test_name;
g_test_init (&argc, &argv, NULL);
- gdk_init (NULL, NULL);
+ gtk_init ();
for (i = 0; i < G_N_ELEMENTS (cursor_names); i++)
{
diff --git a/testsuite/gdk/display.c b/testsuite/gdk/display.c
index 297c8e8ae4..c5b3b1641a 100644
--- a/testsuite/gdk/display.c
+++ b/testsuite/gdk/display.c
@@ -1,6 +1,6 @@
#include <stdlib.h>
-#include <gdk/gdk.h>
+#include <gtk/gtk.h>
static void
test_unset_display_subprocess1 (void)
@@ -9,7 +9,7 @@ test_unset_display_subprocess1 (void)
g_unsetenv ("DISPLAY");
- g_assert (!gdk_init_check (NULL, NULL));
+ g_assert (!gtk_init_check ());
manager = gdk_display_manager_get ();
g_assert (manager != NULL);
g_assert (gdk_display_manager_get_default_display (manager) == NULL);
@@ -20,7 +20,7 @@ test_unset_display_subprocess2 (void)
{
g_unsetenv ("DISPLAY");
- gdk_init (NULL, NULL);
+ gtk_init ();
}
static void
@@ -41,7 +41,7 @@ test_bad_display_subprocess1 (void)
g_setenv ("DISPLAY", "poo", TRUE);
- g_assert (!gdk_init_check (NULL, NULL));
+ g_assert (!gtk_init_check ());
manager = gdk_display_manager_get ();
g_assert (manager != NULL);
g_assert (gdk_display_manager_get_default_display (manager) == NULL);
@@ -51,7 +51,7 @@ static void
test_bad_display_subprocess2 (void)
{
g_setenv ("DISPLAY", "poo", TRUE);
- gdk_init (NULL, NULL);
+ gtk_init ();
}
static void
diff --git a/testsuite/gdk/encoding.c b/testsuite/gdk/encoding.c
index 6ae96095d6..016d1cee28 100644
--- a/testsuite/gdk/encoding.c
+++ b/testsuite/gdk/encoding.c
@@ -1,4 +1,4 @@
-#include <gdk/gdk.h>
+#include <gtk/gtk.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/x11/gdkx.h>
#endif
@@ -38,7 +38,7 @@ int
main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
- gdk_init (&argc, &argv);
+ gtk_init ();
g_test_add_func ("/encoding/to-text-list", test_to_text_list);
diff --git a/testsuite/gdk/keysyms.c b/testsuite/gdk/keysyms.c
index 7d786f557c..dc94faec23 100644
--- a/testsuite/gdk/keysyms.c
+++ b/testsuite/gdk/keysyms.c
@@ -1,5 +1,5 @@
#include <locale.h>
-#include <gdk/gdk.h>
+#include <gtk/gtk.h>
static void
test_keysyms_basic (void)
@@ -59,7 +59,7 @@ int main (int argc, char *argv[])
setlocale (LC_ALL, "");
g_test_init (&argc, &argv, NULL);
- gdk_init (&argc, &argv);
+ gtk_init ();
g_test_add_func ("/keysyms/basic", test_keysyms_basic);
g_test_add_func ("/keysyms/void", test_keysyms_void);
diff --git a/testsuite/gdk/rectangle.c b/testsuite/gdk/rectangle.c
index 6089ff6ba3..1b9cbe9135 100644
--- a/testsuite/gdk/rectangle.c
+++ b/testsuite/gdk/rectangle.c
@@ -1,4 +1,4 @@
-#include <gdk/gdk.h>
+#include <gtk/gtk.h>
static void
test_rectangle_equal (void)
@@ -70,7 +70,7 @@ main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
- gdk_init (NULL, NULL);
+ gtk_init ();
g_test_bug_base ("http://bugzilla.gnome.org/");
diff --git a/testsuite/gdk/seat.c b/testsuite/gdk/seat.c
index 326b70dc89..8fadb82a6f 100644
--- a/testsuite/gdk/seat.c
+++ b/testsuite/gdk/seat.c
@@ -1,4 +1,4 @@
-#include <gdk/gdk.h>
+#include <gtk/gtk.h>
static void
test_list_seats (void)
@@ -109,7 +109,7 @@ main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
- gdk_init (NULL, NULL);
+ gtk_init ();
g_test_bug_base ("http://bugzilla.gnome.org/");