GNOME Bugzilla – Bug 420164
remember the window size
Last modified: 2018-07-02 10:47:22 UTC
It would be nice to remember the dimensions of the scan window, as I have to size it up each time.
Hi, I may do that, but not i the library. Does Gtk remember GtkFileChooserDialog or GtkPrintUnixDialog size ? So, this bug concern flegita and flegita-gimp. Note that i'm heavily working on gnome-scan 0.5 (total rewrite) and won't fix such bug on gnome-scan branch unless you provide a patch agains gnomescan-0.4 branch in Gnome SVN : http://svn.gnome.org/viewcvs/gnome-scan/branches/gnome-scan_0_4/ Thanks for the report. Étienne.
Well, file chooser has its bugs about this (bug #325477, bug #153828) ;) Anyhow, my report was intended to be filed against whatever the front-end is for gnome scan (I thought it was flegita ?_?). If you fix it in Trunk, it's all good to me I guess. What annoys me specifically is the "preview" tab of flegita, which oftentimes (or always?) needs to be sized up because the preview area/ratio is too big to fit in the initial window size.
Héhé ! So, i may implement this. The problem is : why the library would take care of its use configuration on each apps using it ? That does not make sense. I can drop the horizontal scroll in the preview, this will automatically enlarge windows size. Or better, preview should have only one scroll bar for the longest side. (often the width). What do think of that behaviour from a user point of view ? Thanks, Étienne.
Well it's not the library that needs to do this, just the frontend, which is flegita, right? I think your idea would work, but did you mean the longest side "height"? (afaik, scanners usually have a "portrait" orientation, so the longest side is the height)? I guess you just need to make sure it does not exceed the screen/monitor/desktop resolution (if it does, "shrink" the preview contents)?
Ok, i have enough informations for now. Let's close this discussion until i redevelop this part of gnome-scan. Thanks.
Created attachment 90143 [details] screenshot this is the reason why it annoys me deeply each time I start up flegita and click on my scanner: I can't see anything! The default size either needs to be bigger and/or there definitely is a need to remember the window size on startup.
*** Bug 448504 has been marked as a duplicate of this bug. ***
*** Bug 454504 has been marked as a duplicate of this bug. ***
I plan to implement automatic per application saving in Gnome Scan settings using gconf and g_get_application_name().
Hi, Tagging for gnome-love. GnomeScanDialog needs a callback for "on-resize-event", saving new size and position to gconf. It also need to load size and position from gconf in constructor (i'd prefer in gsd_constructor rather than gnome_scan_dialog_new). Regards, Étienne.
gnome-scan is not under active development anymore and has not seen code changes for seven years. Its codebase has been archived: https://gitlab.gnome.org/Archive/gnome-scan/commits/master A possible alternative is using "simple-scan". Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.