GNOME Bugzilla – Bug 609406
The window of viewer mode doesn't honor the default window size in f-spot.glade
Last modified: 2010-06-30 08:23:29 UTC
OS: openSUSE 11.2 When I open a picture in the viewer mode for the first time launch, the size of the viewer window is quite small, says 320x206. However, in f-spot.glade, the default size of the viewer window is set to 640x480, but the viewer window doesn't follow it.
Created attachment 153382 [details] [review] Patch to add default height and width I made a patch to set the default values for the height and width of the viewer and it works for me.
Created attachment 153388 [details] [review] Skip window.SetDefaultSize() if width/height is not set yet The patch checks the return value of Preferences.Get() and skips window.SetDefaultSize() if there is no existed width or height, so f-spot viewer will follow f-spot.glade and no more hardcoded value is needed :)
Created attachment 164710 [details] [review] 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.
Comment on attachment 153388 [details] [review] Skip window.SetDefaultSize() if width/height is not set yet This didn't apply any more; I fixed it to do so and made a proper git formatted patch at the same time. Thanks for your contribution!
Attachment 164710 [details] pushed as 69efa72 - Use F-Spot's default size as the default for view mode too Thanks, merged!