[f-spot] Bug 601565 - Histogram colours don't update on gtk theme change
- From: Ruben Vermeersch <rubenv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot] Bug 601565 - Histogram colours don't update on gtk theme change
- Date: Sat, 14 Nov 2009 11:05:00 +0000 (UTC)
commit 313f8518caa103bc340f7ea3e8fd6a6af4ecccb9
Author: Paul Wellner Bou <paul purecodes org>
Date: Sat Nov 14 11:41:00 2009 +0100
Bug 601565 - Histogram colours don't update on gtk theme change
If the gtk theme of f-spot is changed in the preferences dialog, the colours of
the histogram are not updated. A restart of f-spot is required for this.
This patch at the same time removes the dependency of MainWindow.Toplevel to
make the transition to App.Instance.Organizer possible/easier.
src/FolderQueryWidget.cs | 4 ++--
src/QueryWidget.cs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/FolderQueryWidget.cs b/src/FolderQueryWidget.cs
index 3ce26c5..5a446d9 100644
--- a/src/FolderQueryWidget.cs
+++ b/src/FolderQueryWidget.cs
@@ -26,10 +26,10 @@ namespace FSpot
PhotoQuery query;
FolderSet folder_set;
- public FolderQueryWidget () : base ()
+ public FolderQueryWidget (PhotoQuery query) : base ()
{
folder_set = new FolderSet ();
- query = MainWindow.Toplevel.Query;
+ this.query = query;
query.SetCondition (folder_set);
diff --git a/src/QueryWidget.cs b/src/QueryWidget.cs
index df9f5a3..c77e5e5 100644
--- a/src/QueryWidget.cs
+++ b/src/QueryWidget.cs
@@ -81,7 +81,7 @@ namespace FSpot {
rollfilter.Visible = false;
box.PackStart (rollfilter, false, false, 0);
- folder_query_widget = new FolderQueryWidget ();
+ folder_query_widget = new FolderQueryWidget (query);
folder_query_widget.Visible = false;
box.PackStart (folder_query_widget, false, false, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]