SOURCES: f-spot-fs.patch - works for both slideshow and fullscreen...

wrobell wrobell at pld-linux.org
Sat Dec 29 19:59:12 CET 2007


Author: wrobell                      Date: Sat Dec 29 18:59:11 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- works for both slideshow and fullscreen request, now

---- Files affected:
SOURCES:
   f-spot-fs.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/f-spot-fs.patch
diff -u SOURCES/f-spot-fs.patch:1.1 SOURCES/f-spot-fs.patch:1.2
--- SOURCES/f-spot-fs.patch:1.1	Tue Jan 16 00:25:01 2007
+++ SOURCES/f-spot-fs.patch	Sat Dec 29 19:59:06 2007
@@ -1,6 +1,6 @@
---- f-spot-0.2.2/src/MainWindow.cs	2006-10-06 02:23:08.000000000 +0100
-+++ f-spot-0.2.2.new/src/MainWindow.cs	2006-11-20 04:55:56.000000000 +0000
-@@ -1999,6 +1999,13 @@
+--- f-spot-0.4.1/src/MainWindow.cs.orig	2007-12-29 18:48:46.000000000 +0000
++++ f-spot-0.4.1/src/MainWindow.cs	2007-12-29 18:43:59.000000000 +0000
+@@ -2099,6 +2099,13 @@
  		int active = Math.Max (ActiveIndex (), 0);
  		if (fsview == null) {
  			fsview = new FSpot.FullScreenView (query);
@@ -12,5 +12,19 @@
 +			fsview.SetDefaultSize(bounds.Width, bounds.Height);
 +
  			fsview.Destroyed += HandleFullScreenViewDestroy;
-             fsview.View.Item.Index = active;
-             ColorDialog.SwitchViews (fsview.View);
+ 			fsview.View.Item.Index = active;
+ 			ColorDialog.SwitchViews (fsview.View);
+@@ -2142,6 +2149,13 @@
+ 		int active = Math.Max (ActiveIndex (), 0);
+ 		if (fsview == null) {
+ 			fsview = new FSpot.FullScreenView (query);
++
++			Gdk.Screen screen = fsview.Screen;
++			int monitor = screen.GetMonitorAtWindow (main_window.GdkWindow);
++			Gdk.Rectangle bounds = screen.GetMonitorGeometry(monitor);
++			fsview.Move(bounds.X, 0);
++			fsview.SetDefaultSize(bounds.Width, bounds.Height);
++
+ 			fsview.Destroyed += HandleFullScreenViewDestroy;
+ 			fsview.View.Item.Index = active;
+ 			ColorDialog.SwitchViews (fsview.View);
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/f-spot-fs.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list