[rygel/config] Rename PreferencesVBox to PreferencesPage
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel/config] Rename PreferencesVBox to PreferencesPage
- Date: Fri, 24 Apr 2009 12:23:04 -0400 (EDT)
commit 616f0afecff926f1c0a2b3650347cec795637f04
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Apr 24 17:07:29 2009 +0300
Rename PreferencesVBox to PreferencesPage
---
src/ui/Makefile.am | 18 +++++++++---------
...pref-vbox.vala => rygel-general-pref-page.vala} | 4 ++--
...-pref-vbox.vala => rygel-plugin-pref-page.vala} | 4 ++--
src/ui/rygel-preferences-dialog.vala | 18 +++++++++---------
...ences-vbox.vala => rygel-preferences-page.vala} | 4 ++--
5 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/src/ui/Makefile.am b/src/ui/Makefile.am
index 17e24d2..887d645 100644
--- a/src/ui/Makefile.am
+++ b/src/ui/Makefile.am
@@ -22,18 +22,18 @@ bin_PROGRAMS = rygel-preferences
BUILT_SOURCES = rygel.stamp \
rygel-preferences-dialog.c \
- rygel-preferences-vbox.c \
- rygel-general-pref-vbox.c \
- rygel-plugin-pref-vbox.c
+ rygel-preferences-page.c \
+ rygel-general-pref-page.c \
+ rygel-plugin-pref-page.c
rygel_preferences_SOURCES = rygel-preferences-dialog.c \
rygel-preferences-dialog.vala \
- rygel-preferences-vbox.c \
- rygel-preferences-vbox.vala \
- rygel-general-pref-vbox.c \
- rygel-general-pref-vbox.vala \
- rygel-plugin-pref-vbox.c \
- rygel-plugin-pref-vbox.vala
+ rygel-preferences-page.c \
+ rygel-preferences-page.vala \
+ rygel-general-pref-page.c \
+ rygel-general-pref-page.vala \
+ rygel-plugin-pref-page.c \
+ rygel-plugin-pref-page.vala
rygel.stamp: $(filter %.vala,$(rygel_preferences_SOURCES))
$(VALAC) -C --vapidir=$(rygeldir) \
diff --git a/src/ui/rygel-general-pref-vbox.vala b/src/ui/rygel-general-pref-page.vala
similarity index 93%
rename from src/ui/rygel-general-pref-vbox.vala
rename to src/ui/rygel-general-pref-page.vala
index 547d55d..744fdb9 100644
--- a/src/ui/rygel-general-pref-vbox.vala
+++ b/src/ui/rygel-general-pref-page.vala
@@ -22,8 +22,8 @@
*/
using Gtk;
-public class Rygel.GeneralPrefVBox : PreferencesVBox {
- public GeneralPrefVBox (Configuration config) {
+public class Rygel.GeneralPrefPage : PreferencesPage {
+ public GeneralPrefPage (Configuration config) {
base (config, "General", "general");
this.add_string_pref (Configuration.IP_KEY,
diff --git a/src/ui/rygel-plugin-pref-vbox.vala b/src/ui/rygel-plugin-pref-page.vala
similarity index 94%
rename from src/ui/rygel-plugin-pref-vbox.vala
rename to src/ui/rygel-plugin-pref-page.vala
index 7c3e5aa..8daa760 100644
--- a/src/ui/rygel-plugin-pref-vbox.vala
+++ b/src/ui/rygel-plugin-pref-page.vala
@@ -22,8 +22,8 @@
*/
using Gtk;
-public class Rygel.PluginPrefVBox : PreferencesVBox {
- public PluginPrefVBox (Configuration config,
+public class Rygel.PluginPrefPage : PreferencesPage {
+ public PluginPrefPage (Configuration config,
string section) {
base (config, section, section);
diff --git a/src/ui/rygel-preferences-dialog.vala b/src/ui/rygel-preferences-dialog.vala
index f20bb06..2e414cc 100644
--- a/src/ui/rygel-preferences-dialog.vala
+++ b/src/ui/rygel-preferences-dialog.vala
@@ -31,10 +31,10 @@ public class Rygel.PreferencesDialog : Dialog {
var config = new Configuration ();
this.notebook = new Notebook ();
- this.add_pref_page (new GeneralPrefVBox (config));
- this.add_pref_page (new PluginPrefVBox (config, "Tracker"));
- this.add_pref_page (new PluginPrefVBox (config, "DVB"));
- this.add_pref_page (new PluginPrefVBox (config, "Test"));
+ this.add_pref_page (new GeneralPrefPage (config));
+ this.add_pref_page (new PluginPrefPage (config, "Tracker"));
+ this.add_pref_page (new PluginPrefPage (config, "DVB"));
+ this.add_pref_page (new PluginPrefPage (config, "Test"));
this.vbox.add (this.notebook);
@@ -51,9 +51,9 @@ public class Rygel.PreferencesDialog : Dialog {
this.show_all ();
}
- private void add_pref_page (PreferencesVBox pref_vbox) {
- var label = new Label (pref_vbox.title);
- this.notebook.append_page (pref_vbox, label);
+ private void add_pref_page (PreferencesPage page) {
+ var label = new Label (page.title);
+ this.notebook.append_page (page, label);
}
private void on_response (PreferencesDialog dialog, int response_id) {
@@ -73,11 +73,11 @@ public class Rygel.PreferencesDialog : Dialog {
private void apply_settings () {
foreach (var child in this.notebook.get_children ()) {
- if (!(child is PreferencesVBox)) {
+ if (!(child is PreferencesPage)) {
break;
}
- ((PreferencesVBox) child).save ();
+ ((PreferencesPage) child).save ();
}
}
diff --git a/src/ui/rygel-preferences-vbox.vala b/src/ui/rygel-preferences-page.vala
similarity index 97%
rename from src/ui/rygel-preferences-vbox.vala
rename to src/ui/rygel-preferences-page.vala
index ebddb64..fea55c5 100644
--- a/src/ui/rygel-preferences-vbox.vala
+++ b/src/ui/rygel-preferences-page.vala
@@ -22,13 +22,13 @@
*/
using Gtk;
-public class Rygel.PreferencesVBox : VBox {
+public class Rygel.PreferencesPage : VBox {
protected Configuration config;
public string title;
public string section;
- public PreferencesVBox (Configuration config,
+ public PreferencesPage (Configuration config,
string title,
string section) {
this.section = section;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]