[rygel] ui: Keep a ref to plugin's title label



commit 6fe8460a6b0d5d49ef895016d1480e76596f014b
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Sep 28 01:54:23 2009 +0300

    ui: Keep a ref to plugin's title label

 src/ui/rygel-plugin-pref-section.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/rygel-plugin-pref-section.vala b/src/ui/rygel-plugin-pref-section.vala
index bd1ff04..4b93991 100644
--- a/src/ui/rygel-plugin-pref-section.vala
+++ b/src/ui/rygel-plugin-pref-section.vala
@@ -25,10 +25,12 @@ using Gee;
 
 public class Rygel.PluginPrefSection : PreferencesSection {
     const string ENABLED_CHECK = "-enabled-checkbutton";
+    const string TITLE_LABEL = "-title-label";
     const string TITLE_ENTRY = "-title-entry";
 
     private CheckButton enabled_check;
     private Entry title_entry;
+    private Label title_label;
 
     protected ArrayList<Widget> widgets; // All widgets in this section
 
@@ -45,6 +47,9 @@ public class Rygel.PluginPrefSection : PreferencesSection {
         this.title_entry = (Entry) builder.get_object (name.down () +
                                                        TITLE_ENTRY);
         assert (this.title_entry != null);
+        this.title_label = (Label) builder.get_object (name.down () +
+                                                       TITLE_LABEL);
+        assert (this.title_label != null);
 
         this.enabled_check.active = config.get_enabled (name);
 



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