]> Pileus Git - ~andy/gtk/commitdiff
reftests: Add test for low mnemonics
authorBenjamin Otte <otte@redhat.com>
Tue, 3 May 2011 10:05:45 +0000 (12:05 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 3 May 2011 13:40:49 +0000 (15:40 +0200)
Low mnemonics were invisible previously. This tests the fix from
9bb145a677c3c9fa3266ae6999414f441016d93f

tests/reftests/Makefile.am
tests/reftests/quit-mnemonic.ref.ui [new file with mode: 0644]
tests/reftests/quit-mnemonic.ui [new file with mode: 0644]

index 07729bf32c6eac8a0b83c395324ca4f6a3adedaa..434da54be125b2d05a04e76e5e5ebaa351cb30df 100644 (file)
@@ -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 (file)
index 0000000..3c8ff8c
--- /dev/null
@@ -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 (file)
index 0000000..128e33a
--- /dev/null
@@ -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>