From 516f1e180899dfe47426381b59bfa4eb8a905e3e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 24 Apr 2014 01:06:14 -0400 Subject: [PATCH] Add missing templates to testdialog This makes the template test cases not crash. The templates also serve to test the new action widget support. https://bugzilla.gnome.org/show_bug.cgi?id=728846 --- tests/mydialog.ui | 23 +++++++++++++++++++++++ tests/mydialog2.ui | 14 ++++++++++++++ tests/testdialog.c | 2 -- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 tests/mydialog.ui create mode 100644 tests/mydialog2.ui diff --git a/tests/mydialog.ui b/tests/mydialog.ui new file mode 100644 index 0000000000..b6766e0794 --- /dev/null +++ b/tests/mydialog.ui @@ -0,0 +1,23 @@ + + + diff --git a/tests/mydialog2.ui b/tests/mydialog2.ui new file mode 100644 index 0000000000..aa1f990358 --- /dev/null +++ b/tests/mydialog2.ui @@ -0,0 +1,14 @@ + + + diff --git a/tests/testdialog.c b/tests/testdialog.c index 59d76381b3..e38cc0cd2d 100644 --- a/tests/testdialog.c +++ b/tests/testdialog.c @@ -216,7 +216,6 @@ show_dialog_from_template (GtkWindow *parent) "transient-for", parent, NULL); - add_buttons (dialog); add_content (dialog); gtk_dialog_run (GTK_DIALOG (dialog)); @@ -238,7 +237,6 @@ show_dialog_flex_template (GtkWindow *parent) "use-header-bar", use_header, NULL); - add_buttons (dialog); add_content (dialog); gtk_dialog_run (GTK_DIALOG (dialog));