Re: [Viking-devel] TRW properties dialog: Wrong resize constraints

2013-01-20 Thread Robert Norris


It's in the configure_event() function.

On the first time the dialog is displayed this function is called and it tries 
to determine the size of the dialog for use with the graph pixmaps.

It looks like line 2380:
gtk_widget_set_size_request ( widget, 
widgets->profile_width+widgets->profile_width_offset, widgets->profile_height );

*could* be:
gtk_widget_set_size_request ( widget, 
widgets->profile_width+widgets->profile_width_offset, 
widgets->profile_height+widgets->profile_height_offset );

However from the comment below in the code (by me) - implies I knew this - but 
had some reason chose not to add on this offset..

Ahh I remember now, currently you can compress the dialog ; as it seems to 
start off with space between the widgets rows.
Unfortunately adding the offset (as above) means one can not compress the 
dialog at all (which is useful if you want to display more than one at the same 
time).

With out it allows you to compress it too much - as you have seen.

The other place to look for initial size of things is around line 3042, where 
the table of widgets are set up.

Unfortunately I don't know how to work the ideal size request - using 
'widgets->profile_height+widgets->profile_height_offset/2' works better for me, 
but that is probably just luck.

HTH.

Be Seeing You - Rob.
If at first you don't succeed,
then skydiving isn't for you.

Date: Sun, 20 Jan 2013 22:11:48 +0100
From: guilhem.bonnefi...@gmail.com
To: viking-devel@lists.sourceforge.net
Subject: [Viking-devel] TRW properties dialog: Wrong resize constraints

Hi,
I found a bug in the TRW track properties dialog: it is possible to resize it 
up to an incorrect size.But I'm unable to understand what's wrong.

Any GTK guru in the list?
Here is the bug 
report:https://sourceforge.net/tracker/?func=detail&aid=3601584&group_id=83870&atid=570954#

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com

-=- http://nathguil.free.fr/


--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/ 
  --
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

[Viking-devel] TRW properties dialog: Wrong resize constraints

2013-01-20 Thread Guilhem Bonnefille
Hi,

I found a bug in the TRW track properties dialog: it is possible to resize
it up to an incorrect size.
But I'm unable to understand what's wrong.

Any GTK guru in the list?

Here is the bug report:
https://sourceforge.net/tracker/?func=detail&aid=3601584&group_id=83870&atid=570954#

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/