[gtk+/popover-menu-buttons: 5/5] Add an example of iconic rendering
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/popover-menu-buttons: 5/5] Add an example of iconic rendering
- Date: Wed, 2 Apr 2014 05:10:39 +0000 (UTC)
commit 32b245aa0b669f73a2d40f4ada4f642032c2c64f
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Apr 2 01:08:39 2014 -0400
Add an example of iconic rendering
tests/popover.ui | 41 +++++++++++++++++++++++++++++++++++++++++
tests/testpopover.c | 7 +++++++
2 files changed, 48 insertions(+), 0 deletions(-)
---
diff --git a/tests/popover.ui b/tests/popover.ui
index 74ffdb9..5bc154d 100644
--- a/tests/popover.ui
+++ b/tests/popover.ui
@@ -1,6 +1,24 @@
<interface>
<menu id="menu">
<section>
+ <attribute name="display-hint">iconic</attribute>
+ <item>
+ <attribute name="label">Cut</attribute>
+ <attribute name="action">top.cut</attribute>
+ <attribute name="icon">edit-cut-symbolic</attribute>
+ </item>
+ <item>
+ <attribute name="label">Copy</attribute>
+ <attribute name="action">top.copy</attribute>
+ <attribute name="icon">edit-copy-symbolic</attribute>
+ </item>
+ <item>
+ <attribute name="label">Paste</attribute>
+ <attribute name="action">top.paste</attribute>
+ <attribute name="icon">edit-paste-symbolic</attribute>
+ </item>
+ </section>
+ <section>
<item>
<attribute name="label">No action</attribute>
<attribute name="action">action1</attribute>
@@ -54,6 +72,29 @@
</item>
</section>
<section>
+ <attribute name="display-hint">iconic</attribute>
+ <item>
+ <attribute name="label">Left</attribute>
+ <attribute name="action">top.justify-left</attribute>
+ <attribute name="icon">format-justify-left-symbolic</attribute>
+ </item>
+ <item>
+ <attribute name="label">Center</attribute>
+ <attribute name="action">top.justify-center</attribute>
+ <attribute name="icon">format-justify-center-symbolic</attribute>
+ </item>
+ <item>
+ <attribute name="label">Right</attribute>
+ <attribute name="action">top.justify-right</attribute>
+ <attribute name="icon">format-justify-right-symbolic</attribute>
+ </item>
+ <item>
+ <attribute name="label">Fill</attribute>
+ <attribute name="action">top.justify-fill</attribute>
+ <attribute name="icon">format-justify-fill-symbolic</attribute>
+ </item>
+ </section>
+ <section>
<attribute name="label">6666</attribute>
<item>
<attribute name="label">Item 6</attribute>
diff --git a/tests/testpopover.c b/tests/testpopover.c
index f602daa..b33e042 100644
--- a/tests/testpopover.c
+++ b/tests/testpopover.c
@@ -9,6 +9,13 @@ activate (GSimpleAction *action,
}
static GActionEntry entries[] = {
+ { "cut", activate, NULL, NULL, NULL },
+ { "copy", activate, NULL, NULL, NULL },
+ { "paste", activate, NULL, NULL, NULL },
+ { "justify-left", activate, NULL, NULL, NULL },
+ { "justify-center", activate, NULL, NULL, NULL },
+ { "justify-right", activate, NULL, NULL, NULL },
+ { "justify-fill", activate, NULL, NULL, NULL },
{ "action1", activate, NULL, NULL, NULL },
{ "action2", NULL, NULL, "true", NULL },
{ "action2a", NULL, NULL, "false", NULL },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]