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



commit 60dfa6debf43195a2d88e9452b06b964e40eb274
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 8c87a51..96ee3a0 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -48,6 +48,7 @@ noinst_PROGRAMS =  $(TEST_PROGS)	\
 	testentryicons			\
 	testfilechooser			\
 	testfilechooserbutton		\
+	testfontselection               \
 	testframe			\
 	testgeometry			\
 	testgiconpixbuf			\
@@ -152,6 +153,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)
@@ -232,6 +234,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)
@@ -315,6 +318,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]