Minor optical things.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -483,7 +483,13 @@ void wxGridCellTextEditor::SetSize(const wxRect& rectOrig)
|
|||||||
// unix
|
// unix
|
||||||
//
|
//
|
||||||
#if defined(__WXGTK__)
|
#if defined(__WXGTK__)
|
||||||
rect.Inflate(rect.x ? 1 : 0, rect.y ? 1 : 0);
|
if (rect.x != 0)
|
||||||
|
{
|
||||||
|
rect.x += 1;
|
||||||
|
rect.y += 1;
|
||||||
|
rect.width -= 1;
|
||||||
|
rect.height -= 1;
|
||||||
|
}
|
||||||
#else // !GTK
|
#else // !GTK
|
||||||
int extra_x = ( rect.x > 2 )? 2 : 1;
|
int extra_x = ( rect.x > 2 )? 2 : 1;
|
||||||
int extra_y = ( rect.y > 2 )? 2 : 1;
|
int extra_y = ( rect.y > 2 )? 2 : 1;
|
||||||
@@ -5455,9 +5461,10 @@ void wxGrid::ShowCellEditControl()
|
|||||||
new wxGridCellEditorEvtHandler(this, editor));
|
new wxGridCellEditorEvtHandler(this, editor));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
editor->Show( TRUE, attr );
|
||||||
|
|
||||||
editor->SetSize( rect );
|
editor->SetSize( rect );
|
||||||
|
|
||||||
editor->Show( TRUE, attr );
|
|
||||||
editor->BeginEdit(row, col, this);
|
editor->BeginEdit(row, col, this);
|
||||||
attr->DecRef();
|
attr->DecRef();
|
||||||
}
|
}
|
||||||
|
@@ -105,6 +105,8 @@ bool wxSpinCtrl::Create(wxWindow *parent, wxWindowID id,
|
|||||||
new_size.x = size_best.x;
|
new_size.x = size_best.x;
|
||||||
if (new_size.y == -1)
|
if (new_size.y == -1)
|
||||||
new_size.y = size_best.y;
|
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))
|
if ((new_size.x != size.x) || (new_size.y != size.y))
|
||||||
SetSize( new_size.x, new_size.y );
|
SetSize( new_size.x, new_size.y );
|
||||||
|
|
||||||
|
@@ -105,6 +105,8 @@ bool wxSpinCtrl::Create(wxWindow *parent, wxWindowID id,
|
|||||||
new_size.x = size_best.x;
|
new_size.x = size_best.x;
|
||||||
if (new_size.y == -1)
|
if (new_size.y == -1)
|
||||||
new_size.y = size_best.y;
|
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))
|
if ((new_size.x != size.x) || (new_size.y != size.y))
|
||||||
SetSize( new_size.x, new_size.y );
|
SetSize( new_size.x, new_size.y );
|
||||||
|
|
||||||
|
@@ -70,5 +70,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{pref}/include/wx/*
|
%{pref}/include/wx/*
|
||||||
%dir %{pref}/lib/wx
|
%dir %{pref}/lib/wx
|
||||||
%{pref}/lib/wx/*
|
%{pref}/lib/wx/*
|
||||||
|
%attr(755, -, -) %{pref}/bin/wxgtk-config
|
||||||
%attr(755, -, -) %{pref}/bin/wx-config
|
%attr(755, -, -) %{pref}/bin/wx-config
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# Note that this is NOT a relocatable package
|
# Note that this is NOT a relocatable package
|
||||||
%define pref /usr
|
%define pref /usr
|
||||||
%define ver 2.1.0
|
%define ver 2.1.14
|
||||||
%define rel 8
|
%define rel 0
|
||||||
|
|
||||||
Summary: The Motif port of the wxWindows library
|
Summary: The Motif port of the wxWindows library
|
||||||
Name: wxMotif
|
Name: wxMotif
|
||||||
|
Reference in New Issue
Block a user