After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 148149 - Why minimum diagram window size?
Why minimum diagram window size?
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
0.94
Other Linux
: Normal minor
: 0.95
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2004-07-22 08:26 UTC by Roland Stigge
Modified: 2005-12-27 18:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Roland Stigge 2004-07-22 08:26:28 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.
Comment 1 Alan Horkan 2004-11-26 22:41:18 UTC
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
Comment 2 Alan Horkan 2004-11-26 23:04:32 UTC
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"
Comment 3 Alan Horkan 2005-02-18 15:42:31 UTC
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.  
Comment 4 Roland Stigge 2005-02-18 21:45:49 UTC
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?)
Comment 5 Hans Breuer 2005-12-27 18:43:05 UTC
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.