[gtk+/combo-refactor: 11/48] Adding more "small" submenus to testtreemenu
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/combo-refactor: 11/48] Adding more "small" submenus to testtreemenu
- Date: Wed, 8 Dec 2010 12:38:08 +0000 (UTC)
commit 5957f0314367531ea2430f516692b5e4b18c84a2
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Fri Nov 19 14:59:14 2010 +0900
Adding more "small" submenus to testtreemenu
tests/testtreemenu.c | 32 ++++++++++++++++++++++++++++++--
1 files changed, 30 insertions(+), 2 deletions(-)
---
diff --git a/tests/testtreemenu.c b/tests/testtreemenu.c
index ef86afe..d099f0d 100644
--- a/tests/testtreemenu.c
+++ b/tests/testtreemenu.c
@@ -69,14 +69,42 @@ simple_tree_model (void)
"and I'm not going to answer it",
-1);
- gtk_tree_store_append (store, &iter, NULL);
- gtk_tree_store_set (store, &iter,
+ gtk_tree_store_append (store, &parent, NULL);
+ gtk_tree_store_set (store, &parent,
SIMPLE_COLUMN_NAME, "Whinnie the pooh",
SIMPLE_COLUMN_ICON, "gtk-stop",
SIMPLE_COLUMN_DESCRIPTION, "The most wonderful thing about tiggers, "
"is tiggers are wonderful things",
-1);
+ gtk_tree_store_append (store, &iter, &parent);
+ gtk_tree_store_set (store, &iter,
+ SIMPLE_COLUMN_NAME, "Tigger",
+ SIMPLE_COLUMN_ICON, "gtk-yes",
+ SIMPLE_COLUMN_DESCRIPTION, "Eager",
+ -1);
+
+ gtk_tree_store_append (store, &iter, &parent);
+ gtk_tree_store_set (store, &iter,
+ SIMPLE_COLUMN_NAME, "Owl",
+ SIMPLE_COLUMN_ICON, "gtk-stop",
+ SIMPLE_COLUMN_DESCRIPTION, "Wise",
+ -1);
+
+ gtk_tree_store_append (store, &iter, &parent);
+ gtk_tree_store_set (store, &iter,
+ SIMPLE_COLUMN_NAME, "Eor",
+ SIMPLE_COLUMN_ICON, "gtk-no",
+ SIMPLE_COLUMN_DESCRIPTION, "Depressed",
+ -1);
+
+ gtk_tree_store_append (store, &iter, &parent);
+ gtk_tree_store_set (store, &iter,
+ SIMPLE_COLUMN_NAME, "Piglet",
+ SIMPLE_COLUMN_ICON, "gtk-media-play",
+ SIMPLE_COLUMN_DESCRIPTION, "Insecure",
+ -1);
+
gtk_tree_store_append (store, &iter, NULL);
gtk_tree_store_set (store, &iter,
SIMPLE_COLUMN_NAME, "Aleister Crowley",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]