[rygel] ui: Keep a list of media-export buttons



commit 5b2027a95b0bdc3a4e41fb3cc2e8da60d8475d85
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Sep 28 00:48:09 2009 +0300

    ui: Keep a list of media-export buttons
    
    Keep a list of buttons related to media-export treeview.

 src/ui/rygel-media-export-pref-section.vala |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/rygel-media-export-pref-section.vala b/src/ui/rygel-media-export-pref-section.vala
index a6ec501..2393f1d 100644
--- a/src/ui/rygel-media-export-pref-section.vala
+++ b/src/ui/rygel-media-export-pref-section.vala
@@ -37,6 +37,8 @@ public class Rygel.MediaExportPrefSection : Rygel.PluginPrefSection {
     private ListStore liststore;
     private FileChooserDialog dialog;
 
+    private ArrayList<Button> buttons;
+
     public MediaExportPrefSection (Builder    builder,
                                    UserConfig config) {
         base (builder, config, NAME);
@@ -68,14 +70,19 @@ public class Rygel.MediaExportPrefSection : Rygel.PluginPrefSection {
         this.dialog.set_current_folder (Environment.get_home_dir ());
         this.dialog.show_hidden = false;
 
+        this.buttons = new ArrayList<Button> ();
+
         var button = (Button) builder.get_object (ADD_BUTTON);
         button.clicked += this.on_add_button_clicked;
+        this.buttons.add (button);
 
         button = (Button) builder.get_object (REMOVE_BUTTON);
         button.clicked += this.on_remove_button_clicked;
+        this.buttons.add (button);
 
         button = (Button) builder.get_object (CLEAR_BUTTON);
         button.clicked += this.on_clear_button_clicked;
+        this.buttons.add (button);
     }
 
     public override void save () {



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