[gtk/wip/exalm/test: 17/37] tests: Fix testgiconpixbuf test
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/exalm/test: 17/37] tests: Fix testgiconpixbuf test
- Date: Mon, 11 May 2020 15:18:28 +0000 (UTC)
commit 25295d1e17fd014553307de568ceb361ddce111a
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon May 11 04:55:22 2020 +0500
tests: Fix testgiconpixbuf test
Don't use GtkContainer API on GtkWindow.
tests/testgiconpixbuf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/testgiconpixbuf.c b/tests/testgiconpixbuf.c
index 0a52da4b4d..3f698098e2 100644
--- a/tests/testgiconpixbuf.c
+++ b/tests/testgiconpixbuf.c
@@ -50,7 +50,7 @@ main (int argc,
pixbuf = gdk_pixbuf_new_from_file ("apple-red.png", NULL);
toplevel = gtk_window_new ();
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
- gtk_container_add (GTK_CONTAINER (toplevel), hbox);
+ gtk_window_set_child (GTK_WINDOW (toplevel), hbox);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
gtk_container_add (GTK_CONTAINER (hbox), vbox);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]