[banshee] [PreferencesDialog] Fix jumping to a source's prefs



commit 967b0b68480306f89eeec1e4e48d6035ed366289
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Mon Mar 1 13:45:38 2010 -0800

    [PreferencesDialog] Fix jumping to a source's prefs

 .../Banshee.Preferences.Gui/PreferenceDialog.cs    |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Preferences.Gui/PreferenceDialog.cs b/src/Core/Banshee.ThickClient/Banshee.Preferences.Gui/PreferenceDialog.cs
index f3ea93d..4b70fcc 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Preferences.Gui/PreferenceDialog.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Preferences.Gui/PreferenceDialog.cs
@@ -73,10 +73,13 @@ namespace Banshee.Preferences.Gui
 
                 PageComboBox page_combo;
                 foreach (Widget child in notebook_page.Children) {
-                    page_combo = child as PageComboBox;
-                    if (page_combo != null) {
-                        page_combo.ActivePageId = id;
-                        break;
+                    var hbox = child as HBox;
+                    if (hbox != null) {
+                        page_combo = hbox.Children[1] as PageComboBox;
+                        if (page_combo != null) {
+                            page_combo.ActivePageId = id;
+                            break;
+                        }
                     }
                 }
             }



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