summaryrefslogtreecommitdiff
path: root/tests/visuals
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-08-20 19:16:32 +0200
committerCosimo Cecchi <cosimoc@gnome.org>2012-08-20 19:25:08 +0200
commita28e1a22a6356bc372bbc8486f2762e6c9b6caa4 (patch)
tree98af6c32587604c9947284967b958cf65058aade /tests/visuals
parent710674720e23dd0d4d53264c040a020f20b28ad5 (diff)
downloadgtk+-a28e1a22a6356bc372bbc8486f2762e6c9b6caa4.tar.gz
visuals: add a visual test for suggested-action buttons
And selection-mode toolbars.
Diffstat (limited to 'tests/visuals')
-rw-r--r--tests/visuals/Makefile.am3
-rw-r--r--tests/visuals/suggested-action-buttons.ui90
2 files changed, 92 insertions, 1 deletions
diff --git a/tests/visuals/Makefile.am b/tests/visuals/Makefile.am
index 538daef5f5..d8699347c3 100644
--- a/tests/visuals/Makefile.am
+++ b/tests/visuals/Makefile.am
@@ -29,4 +29,5 @@ EXTRA_DIST = \
linked-buttons-horizontal.ui \
linked-buttons-vertical.ui \
osd-toolbars.ui \
- primary-toolbar.ui
+ primary-toolbar.ui \
+ suggested-action-buttons.ui
diff --git a/tests/visuals/suggested-action-buttons.ui b/tests/visuals/suggested-action-buttons.ui
new file mode 100644
index 0000000000..2ebd323e7d
--- /dev/null
+++ b/tests/visuals/suggested-action-buttons.ui
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkWindow" id="window1">
+ <property name="can_focus">False</property>
+ <property name="default_width">600</property>
+ <property name="default_height">600</property>
+ <child>
+ <object class="GtkBox" id="containerbox">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="valign">center</property>
+ <property name="halign">center</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkBox" id="box1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">horizontal</property>
+ <property name="valign">center</property>
+ <property name="halign">center</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkButton" id="button1">
+ <property name="label" translatable="yes">Hi, I am a button</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkToggleButton" id="button2">
+ <property name="label" translatable="yes">And I'm the suggested action</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ <style>
+ <class name="suggested-action"/>
+ </style>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkToolbar" id="toolbar">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">horizontal</property>
+ <style>
+ <class name="selection-mode"/>
+ <class name="menubar"/>
+ </style>
+ <child>
+ <object class="GtkToggleToolButton" id="toolbutton7">
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Inside selection mode</property>
+ <property name="use_underline">True</property>
+ <property name="is_important">True</property>
+ <style>
+ <class name="suggested-action"/>
+ </style>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="homogeneous">True</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>