[gtk+/font-chooser: 32/86] GtkFontChooser: Added a test program



commit 6b616d416875f2acc707799c7e6b9d86c8a74a41
Author: Alberto Ruiz <aruiz gnome org>
Date:   Sun Apr 17 01:58:29 2011 +0100

    GtkFontChooser: Added a test program

 tests/Makefile.am         |    6 ++++++
 tests/testfontselection.c |   37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7bed9b2..2585029 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -50,6 +50,7 @@ noinst_PROGRAMS =  $(TEST_PROGS)	\
 	testentryicons			\
 	testfilechooser			\
 	testfilechooserbutton		\
+	testfontselection               \
 	testframe			\
 	testgeometry			\
 	testgiconpixbuf			\
@@ -161,6 +162,7 @@ testentryicons_DEPENDENCIES = $(TEST_DEPS)
 testerrors_DEPENDENCIES = $(TEST_DEPS)
 testfilechooser_DEPENDENCIES = $(TEST_DEPS)
 testfilechooserbutton_DEPENDENCIES = $(TEST_DEPS)
+testfontselection_DEPENDENCIES = $(TEST_DEPS)
 testframe_DEPENDENCIES = $(TEST_DEPS)
 testgeometry_DEPENDENCIES = $(TEST_DEPS)
 testgiconpixbuf = $(TEST_DEPS)
@@ -249,6 +251,7 @@ testentryicons_LDADD = $(LDADDS)
 testerrors_LDADD = $(LDADDS)
 testfilechooser_LDADD = $(LDADDS)
 testfilechooserbutton_LDADD = $(LDADDS)
+testfontselection_LDADD = $(LDADDS)
 testframe_LDADD = $(LDADDS)
 testgeometry_LDADD = $(LDADDS)
 testgiconpixbuf_LDADD = $(LDADDS)
@@ -342,6 +345,9 @@ testfilechooserbutton_SOURCES =	\
 	prop-editor.c		\
 	testfilechooserbutton.c
 
+testfontselection_SOURCES = \
+	testfontselection.c
+
 testgrid_SOURCES =	\
 	testgrid.c
 
diff --git a/tests/testfontselection.c b/tests/testfontselection.c
new file mode 100644
index 0000000..04b777d
--- /dev/null
+++ b/tests/testfontselection.c
@@ -0,0 +1,37 @@
+/* testfontselection.c
+ * Copyright (C) 2011 Alberto Ruiz <aruiz gnome org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include "config.h"
+
+#include <gtk/gtk.h>
+
+
+int
+main (int argc, char *argv[])
+{
+  GtkWidget *dialog;
+  
+  gtk_init (NULL, NULL);
+    
+  dialog = gtk_font_selection_dialog_new (NULL);
+  gtk_dialog_run (GTK_DIALOG (dialog));
+
+  gtk_widget_destroy (dialog);
+  return 0;
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]