GNOME Bugzilla – Bug 148149
Why minimum diagram window size?
Last modified: 2005-12-27 18:43:05 UTC
dia 0.94-pre1 has a minimum diagram window size which dia-0.93 didn't have. Sometimes (for little screenshots, desktop management) it's useful to make windows very small. This was useful in 0.93.
I'm unable to shink windows to less than about 600x600 using Dia version 0.92.2, compiled 15:39:37 Dec 10 2003 on Mandrake. (Python is enable and it looks like a Gnome build) This suggests that something changed in your setup between 0.93 and 0.94 rather than in Dia specifically I tried turning off the menubar and it makes no difference, I still cannot resize the window really small. Please let us know if you figure out what else might have changed in your setup
Take a look at .dia/diarc specifically the lines: new_view_width=500 new_view_height=400 If you set them to be smaller you should be able to resize the window smaller (at least after making the change I was able to shrink the window to whatever size I set) You dont have to edit the diarc file manually if you do not want to go to File, Preferences, Diagram Defaults then set the New Window values as you see fit. I am undecided if this is a bug, although it is slighly odd behaviour as I would not have expected the defualt window size to effect the minimum window size. I leave it for other to decide if this really is "a bug or a feature"
Roland, as this can worked around by adjusting the Default Window size preference do you still think it is a bug or what? I'm not sure what to do with this but I'd like to try and make some progress on it.
Alan, app/interface.c:create_display_shell() sets the default window size for top level windows with gtk_window_set_default_size(). This alone would be fine and doesn't cause a minimum window size. But create_display_shell() also calls dia_canvas_set_size() in all cases (which sets the minimum size). Maybe dia_canvas_set_size() shouldn't be called, at least in the case of top-level windows? (When is the embedded mode used and really needs a manual override of the size request?)
2005-12-27 Hans Breuer <hans@breuer.org> * app/interface.c : removed superfluous call to dia_canvas_set_size(). Suggested by Roland Stigge, fixes bug #148149.