[gnome-taquin/arnaudb/wip/gtk4: 54/56] No more Atk.




commit 9272d60d6f91d0e168b36224994bf53d41281f4f
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Sep 29 18:02:00 2020 +0200

    No more Atk.

 data/ui/base-headerbar.ui | 12 ++++++------
 data/ui/history-button.ui |  8 ++++----
 src/history-button.vala   |  5 +++++
 3 files changed, 15 insertions(+), 10 deletions(-)
---
diff --git a/data/ui/base-headerbar.ui b/data/ui/base-headerbar.ui
index f59e4b7..5cd5cc7 100644
--- a/data/ui/base-headerbar.ui
+++ b/data/ui/base-headerbar.ui
@@ -90,14 +90,14 @@
             <style>
               <class name="image-button"/>
             </style>
-            <child internal-child="accessible">
-              <object class="AtkObject">
+<!--            <child internal-child="accessible">-->
+<!--              <object class="AtkObject">-->
                 <!-- Translators: accessible name of the hamburger menu -->
-                <property name="AtkObject::accessible-name" translatable="yes">Actions</property>
+<!--                <property name="AtkObject::accessible-name" translatable="yes">Actions</property>-->
                 <!-- Translators: accessible description of the hamburger menu -->
-                <property name="AtkObject::accessible-description" translatable="yes">Current view 
actions</property>
-              </object>
-            </child>
+<!--                <property name="AtkObject::accessible-description" translatable="yes">Current view 
actions</property>-->
+<!--              </object>-->
+<!--            </child>-->
           </object>
         </child>
       </object>
diff --git a/data/ui/history-button.ui b/data/ui/history-button.ui
index e29f5d8..5b7c00d 100644
--- a/data/ui/history-button.ui
+++ b/data/ui/history-button.ui
@@ -26,12 +26,12 @@
     </style>
 
     <child internal-child="accessible">
-      <object class="AtkObject">
+<!--      <object class="AtkObject">-->
         <!-- Translators: accessible name of the history menubutton -->
-        <property name="AtkObject::accessible-name" translatable="yes">History</property>
+<!--        <property name="AtkObject::accessible-name" translatable="yes">History</property>-->
         <!-- Translators: accessible description of the history menubutton -->
-        <property name="AtkObject::accessible-description" translatable="yes">Game history menu</property>
-      </object>
+<!--        <property name="AtkObject::accessible-description" translatable="yes">Game history 
menu</property>-->
+<!--      </object>-->
     </child>
   </template>
 </interface>
diff --git a/src/history-button.vala b/src/history-button.vala
index 7e3d847..d8f5fbc 100644
--- a/src/history-button.vala
+++ b/src/history-button.vala
@@ -23,6 +23,11 @@ using Gtk;
 [GtkTemplate (ui = "/org/gnome/Taquin/ui/history-button.ui")]
 private class HistoryButton : ToggleButton
 {
+    /* Translators: accessible name of the history menubutton */
+    private const string str1 = _("History");
+    /* Translators: accessible description of the history menubutton */
+    private const string str2 = _("Game history menu");
+
     ulong toggled_handler = 0;
     ulong close_handler = 0;
     private PopoverMenu popover;


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