]> Pileus Git - ~andy/gtk/commitdiff
GtkFontChooser: Added a test program
authorAlberto Ruiz <aruiz@gnome.org>
Sun, 17 Apr 2011 00:58:29 +0000 (01:58 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 15 Aug 2011 22:57:52 +0000 (18:57 -0400)
tests/Makefile.am
tests/testfontselection.c [new file with mode: 0644]

index 7bed9b251dcc4e17f4aa393dc1a536f49e54d826..2585029aa16abf2df1181fcb806cac4c6e506b87 100644 (file)
@@ -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 (file)
index 0000000..04b777d
--- /dev/null
@@ -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;
+}