[gtk+] reftests: Add test for low mnemonics



commit 3a5669afd04304ab865f3c2c0ba65ab72fc7e84e
Author: Benjamin Otte <otte redhat com>
Date:   Tue May 3 12:05:45 2011 +0200

    reftests: Add test for low mnemonics
    
    Low mnemonics were invisible previously. This tests the fix from
    9bb145a677c3c9fa3266ae6999414f441016d93f

 tests/reftests/Makefile.am          |    2 +
 tests/reftests/quit-mnemonic.ref.ui |   19 +++++++++++++++
 tests/reftests/quit-mnemonic.ui     |   43 +++++++++++++++++++++++++++++++++++
 3 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 07729bf..434da54 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -38,5 +38,7 @@ EXTRA_DIST += \
 	label-small-ellipsized.ui \
 	nonresizable-size.ref.ui \
 	nonresizable-size.ui \
+	quit-mnemonic.ref.ui \
+	quit-mnemonic.ui \
 	simpe.ref.png \
 	simple.ui
diff --git a/tests/reftests/quit-mnemonic.ref.ui b/tests/reftests/quit-mnemonic.ref.ui
new file mode 100644
index 0000000..3c8ff8c
--- /dev/null
+++ b/tests/reftests/quit-mnemonic.ref.ui
@@ -0,0 +1,19 @@
+<?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="type">popup</property>
+    <child>
+      <object class="GtkLabel" id="label1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="label" translatable="yes">Quit
+</property>
+        <attributes>
+          <attribute name="underline" value="low" start="0" end="1"/>
+        </attributes>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/quit-mnemonic.ui b/tests/reftests/quit-mnemonic.ui
new file mode 100644
index 0000000..128e33a
--- /dev/null
+++ b/tests/reftests/quit-mnemonic.ui
@@ -0,0 +1,43 @@
+<?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="type">popup</property>
+    <child>
+      <object class="GtkGrid" id="grid1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <child>
+          <object class="GtkLabel" id="label1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">Quit</property>
+            <attributes>
+              <attribute name="underline" value="low" start="0" end="1"/>
+            </attributes>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="label2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes"> </property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]