summaryrefslogtreecommitdiff
path: root/tests/testfontselectiondialog.c
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@gnome.org>2011-05-04 00:29:38 +0100
committerMatthias Clasen <mclasen@redhat.com>2011-08-15 18:57:54 -0400
commitc34a2d65d0fe261661082d6bec5366005ab99e2c (patch)
treecbd1616ddc0f09d9f10ce3cc85dd42d788fc99da /tests/testfontselectiondialog.c
parent5eb614a25bdfb449cfe373aecf351c1d35bd8197 (diff)
downloadgtk+-c34a2d65d0fe261661082d6bec5366005ab99e2c.tar.gz
GtkFontChooser: Use GTK_DISABLE_DEPRECATED on the test code
Diffstat (limited to 'tests/testfontselectiondialog.c')
-rw-r--r--tests/testfontselectiondialog.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/testfontselectiondialog.c b/tests/testfontselectiondialog.c
index 3093964ed1..fafee27ca7 100644
--- a/tests/testfontselectiondialog.c
+++ b/tests/testfontselectiondialog.c
@@ -24,11 +24,20 @@ int
main (int argc, char *argv[])
{
GtkWidget *dialog;
+ GtkWidget *ok;
+ GtkWidget *select;
gtk_init (&argc, &argv);
dialog = gtk_font_selection_dialog_new (NULL);
+#ifndef GTK_DISABLE_DEPRECATED
+ ok = gtk_font_selection_dialog_get_ok_button (GTK_FONT_SELECTION_DIALOG (dialog));
+ select = gtk_font_selection_dialog_get_select_button (GTK_FONT_SELECTION_DIALOG (dialog));
+
+ g_assert (ok == select);
+#endif
+
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);