From 7fa1133912c7dfe66b278625ee4b2e3764e3aa0d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 2 Apr 2014 01:08:39 -0400 Subject: [PATCH] Add an example of iconic rendering testpopover now shows several examples of icon buttons. https://bugzilla.gnome.org/show_bug.cgi?id=727477 --- tests/popover.ui | 56 +++++++++++++++++++++++++++++++++++++++++++++ tests/testpopover.c | 8 +++++++ 2 files changed, 64 insertions(+) diff --git a/tests/popover.ui b/tests/popover.ui index 74ffdb9b9a..74fa0bfadb 100644 --- a/tests/popover.ui +++ b/tests/popover.ui @@ -1,5 +1,23 @@ +
+ horizontal-buttons + + Cut + top.cut + edit-cut-symbolic + + + Copy + top.copy + edit-copy-symbolic + + + Paste + top.paste + edit-paste-symbolic + +
No action @@ -44,6 +62,21 @@ Item 5b top.action5 +
+ horizontal-buttons + + List + top.set-view + list + view-list-symbolic + + + Grid + top.set-view + grid + view-grid-symbolic + +
Item 5c top.action5 @@ -53,6 +86,29 @@ top.action5
+
+ horizontal-buttons + Format + + Bold + top.bold + + + Italic + top.italic + format-text-italic-symbolic + + + Strikethrough + top.strikethrough + format-text-strikethrough-symbolic + + + Underline + top.underline + format-text-underline-symbolic + +
6666 diff --git a/tests/testpopover.c b/tests/testpopover.c index f602daab0a..2f80e31da0 100644 --- a/tests/testpopover.c +++ b/tests/testpopover.c @@ -9,6 +9,14 @@ activate (GSimpleAction *action, } static GActionEntry entries[] = { + { "cut", activate, NULL, NULL, NULL }, + { "copy", activate, NULL, NULL, NULL }, + { "paste", activate, NULL, NULL, NULL }, + { "bold", NULL, NULL, "false", NULL }, + { "italic", NULL, NULL, "false", NULL }, + { "strikethrough", NULL, NULL, "false", NULL }, + { "underline", NULL, NULL, "false", NULL }, + { "set-view", NULL, "s", "'list'", NULL }, { "action1", activate, NULL, NULL, NULL }, { "action2", NULL, NULL, "true", NULL }, { "action2a", NULL, NULL, "false", NULL },