diff options
author | Alberto Ruiz <aruiz@gnome.org> | 2011-07-28 00:22:22 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-08-15 18:57:57 -0400 |
commit | a58a2dc0d3c4d7088fa344e054cec71ebabf08a2 (patch) | |
tree | f2d44b3413ba01158706868822480923f7ab5347 /tests/testfontchooserdialog.c | |
parent | e79842ce94a9f0b5d42e4420f414908681fcba63 (diff) | |
download | gtk+-a58a2dc0d3c4d7088fa344e054cec71ebabf08a2.tar.gz |
GtkFontChooserDialog: GtkFontButton now uses GtkFontChooserDialog instead of GtkFontSelectionDialog
Diffstat (limited to 'tests/testfontchooserdialog.c')
-rw-r--r-- | tests/testfontchooserdialog.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/testfontchooserdialog.c b/tests/testfontchooserdialog.c index d242698590..952ec8c8b1 100644 --- a/tests/testfontchooserdialog.c +++ b/tests/testfontchooserdialog.c @@ -23,16 +23,14 @@ int main (int argc, char *argv[]) { - GtkWidget *dialog; - GtkWidget *ok; + GtkWidget *window; gtk_init (&argc, &argv); - dialog = gtk_font_chooser_dialog_new (NULL, NULL); - - gtk_dialog_run (GTK_DIALOG (dialog)); - - gtk_widget_destroy (dialog); + window = gtk_window_new (GTK_WINDOW_TOPLEVEL); + gtk_container_add (GTK_CONTAINER (window), gtk_font_button_new ()); + gtk_widget_show_all (window); + gtk_main (); return 0; } |