[f-spot] drop unused stuffs
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] drop unused stuffs
- Date: Mon, 13 Jul 2009 07:36:33 +0000 (UTC)
commit f86629f874c9dd8b5fa9911ab2fb2e1ad7724c3c
Author: Stephane Delcroix <stephane delcroix org>
Date: Mon Jul 13 09:35:59 2009 +0200
drop unused stuffs
src/PhotoQuery.cs | 10 +++-------
src/UI.Dialog/EditTagIconDialog.cs | 2 +-
src/Widgets/DateEdit.cs | 1 +
src/Widgets/ImageView.cs | 32 --------------------------------
4 files changed, 5 insertions(+), 40 deletions(-)
---
diff --git a/src/PhotoQuery.cs b/src/PhotoQuery.cs
index 1f95ae2..24642cb 100644
--- a/src/PhotoQuery.cs
+++ b/src/PhotoQuery.cs
@@ -163,10 +163,9 @@ namespace FSpot {
}
public Term Terms {
- get {
- return terms;
- }
+ get { return terms; }
set {
+Console.WriteLine ("terms set: {0}", value.SqlCondition ());
terms = value;
untagged = false;
RequestReload ();
@@ -174,10 +173,7 @@ namespace FSpot {
}
public string ExtraCondition {
- get {
- return extra_condition;
- }
-
+ get { return extra_condition; }
set {
if (extra_condition == value)
return;
diff --git a/src/UI.Dialog/EditTagIconDialog.cs b/src/UI.Dialog/EditTagIconDialog.cs
index b8184b7..b7e60c0 100644
--- a/src/UI.Dialog/EditTagIconDialog.cs
+++ b/src/UI.Dialog/EditTagIconDialog.cs
@@ -12,7 +12,7 @@
*/
using System;
-using Mono.Posix;
+using Mono.Unix;
using Gtk;
using FSpot.Widgets;
using FSpot.Utils;
diff --git a/src/Widgets/DateEdit.cs b/src/Widgets/DateEdit.cs
index 96bfd6d..1332a64 100644
--- a/src/Widgets/DateEdit.cs
+++ b/src/Widgets/DateEdit.cs
@@ -245,6 +245,7 @@ namespace FSpot.Widgets
void HandleCalendarDaySelected (object sender, EventArgs e)
{
+ Console.WriteLine ("DateTimeOffset += (calendar.Date ({0}) - DateTimeOffset.Date ({1}))", calendar.Date, DateTimeOffset.Date);
DateTimeOffset += (calendar.Date - DateTimeOffset.Date);
}
diff --git a/src/Widgets/ImageView.cs b/src/Widgets/ImageView.cs
index a01ef09..2804cc9 100644
--- a/src/Widgets/ImageView.cs
+++ b/src/Widgets/ImageView.cs
@@ -111,14 +111,6 @@ namespace FSpot.Widgets
can_select = value;
if (!can_select)
selection = Rectangle.Zero;
-
- if (!IsRealized)
- return;
-
- if (can_select)
- OnSelectionRealized ();
- else
- OnSelectionUnrealized ();
}
}
@@ -377,15 +369,6 @@ namespace FSpot.Widgets
foreach (var child in children)
child.Widget.ParentWindow = GdkWindow;
-
- if (can_select)
- OnSelectionRealized ();
- }
-
- protected override void OnUnrealized ()
- {
- if (can_select)
- OnSelectionUnrealized ();
}
protected override void OnMapped ()
@@ -895,21 +878,6 @@ namespace FSpot.Widgets
#endregion
#region selection
- void OnSelectionRealized ()
- {
- //FIXME SetCUrsor
-
- selection_gc = new Gdk.GC (GdkWindow);
- selection_gc.Copy (Style.ForegroundGCs [(int)StateType.Normal]);
- selection_gc.Function = Gdk.Function.Invert;
- selection_gc.SetLineAttributes (1, LineStyle.Solid, CapStyle.NotLast, JoinStyle.Miter);
- }
-
- void OnSelectionUnrealized ()
- {
- selection_gc = null;
- }
-
bool OnSelectionExposeEvent (EventExpose evnt)
{
if (selection == Rectangle.Zero)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]