[rygel/config] Merg 'section' and 'title' props of PluginPrefVBox
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel/config] Merg 'section' and 'title' props of PluginPrefVBox
- Date: Thu, 23 Apr 2009 13:10:18 -0400 (EDT)
commit 779fcd92860ae99711326a48cf97239d4788556b
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Apr 23 17:19:09 2009 +0300
Merg 'section' and 'title' props of PluginPrefVBox
---
src/ui/rygel-plugin-pref-vbox.vala | 3 +--
src/ui/rygel-preferences-dialog.vala | 12 +++---------
2 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/src/ui/rygel-plugin-pref-vbox.vala b/src/ui/rygel-plugin-pref-vbox.vala
index 45fd3a1..1a307a5 100644
--- a/src/ui/rygel-plugin-pref-vbox.vala
+++ b/src/ui/rygel-plugin-pref-vbox.vala
@@ -24,9 +24,8 @@ using Gtk;
public class Rygel.PluginPrefVBox : PreferencesVBox {
public PluginPrefVBox (ConfigEditor config_editor,
- string pref_title,
string section) {
- base (config_editor, pref_title, section);
+ base (config_editor, section, section);
var title = config_editor.get_title (section);
var udn = config_editor.get_udn (section);
diff --git a/src/ui/rygel-preferences-dialog.vala b/src/ui/rygel-preferences-dialog.vala
index 072871a..0498409 100644
--- a/src/ui/rygel-preferences-dialog.vala
+++ b/src/ui/rygel-preferences-dialog.vala
@@ -32,15 +32,9 @@ public class Rygel.PreferencesDialog : Dialog {
this.notebook = new Notebook ();
this.add_pref_page (new GeneralPrefVBox (config_editor));
- this.add_pref_page (new PluginPrefVBox (config_editor,
- "Tracker",
- "tracker"));
- this.add_pref_page (new PluginPrefVBox (config_editor,
- "DVB",
- "dvb"));
- this.add_pref_page (new PluginPrefVBox (config_editor,
- "Test",
- "test"));
+ this.add_pref_page (new PluginPrefVBox (config_editor, "Tracker"));
+ this.add_pref_page (new PluginPrefVBox (config_editor, "DVB"));
+ this.add_pref_page (new PluginPrefVBox (config_editor, "Test"));
this.vbox.add (this.notebook);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]