View Issue Details

IDProjectCategoryView StatusLast Update
0036991LazarusLCLpublic2020-04-29 12:44
Reporterbarlone Assigned ToZeljan Rikalo  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.0.9 (SVN) 
Summary0036991: Fix for compile apps with GTK2 interfaces for Windows
DescriptionAfter applying the patches that are attached, my program worked fine
TagsNo tags attached.
Fixed in Revision63091
LazTarget-
WidgetsetGTK 2
Attached Files

Activities

barlone

2020-04-29 12:24

reporter  

gtk2int.pas.patch (440 bytes)   
Index: gtk2int.pas
===================================================================
--- gtk2int.pas	(revision 63090)
+++ gtk2int.pas	(working copy)
@@ -51,6 +51,7 @@
 
 type
 
+{$IFDEF HASX}
   { TDummyWidget }
 
   TDummyWidget = class(TObject) {needed for accurate frame on x11}
@@ -68,6 +69,7 @@
     procedure HideWidget;
     property Widget: PGtkWidget read FWidget write FWidget;
   end;
+{$ENDIF}
 
   { TGtk2WidgetSet }
 
gtk2int.pas.patch (440 bytes)   
gtk2wsforms.pp.patch (538 bytes)   
Index: gtk2wsforms.pp
===================================================================
--- gtk2wsforms.pp	(revision 63090)
+++ gtk2wsforms.pp	(working copy)
@@ -417,9 +417,11 @@
     P := gtk_hbox_new(false, 0);
   end;
 
+{$IFDEF HASX}
   if (AWinControl = Application.MainForm) and
     not Application.HasOption('disableaccurateframe') then
       Gtk2WidgetSet.CreateDummyWidgetFrame(-1, -1, -1, -1);
+{$ENDIF}
 
   WidgetInfo := CreateWidgetInfo(P, AWinControl, AParams);
   WidgetInfo^.FormBorderStyle := Ord(ABorderStyle);
gtk2wsforms.pp.patch (538 bytes)   

Zeljan Rikalo

2020-04-29 12:44

developer   ~0122523

Thanks for the patch. Please test and close if ok.

Issue History

Date Modified Username Field Change
2020-04-29 12:24 barlone New Issue
2020-04-29 12:24 barlone File Added: gtk2int.pas.patch
2020-04-29 12:24 barlone File Added: gtk2wsforms.pp.patch
2020-04-29 12:44 Zeljan Rikalo Assigned To => Zeljan Rikalo
2020-04-29 12:44 Zeljan Rikalo Status new => resolved
2020-04-29 12:44 Zeljan Rikalo Resolution open => fixed
2020-04-29 12:44 Zeljan Rikalo Fixed in Revision => 63091
2020-04-29 12:44 Zeljan Rikalo LazTarget => -
2020-04-29 12:44 Zeljan Rikalo Widgetset GTK 2 => GTK 2
2020-04-29 12:44 Zeljan Rikalo Note Added: 0122523