[gnome-tweak-tool] Set AtkRelation pairs (bug 653145)



commit 84a9928152ea69d27dc8e43e060008003225d358
Author: John Stowers <john stowers gmail com>
Date:   Wed Jun 22 21:51:38 2011 +1200

    Set AtkRelation pairs (bug 653145)

 gtweak/widgets.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtweak/widgets.py b/gtweak/widgets.py
index e589c16..1a8e948 100644
--- a/gtweak/widgets.py
+++ b/gtweak/widgets.py
@@ -57,6 +57,11 @@ def build_label_beside_widget(txt, *widget, **kwargs):
     for w in widget:
         hbox.pack_start(w, False, False, 0)
 
+    #For Atk, indicate that the rightmost widget, usually the switch relates to the
+    #label. By convention this is true in the great majority of cases. Settings that
+    #construct their own widgets will need to set this themselves
+    lbl.set_mnemonic_widget(widget[-1])
+
     return hbox
 
 def build_combo_box_text(selected, *values):



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