[rygel/config] Put the PreferencesVBox in Notebook.
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel/config] Put the PreferencesVBox in Notebook.
- Date: Wed, 22 Apr 2009 12:02:38 -0400 (EDT)
commit 1c4d6334837f2fc421b5c6deedd9ffc248585934
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Apr 22 18:29:20 2009 +0300
Put the PreferencesVBox in Notebook.
So that we can now add more PreferencesVBox'es.
---
src/ui/rygel-preferences-dialog.vala | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/ui/rygel-preferences-dialog.vala b/src/ui/rygel-preferences-dialog.vala
index f835214..5efedcf 100644
--- a/src/ui/rygel-preferences-dialog.vala
+++ b/src/ui/rygel-preferences-dialog.vala
@@ -23,12 +23,20 @@
using Gtk;
public class Rygel.PreferencesDialog : Dialog {
+ Notebook notebook;
+
public PreferencesDialog () {
this.title = "Rygel Preferences";
var config_editor = new ConfigEditor ();
- this.vbox.add (new PreferencesVBox (config_editor));
+ this.notebook = new Notebook ();
+
+ var pref_vbox = new PreferencesVBox (config_editor);
+ var label = new Label (pref_vbox.title);
+ this.notebook.append_page (pref_vbox, label);
+
+ this.vbox.add (this.notebook);
this.add_button (STOCK_OK, ResponseType.ACCEPT);
this.add_button (STOCK_APPLY, ResponseType.APPLY);
@@ -55,7 +63,7 @@ public class Rygel.PreferencesDialog : Dialog {
}
private void apply_settings () {
- foreach (var child in this.vbox.get_children ()) {
+ foreach (var child in this.notebook.get_children ()) {
if (!(child is PreferencesVBox)) {
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]