mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
Workaround for Wx/GTK bug on Linux
This commit is contained in:
parent
71a373e437
commit
865e234a44
2 changed files with 1 additions and 1 deletions
|
@ -17,6 +17,7 @@ sub new {
|
||||||
|
|
||||||
foreach my $opt (@{$p{options}}) {
|
foreach my $opt (@{$p{options}}) {
|
||||||
my $label = Wx::StaticText->new($parent, -1, "$opt->{label}:", Wx::wxDefaultPosition, [180,-1]);
|
my $label = Wx::StaticText->new($parent, -1, "$opt->{label}:", Wx::wxDefaultPosition, [180,-1]);
|
||||||
|
$label->Wrap(180); # needed to avoid Linux/GTK bug
|
||||||
my $field;
|
my $field;
|
||||||
if ($opt->{type} =~ /^(i|f)$/) {
|
if ($opt->{type} =~ /^(i|f)$/) {
|
||||||
$field = Wx::TextCtrl->new($parent, -1, ${$opt->{value}});
|
$field = Wx::TextCtrl->new($parent, -1, ${$opt->{value}});
|
||||||
|
|
|
@ -199,7 +199,6 @@ sub new {
|
||||||
);
|
);
|
||||||
|
|
||||||
$panels{slice} = Wx::BoxSizer->new(wxVERTICAL);
|
$panels{slice} = Wx::BoxSizer->new(wxVERTICAL);
|
||||||
$panels{slice}->Add(-1, 20); # empty space before button
|
|
||||||
my $slice_button = Wx::Button->new($self, -1, "Slice...");
|
my $slice_button = Wx::Button->new($self, -1, "Slice...");
|
||||||
$panels{slice}->Add($slice_button, 0, wxALIGN_CENTER);
|
$panels{slice}->Add($slice_button, 0, wxALIGN_CENTER);
|
||||||
EVT_BUTTON($self, $slice_button, \&do_slice);
|
EVT_BUTTON($self, $slice_button, \&do_slice);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue