fix crash while creating PreviewFileControl

git-svn-id: trunk@13556 -
This commit is contained in:
paul 2008-01-01 13:00:28 +00:00
parent 08bcabd139
commit 49f04ab86a
2 changed files with 10 additions and 3 deletions

View File

@ -312,7 +312,7 @@ uses
// GtkWSDirSel,
// GtkWSEditBtn,
GtkWSExtCtrls,
// GtkWSExtDlgs,
GtkWSExtDlgs,
// GtkWSFileCtrl,
GtkWSForms,
GtkWSGrids,

View File

@ -27,7 +27,14 @@ unit GtkWSExtDlgs;
interface
uses
ExtDlgs, WSExtDlgs, WSLCLClasses;
{$IFDEF gtk2}
glib2, gdk2pixbuf, gdk2, gtk2, Pango,
{$ELSE}
glib, gdk, gtk, gdkpixbuf, GtkFontCache,
{$ENDIF}
Classes, Controls, ExtDlgs, LCLType,
WSExtDlgs, WSLCLClasses,
GtkDef, GtkProc, GtkWsControls, GtkInt;
type
@ -38,7 +45,7 @@ type
protected
class procedure SetCallbacks(const AGtkWidget: PGtkWidget; const AWidgetInfo: PWidgetInfo); virtual;
public
class function CreateHandle(const AWinControl: TWinControl; const AParams: TCreateParams): TLCLIntfHandle; override;
class function CreateHandle(const AWinControl: TWinControl; const AParams: TCreateParams): TLCLIntfHandle; override;
end;
{ TGtkWSPreviewFileDialog }