f-spot r4033 - in trunk/src: . Widgets
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4033 - in trunk/src: . Widgets
- Date: Wed, 4 Jun 2008 10:09:47 +0000 (UTC)
Author: sdelcroix
Date: Wed Jun 4 10:09:47 2008
New Revision: 4033
URL: http://svn.gnome.org/viewvc/f-spot?rev=4033&view=rev
Log:
adding keybindings to the filmstrip
Modified:
trunk/src/Makefile.am
trunk/src/Widgets/Filmstrip.cs
Modified: trunk/src/Makefile.am
==============================================================================
--- trunk/src/Makefile.am (original)
+++ trunk/src/Makefile.am Wed Jun 4 10:09:47 2008
@@ -1,7 +1,7 @@
include $(top_srcdir)/Makefile.include
UNSAFE = -unsafe
NOWARN = -nowarn:0169 -nowarn:0612 -nowarn:0414
-EXTRAFLAGS = -d:TEST_METADATA -d:BROKEN_RSVG $(NUNIT_DEFINES) $(CSC_DEFINES)
+EXTRAFLAGS = -d:TEST_METADATA -d:BROKEN_RSVG $(CSC_DEFINES)
CMS_CSDISTFILES = \
$(srcdir)/Cms/CctTable.cs \
@@ -389,7 +389,7 @@
f-spot.exe: $(F_SPOT_CSFILES) FSpot.Utils.dll FSpot.Core.dll FSpot.Query.dll FSpot.JobScheduler.dll FSpot.Widgets.dll Cms.dll $(F_SPOT_RESOURCES)
@echo -e "\n*** Compiling $@"
- $(CSC) -target:winexe -out:$@ $(EXTRAFLAGS) $(UNSAFE) $(NOWARN) $(F_SPOT_CSFILES) $(F_SPOT_ASSEMBLIES) $(RESOURCES)
+ $(CSC) -target:winexe -out:$@ $(EXTRAFLAGS) $(UNSAFE) $(NOWARN) $(NUNIT_DEFINES) $(F_SPOT_CSFILES) $(F_SPOT_ASSEMBLIES) $(RESOURCES)
all: f-spot.exe
Modified: trunk/src/Widgets/Filmstrip.cs
==============================================================================
--- trunk/src/Widgets/Filmstrip.cs (original)
+++ trunk/src/Widgets/Filmstrip.cs Wed Jun 4 10:09:47 2008
@@ -42,11 +42,11 @@
return;
throw new NotImplementedException ();
- if (OrientationChanged != null) {
- OrientationChangedArgs args = new OrientationChangedArgs ();
- //args.Orientation = value;
- //OrientationChanged (this, args);
- }
+// if (OrientationChanged != null) {
+// OrientationChangedArgs args = new OrientationChangedArgs ();
+// //args.Orientation = value;
+// //OrientationChanged (this, args);
+// }
}
}
@@ -437,6 +437,24 @@
return false;
}
+ protected override bool OnKeyPressEvent (Gdk.EventKey ek)
+ {
+ switch (ek.Key) {
+ case Gdk.Key.Page_Down:
+ case Gdk.Key.Down:
+ case Gdk.Key.Right:
+ Position ++;
+ return true;
+
+ case Gdk.Key.Page_Up:
+ case Gdk.Key.Up:
+ case Gdk.Key.Left:
+ Position --;
+ return true;
+ }
+ return false;
+ }
+
public delegate void PositionChangedHandler (float position);
protected virtual void OnPositionChanged (float position)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]