From: Alberto Ruiz Date: Sun, 17 Apr 2011 00:58:29 +0000 (+0100) Subject: GtkFontChooser: Added a test program X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=077d897fa4f520cea2879ec88fac65799577de0f;p=~andy%2Fgtk GtkFontChooser: Added a test program --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 7bed9b251..2585029aa 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 000000000..04b777db7 --- /dev/null +++ b/tests/testfontselection.c @@ -0,0 +1,37 @@ +/* testfontselection.c + * Copyright (C) 2011 Alberto Ruiz + * + * 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 + + +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; +}