summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2011-06-26 09:15:31 +0200
committerJens Georg <mail@jensge.org>2011-07-20 19:57:29 +0200
commit541f3752f89899c6ecd775abcfbd89afbb6fc403 (patch)
tree65d747e87541f3318401b0fc9d2718cc9ac26279 /tests
parentcf2a3298983f22a06b1e5785a431467a0f3105e4 (diff)
downloadgssdp-541f3752f89899c6ecd775abcfbd89afbb6fc403.tar.gz
Deprecate main_context property.
Use g_main_context_get_thread_default() instead
Diffstat (limited to 'tests')
-rw-r--r--tests/test-browser.c6
-rw-r--r--tests/test-publish.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/tests/test-browser.c b/tests/test-browser.c
index 0b88ba5..4157fca 100644
--- a/tests/test-browser.c
+++ b/tests/test-browser.c
@@ -20,6 +20,7 @@
*/
#include <libgssdp/gssdp.h>
+#include <gio/gio.h>
#include <stdlib.h>
static void
@@ -58,7 +59,10 @@ main (int argc,
g_type_init ();
error = NULL;
- client = gssdp_client_new (NULL, NULL, &error);
+ client = g_initable_new (GSSDP_TYPE_CLIENT,
+ NULL,
+ &error,
+ NULL);
if (error) {
g_printerr ("Error creating the GSSDP client: %s\n",
error->message);
diff --git a/tests/test-publish.c b/tests/test-publish.c
index 89c62cc..52889fb 100644
--- a/tests/test-publish.c
+++ b/tests/test-publish.c
@@ -20,6 +20,7 @@
*/
#include <libgssdp/gssdp.h>
+#include <gio/gio.h>
#include <stdlib.h>
int
@@ -34,7 +35,10 @@ main (int argc,
g_type_init ();
error = NULL;
- client = gssdp_client_new (NULL, NULL, &error);
+ client = g_initable_new (GSSDP_TYPE_CLIENT,
+ NULL,
+ &error,
+ NULL);
if (error) {
g_printerr ("Error creating the GSSDP client: %s\n",
error->message);