[f-spot] Use F-Spot's default size as the default for view mode too
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Use F-Spot's default size as the default for view mode too
- Date: Wed, 30 Jun 2010 08:19:12 +0000 (UTC)
commit 69efa72ec134dc81b15887253744ede6e4ec8e2f
Author: Iain Lane <laney ubuntu com>
Date: Sat Jun 26 23:32:04 2010 +0100
Use F-Spot's default size as the default for view mode too
If the view mode height and width are unset, fall back to using the
default height and width (from the glade file).
Original patch from Gary Ching-Pang Lin.
https://bugzilla.gnome.org/show_bug.cgi?id=609406
src/SingleView.cs | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/SingleView.cs b/src/SingleView.cs
index ec5d156..ccc9b4a 100644
--- a/src/SingleView.cs
+++ b/src/SingleView.cs
@@ -530,8 +530,14 @@ namespace FSpot {
case Preferences.VIEWER_WIDTH:
case Preferences.VIEWER_HEIGHT:
- Window.SetDefaultSize(Preferences.Get<int> (Preferences.VIEWER_WIDTH),
- Preferences.Get<int> (Preferences.VIEWER_HEIGHT));
+ int width, height;
+ width = Preferences.Get<int> (Preferences.VIEWER_WIDTH);
+ height = Preferences.Get<int> (Preferences.VIEWER_HEIGHT);
+
+ if( width == 0 || height == 0 )
+ break;
+
+ Window.SetDefaultSize(width, height);
Window.ReshowWithInitialSize();
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]