mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 02:49:19 +02:00
gtk2 interface: removed workaround for calling inherited (bug #9415)
git-svn-id: trunk@11895 -
This commit is contained in:
parent
09e1f9441a
commit
37abeb0106
@ -37,8 +37,8 @@ uses
|
|||||||
StdCtrls, LMessages,
|
StdCtrls, LMessages,
|
||||||
////////////////////////////////////////////////////
|
////////////////////////////////////////////////////
|
||||||
glib2, gdk2, gtk2, Pango,
|
glib2, gdk2, gtk2, Pango,
|
||||||
WSStdCtrls, WSLCLClasses, GtkWSStdCtrls, Gtk2Int, LCLType, GtkDef, LCLProc,
|
WSControls, WSStdCtrls, WSLCLClasses, GtkWSStdCtrls, Gtk2Int, LCLType, GtkDef,
|
||||||
Gtk2CellRenderer, GTKWinApiWindow, gtkglobals, gtkproc, InterfaceBase;
|
LCLProc, Gtk2CellRenderer, GTKWinApiWindow, gtkglobals, gtkproc, InterfaceBase;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
@ -1327,9 +1327,9 @@ begin
|
|||||||
|
|
||||||
//DebugLn(['TGtk2WSCustomComboBox.DestroyHandle ',dbgsName(AWinControl),' ClassParent=',ClassParent.ClassName]);
|
//DebugLn(['TGtk2WSCustomComboBox.DestroyHandle ',dbgsName(AWinControl),' ClassParent=',ClassParent.ClassName]);
|
||||||
|
|
||||||
{$NOTE TGtk2WSCustomComboBox.DestroyHandle: fixme: calling inherited does not call TGtkWSWinControl.DestroyHandle}
|
// inherited DestroyHandle doesn't work, because that is determined at
|
||||||
//inherited DestroyHandle(AWinControl);
|
// compile time, while the WS class hierarchy is created at runtime
|
||||||
TGtk2WidgetSet(WidgetSet).DestroyLCLComponent(AWinControl);
|
TWSWinControlClass(TGtk2WSCustomComboBox.Classparent).DestroyHandle(AWinControl);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TGtk2WSCustomGroupBox }
|
{ TGtk2WSCustomGroupBox }
|
||||||
|
Loading…
Reference in New Issue
Block a user