[gnome-shell] Add function to CheckBox to get label actor



commit 1f5a27d5c54ff3d955da8c338f3141321bfbc6b5
Author: Stef Walter <stefw gnome org>
Date:   Wed Feb 29 09:50:22 2012 +0100

    Add function to CheckBox to get label actor
    
     * Allows caller to change properties of the label directly.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=671034

 js/ui/checkBox.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/checkBox.js b/js/ui/checkBox.js
index e66fc79..097fe96 100644
--- a/js/ui/checkBox.js
+++ b/js/ui/checkBox.js
@@ -93,5 +93,9 @@ const CheckBox = new Lang.Class({
 
     setLabel: function(label) {
         this._container.label.set_text(label);
+    },
+
+    getLabelActor: function() {
+        return this._container.label;
     }
 });



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