f-spot r4148 - in trunk: . src
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4148 - in trunk: . src
- Date: Fri, 4 Jul 2008 09:25:25 +0000 (UTC)
Author: sdelcroix
Date: Fri Jul 4 09:25:25 2008
New Revision: 4148
URL: http://svn.gnome.org/viewvc/f-spot?rev=4148&view=rev
Log:
2008-07-04 Stephane Delcroix <stephane delcroix org>
* MainWindow.cs: send DataChanged on version switching.
Modified:
trunk/ChangeLog
trunk/src/MainWindow.cs
Modified: trunk/src/MainWindow.cs
==============================================================================
--- trunk/src/MainWindow.cs (original)
+++ trunk/src/MainWindow.cs Fri Jul 4 09:25:25 2008
@@ -314,7 +314,7 @@
sidebar.Show ();
info_box = new InfoBox ();
- info_box.VersionIdChanged += HandleInfoBoxVersionIdChange;
+ info_box.VersionIdChanged += delegate (InfoBox box, uint version_id) { UpdateForVersionIdChange (version_id);};
sidebar_vbox.PackEnd (info_box, false, false, 0);
tag_selection_widget.Selection.Changed += HandleTagSelectionChanged;
@@ -2691,22 +2691,9 @@
void UpdateForVersionIdChange (uint version_id)
{
CurrentPhoto.DefaultVersionId = version_id;
- int active = ActiveIndex ();
-
- query.Commit (active, true, false);
- }
-
- void HandleVersionIdChanged (PhotoVersionMenu menu)
- {
- UpdateForVersionIdChange (menu.VersionId);
+ query.Commit (ActiveIndex (), true, true);
}
- void HandleInfoBoxVersionIdChange (InfoBox box, uint version_id)
- {
- UpdateForVersionIdChange (version_id);
- }
-
-
// Queries.
public void UpdateQuery ()
@@ -2840,7 +2827,7 @@
}
versions_submenu = new PhotoVersionMenu (CurrentPhoto);
- versions_submenu.VersionIdChanged += new PhotoVersionMenu.VersionIdChangedHandler (HandleVersionIdChanged);
+ versions_submenu.VersionIdChanged += delegate (PhotoVersionMenu menu) { UpdateForVersionIdChange (menu.VersionId);};
version_menu_item.Submenu = versions_submenu;
sharpen.Sensitive = (view_mode == ModeType.IconView ? false : true);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]