[gtk+/grid-widget-2: 3/18] Add a grid test skeleton
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/grid-widget-2: 3/18] Add a grid test skeleton
- Date: Mon, 11 Oct 2010 03:58:25 +0000 (UTC)
commit 1a430deec781b6e10a064ed71730ee7d5be51552
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Sep 27 10:45:57 2010 -0400
Add a grid test skeleton
tests/Makefile.am | 6 ++++++
tests/testgrid.c | 21 +++++++++++++++++++++
2 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 4fa4321..a20ab40 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -47,6 +47,7 @@ noinst_PROGRAMS = $(TEST_PROGS) \
testfilechooser \
testfilechooserbutton \
testframe \
+ testgrid \
testgtk \
testheightforwidth \
testiconview \
@@ -136,6 +137,7 @@ testerrors_DEPENDENCIES = $(TEST_DEPS)
testfilechooser_DEPENDENCIES = $(TEST_DEPS)
testfilechooserbutton_DEPENDENCIES = $(TEST_DEPS)
testframe_DEPENDENCIES = $(TEST_DEPS)
+testgrid_DEPENDENCIES = $(TEST_DEPS)
testgtk_DEPENDENCIES = $(TEST_DEPS)
testinput_DEPENDENCIES = $(TEST_DEPS)
testimage_DEPENDENCIES = $(TEST_DEPS)
@@ -201,6 +203,7 @@ testerrors_LDADD = $(LDADDS)
testfilechooser_LDADD = $(LDADDS)
testfilechooserbutton_LDADD = $(LDADDS)
testframe_LDADD = $(LDADDS)
+testgrid_LDADD = $(LDADDS)
testgtk_LDADD = $(LDADDS)
testheightforwidth_LDADD = $(LDADDS)
testicontheme_LDADD = $(LDADDS)
@@ -265,6 +268,9 @@ testfilechooserbutton_SOURCES = \
prop-editor.c \
testfilechooserbutton.c
+testgrid_SOURCES = \
+ testgrid.c
+
testgtk_SOURCES = \
prop-editor.c \
testgtk.c
diff --git a/tests/testgrid.c b/tests/testgrid.c
new file mode 100644
index 0000000..0f7a606
--- /dev/null
+++ b/tests/testgrid.c
@@ -0,0 +1,21 @@
+#include <gtk/gtk.h>
+
+int
+main (int argc, char *argv[])
+{
+ GtkWidget *window;
+ GtkWidget *grid;
+
+ gtk_init (&argc, &argv);
+
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ grid = gtk_grid_new ();
+
+ gtk_container_add (GTK_CONTAINER (window), grid);
+
+ gtk_widget_show_all (window);
+
+ gtk_main ();
+
+ return 0;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]