projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ugly compilation fix for wxMotif
[wxWidgets.git]
/
src
/
gtk
/
spinctrl.cpp
diff --git
a/src/gtk/spinctrl.cpp
b/src/gtk/spinctrl.cpp
index bcf26bcadb1b7681379d10cfb1de4ed26d52337a..db68c07d703098e78441398aa36108ad5387714e 100644
(file)
--- a/
src/gtk/spinctrl.cpp
+++ b/
src/gtk/spinctrl.cpp
@@
-105,6
+105,8
@@
bool wxSpinCtrl::Create(wxWindow *parent, wxWindowID id,
new_size.x = size_best.x;
if (new_size.y == -1)
new_size.y = size_best.y;
new_size.x = size_best.x;
if (new_size.y == -1)
new_size.y = size_best.y;
+ if (new_size.y > size_best.y)
+ new_size.y = size_best.y;
if ((new_size.x != size.x) || (new_size.y != size.y))
SetSize( new_size.x, new_size.y );
if ((new_size.x != size.x) || (new_size.y != size.y))
SetSize( new_size.x, new_size.y );
@@
-220,7
+222,7
@@
void wxSpinCtrl::OnChar( wxKeyEvent &event )
if (event.KeyCode() == WXK_RETURN)
{
wxWindow *top_frame = m_parent;
if (event.KeyCode() == WXK_RETURN)
{
wxWindow *top_frame = m_parent;
- while (top_frame->GetParent() && !(top_frame->GetParent()->
m_isFrame
))
+ while (top_frame->GetParent() && !(top_frame->GetParent()->
IsTopLevel()
))
top_frame = top_frame->GetParent();
GtkWindow *window = GTK_WINDOW(top_frame->m_widget);
top_frame = top_frame->GetParent();
GtkWindow *window = GTK_WINDOW(top_frame->m_widget);