[rygel/config] Make some fields/methods of PreferencesVBox, protected.



commit 76c48a18eaa27d97f427ac3caea9f59f5c9b0b66
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Apr 22 18:47:08 2009 +0300

    Make some fields/methods of PreferencesVBox, protected.
---
 src/ui/rygel-preferences-vbox.vala |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/ui/rygel-preferences-vbox.vala b/src/ui/rygel-preferences-vbox.vala
index 8646800..7c5e023 100644
--- a/src/ui/rygel-preferences-vbox.vala
+++ b/src/ui/rygel-preferences-vbox.vala
@@ -23,7 +23,7 @@
 using Gtk;
 
 public class Rygel.PreferencesVBox : VBox {
-    ConfigEditor config_editor;
+    protected ConfigEditor config_editor;
 
     public string title;
     public string section;
@@ -50,10 +50,10 @@ public class Rygel.PreferencesVBox : VBox {
                                "Enable Xbox support");
     }
 
-    private void add_string_pref (string  name,
-                                  string  title,
-                                  string? current_value,
-                                  string  tooltip) {
+    protected void add_string_pref (string  name,
+                                    string  title,
+                                    string? current_value,
+                                    string  tooltip) {
         var entry = new Entry ();
 
         if (current_value != null) {
@@ -63,12 +63,12 @@ public class Rygel.PreferencesVBox : VBox {
         this.add_pref_widget (name, title, entry, tooltip);
     }
 
-    private void add_int_pref (string  name,
-                               string  title,
-                               int     current_value,
-                               int     min,
-                               int     max,
-                               string  tooltip) {
+    protected void add_int_pref (string  name,
+                                 string  title,
+                                 int     current_value,
+                                 int     min,
+                                 int     max,
+                                 string  tooltip) {
         var adjustment = new Adjustment (current_value,
                                          min,
                                          max,
@@ -81,10 +81,10 @@ public class Rygel.PreferencesVBox : VBox {
         this.add_pref_widget (name, title, spin, tooltip);
     }
 
-    private void add_boolean_pref (string  name,
-                                   string  title,
-                                   bool    current_value,
-                                   string  tooltip) {
+    protected void add_boolean_pref (string  name,
+                                     string  title,
+                                     bool    current_value,
+                                     string  tooltip) {
         var check = new CheckButton ();
 
         check.active = current_value;



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