diff options
author | Alberto Ruiz <aruiz@gnome.org> | 2011-05-11 15:48:21 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-08-15 18:57:55 -0400 |
commit | 4bf22639d13a86f4ab38a4435ef5fc00bc2b4bce (patch) | |
tree | c5b023571bb3c512d28e102e5876858cacd5b832 /tests/testfontchooserdialog.c | |
parent | 334ee81901aabec85bf416b1f2d3814b341049a0 (diff) | |
download | gtk+-4bf22639d13a86f4ab38a4435ef5fc00bc2b4bce.tar.gz |
GtkFontChooser: Expose the new widget in gtk.h and add test cases
Diffstat (limited to 'tests/testfontchooserdialog.c')
-rw-r--r-- | tests/testfontchooserdialog.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/testfontchooserdialog.c b/tests/testfontchooserdialog.c new file mode 100644 index 0000000000..b06ddb59f4 --- /dev/null +++ b/tests/testfontchooserdialog.c @@ -0,0 +1,38 @@ +/* testfontchooserdialog.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; + GtkWidget *ok; + + gtk_init (&argc, &argv); + + dialog = gtk_font_chooser_dialog_new (NULL); + + gtk_dialog_run (GTK_DIALOG (dialog)); + + gtk_widget_destroy (dialog); + + return 0; +} |