I have a patch for the WxWidgets-2.8 branch. It adds functions for
setting the sash gravity. Without setting the gravity the default value
is unusable on some configurations, resulting in splitterwindows where
one part has zero width or height.
Where is the repository for that branch? I would like to add it to
wxcore.cabal.
1 patch for repository code.haskell.org:/srv/code/wxhaskell:
Sat Jun 2 14:26:37 CEST 2012 wxhask...@henning-thielemann.de
* SplitterWindow: GetSashGravity, SetSashGravity
New patches:
[SplitterWindow: GetSashGravity, SetSashGravity
wxhask...@henning-thielemann.de**20120602122637
Ignore-this: 1d2a05583694d848126e84648c2648c7
] {
hunk ./wxcore/src/cpp/eljsplitterwindow.cpp 66
((wxSplitterWindow*)self)->SetSashSize(width);
}
+EWXWEXPORT(void,wxSplitterWindow_SetSashGravity)(void* self,double width)
+{
+ ((wxSplitterWindow*)self)->SetSashGravity(width);
+}
+
EWXWEXPORT(void,wxSplitterWindow_SetBorderSize)(void* self,int width)
{
((wxSplitterWindow*)self)->SetBorderSize(width);
hunk ./wxcore/src/cpp/eljsplitterwindow.cpp 81
return ((wxSplitterWindow*)self)->GetSashSize();
}
+EWXWEXPORT(double,wxSplitterWindow_GetSashGravity)(void* self)
+{
+ return ((wxSplitterWindow*)self)->GetSashGravity();
+}
+
EWXWEXPORT(int,wxSplitterWindow_GetBorderSize)(void* self)
{
return ((wxSplitterWindow*)self)->GetBorderSize();
hunk ./wxcore/src/include/wxc_glue.h 4400
int wxSplitterWindow_GetMinimumPaneSize( TSelf(wxSplitterWindow) _obj );
int wxSplitterWindow_GetSashPosition( TSelf(wxSplitterWindow) _obj );
int wxSplitterWindow_GetSashSize( TSelf(wxSplitterWindow) _obj );
+double wxSplitterWindow_GetSashGravity( TSelf(wxSplitterWindow) _obj );
int wxSplitterWindow_GetSplitMode( TSelf(wxSplitterWindow) _obj );
TClass(wxWindow) wxSplitterWindow_GetWindow1( TSelf(wxSplitterWindow) _obj );
TClass(wxWindow) wxSplitterWindow_GetWindow2( TSelf(wxSplitterWindow) _obj );
hunk ./wxcore/src/include/wxc_glue.h 4411
void wxSplitterWindow_SetMinimumPaneSize( TSelf(wxSplitterWindow) _obj,
int min );
void wxSplitterWindow_SetSashPosition( TSelf(wxSplitterWindow) _obj, int
position, TBool redraw );
void wxSplitterWindow_SetSashSize( TSelf(wxSplitterWindow) _obj, int
width );
+void wxSplitterWindow_SetSashGravity( TSelf(wxSplitterWindow) _obj,
double width );
void wxSplitterWindow_SetSplitMode( TSelf(wxSplitterWindow) _obj, int
mode );
TBool wxSplitterWindow_SplitHorizontally( TSelf(wxSplitterWindow) _obj,
TClass(wxWindow) window1, TClass(wxWindow) window2, int sashPosition );
TBool wxSplitterWindow_SplitVertically( TSelf(wxSplitterWindow) _obj,
TClass(wxWindow) window1, TClass(wxWindow) window2, int sashPosition );
}
Context:
[Comment out unused ver variable in wxcore/Setup.hs
shelarcy <shela...@gmail.com>**20120204033507
Ignore-this: 76f5fe5d879a9d9dcaff109367ba9195
wxcore/Setup.hs' ver variable isn't used. And this variable causes build error
by my wx-config-win.
http://sourceforge.net/mailarchive/message.php?msg_id=28649050
So, I comment out this variable to fix my build problem.
]
[Bump patch versions for wx
shelarcy <shela...@gmail.com>**20120204033406
Ignore-this: 28abe95dbafccc8c3584c4951b3d9998
]
[Bump patch versions for wxdirect
shelarcy <shela...@gmail.com>**20120204032955
Ignore-this: 90dee7915b624b48a00feca736247f9a
wxdirect 0.13.1.1 is already uploaded.
http://hackage.haskell.org/package/wxdirect-0.13.1.1
So, I bumped wxdirect version again.
]
[Add FlexibleInstances to fix builing with GHC 7.4.1
shelarcy <shela...@gmail.com>**20120204031822
Ignore-this: d8f0c051e8187b82d73c077ecbe51193
]
[Fix building wxcore and wxdirect with GHC 7.4.1
shelarcy <shela...@gmail.com>**20120204031337
Ignore-this: 55cfd34d39f6aa7670f5eaac9c78315
]
[Bump patch versions for wxcore and wxdirect after Shelarcy patches.
jeremy.odonog...@gmail.com**20120108232652
Ignore-this: 8e2e35469bb9c888fe00dcd8f5d3c219
Shelarcy (shela...@gmail.com) found a couple of small issues with our
sdist configuration. These deserve bumpting the version numbers of
wxdirect and wxcore.
]
[sdist bugfixes from Shalarcy (shela...@gmail.com)
jeremy.odonog...@gmail.com**20120108232332
Ignore-this: cbcdd315813898a02d393e74d22a36c4
]
[Bugfixes for wxPack 2.8.12 on Windows 7 64 bit
jeremy.odonog...@gmail.com**20120105165229
Ignore-this: 8e9fa4345c940c4e7552fee655117ea2
]
[OpenGL working on Ubuntu Dapper.
jeremy.odonog...@gmail.com**20120105143000
Ignore-this: 1d2418de49a1bae8827315c11ed50dc3
]
[Changes to enable build under Linux (Ubuntu)
jeremy.odonog...@gmail.com**20120105142531
Ignore-this: e3b584866beaef3905ad2a7cb3f2fce2
]
[Working for wxWidgets 2.8.12 on Windows 7.
jeremy.odonog...@gmail.com**20120101234845
Ignore-this: 1ec0b058132651f3a7f9d4321ef38e59
]
[fix for colorDialog return value (3019730)
Maciek Makowski <maciek.makow...@gmail.com>**20110813143552
Ignore-this: ae6fc51d12e1a5761b1d3e9006b4f57b
Two issues have been addressed:
1. colorIsOk function in WxcTypes.hs was assuming that invalid colour will
have rgba < 0, but rgba is a Word, i.e. non-negative;
2. wxColour_IsOk function in eljcolour.cpp was returning a bool, but the
foreign import in WxcTypes was expecting a CInt. This might work on platforms
where sizeof(bool) == sizeof(int), but doesn't work e.g. on Windows under gcc,
where sizeof(bool) == 1.
]
[Bugfix for assert error in SearchDynamicEventTable, reported by Eric on
12/3/2011.
jeremy.odonog...@gamil.com**20110601151027
Ignore-this: ed42aec872b7ec3fb313ea1829f9241f
]
[Patches to reinstate wx2.8 operation.
jeremy.odonog...@gamil.com**20110601083855
Ignore-this: f0c8fed1766317c59a510b58ca24f843
]
[Fix warnings: replaced (deprecated) pragma OPTIONS -fglasgow-exts with
appropriate LANGUAGE pragmas.
jeremy.odonog...@gamil.com**20110527121713
Ignore-this: b973ecb74aa9cda89b5584ad7db0a758
]
[Bump wxcore and wx versions.
jeremy.odonog...@gamil.com**20110527121446
Ignore-this: d47ec669c5ab992bd6e824af97e99c94
]
[Additional libraries required by wxWidgets 2.9
jeremy.odonog...@gamil.com**20110527121335
Ignore-this: bf173efad99a8d824b7d06955ae21511
]
[Update cabal license type to reflect that wxHaskell is licensed under the
wxWidgets license, which has important differences from LGPL.
jeremy.odonog...@gamil.com**20110527121224
Ignore-this: adbd3b7d180c917a9ac8a9732209b9cd
]
[Fix warning: wxEntry is imported from DLL on Windows
jeremy.odonog...@gamil.com**20110527121036
Ignore-this: 6c332bddbcf664664f5eadf4de76bc1f
]
[New technique for generating event handler wrappers.
jeremy.odonog...@gamil.com**20110527120950
Ignore-this: 4868247f42aad9a59c9f82e7de78ef4c
]
[Fix warnings: UNPACK directive cannot be followed.
jeremy.odonog...@gamil.com**20110527120303
Ignore-this: 25a8612a05721c83c30df31a33f088e
]
[Remove deprecated INCLUDE pragmas
jeremy.odonog...@gamil.com**20110527120212
Ignore-this: 8f9e12bf8011933e8a6dc950da0640d2
]
[Remaining fixes for wxWidgets 2.9.x
jeremy.odonog...@gamil.com**20110527115855
Ignore-this: bde14446387f362b459469edf857bc1f
]
[remove wxODBC headers as well...
jeremy.odonog...@gamil.com**20110527112326
Ignore-this: 76081c163a448c330bc0b362abdbeefe
]
[wxODBC removed in wxWidgets 2.9 as it is basically not working, and has not
done so for a long time!
jeremy.odonog...@gamil.com**20110527112148
Ignore-this: ae8a7d1b9ea221c1373ca4ee55718a91
]
[wxWidgets 2.9 changes: remove unused code, remove deprecated functions no
longer present, replace int values with enums.
jeremy.odonog...@gamil.com**20110527112030
Ignore-this: e9519ba8dc1fdd13d52bceafecfbf16b
]
[wxWidgets 2.9 Unicode string changes.
jeremy.odonog...@gamil.com**20110527111128
Ignore-this: 1af1cd9310484dc5f282ea82aa30e392
]
[Remove redundant INCLUDE pragma, remove commented out code, fixes for GHC 7.x
jeremy.odonog...@gamil.com**20110527105958
Ignore-this: 7fc36eb23c42fb3ea241fae67ba84ca7
]
[TAG haskell-platform-2011.2.0.1
Eric Kow <eric....@gmail.com>**20110517115748
Ignore-this: d136315c096f6c8d582b27bb5684176a
]
Patch bundle hash:
1f1ab32d501705446ea0e82dc42fe0b92f68df22
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel