[gtk/prop-list: 46/83] testfilechooser: Test the choice apis
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/prop-list: 46/83] testfilechooser: Test the choice apis
- Date: Mon, 23 Dec 2019 05:44:38 +0000 (UTC)
commit 9a6d48047deed4cd2599fce5d32ee6861440a575
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 21 20:57:28 2019 -0500
testfilechooser: Test the choice apis
tests/testfilechooser.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c
index d7a3562ae3..25a7b4ad4e 100644
--- a/tests/testfilechooser.c
+++ b/tests/testfilechooser.c
@@ -677,9 +677,11 @@ main (int argc, char **argv)
/* Extra widget */
- extra = gtk_check_button_new_with_mnemonic ("Lar_t whoever asks about this button");
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (extra), TRUE);
- gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (dialog), extra);
+ gtk_file_chooser_add_choice (GTK_FILE_CHOOSER (dialog), "choice1",
+ "Choose one:",
+ (const char *[]){"one", "two", "three", NULL},
+ (const char *[]){"One", "Two", "Three", NULL});
+ gtk_file_chooser_set_choice (GTK_FILE_CHOOSER (dialog), "choice1", "two");
/* Shortcuts */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]