mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 06:16:05 +02:00
gtk intf: do not allocate size for notebook on add page
git-svn-id: trunk@24047 -
This commit is contained in:
parent
aed8666af0
commit
ec6bd0f076
@ -495,7 +495,6 @@ end;
|
|||||||
function gtkchanged_editbox_backspace(widget: PGtkWidget;
|
function gtkchanged_editbox_backspace(widget: PGtkWidget;
|
||||||
data: gPointer): GBoolean; cdecl;
|
data: gPointer): GBoolean; cdecl;
|
||||||
var
|
var
|
||||||
Mess : TLMessage;
|
|
||||||
GStart, GEnd: gint;
|
GStart, GEnd: gint;
|
||||||
Info: PWidgetInfo;
|
Info: PWidgetInfo;
|
||||||
EntryText: PgChar;
|
EntryText: PgChar;
|
||||||
|
@ -381,7 +381,9 @@ var
|
|||||||
MenuWidget: PGtkWidget; // the popup menu (hbox containing a pixmap and
|
MenuWidget: PGtkWidget; // the popup menu (hbox containing a pixmap and
|
||||||
// a label)
|
// a label)
|
||||||
MenuLabelWidget: PGtkWidget; // the label in the popup menu item
|
MenuLabelWidget: PGtkWidget; // the label in the popup menu item
|
||||||
|
{$IFDEF OldAutoSize}
|
||||||
allocation: TGtkAllocation;
|
allocation: TGtkAllocation;
|
||||||
|
{$ENDIF}
|
||||||
begin
|
begin
|
||||||
{$IFDEF NOTEBOOK_DEBUG}
|
{$IFDEF NOTEBOOK_DEBUG}
|
||||||
DebugLn(['TGtkWSCustomNotebook.AddPage ',dbgsName(ANoteBook),' ',ANotebook.HandleAllocated,' AChild=',dbgsName(AChild),' ',AChild.HandleAllocated,' Child.TabVisible=',AChild.TabVisible]);
|
DebugLn(['TGtkWSCustomNotebook.AddPage ',dbgsName(ANoteBook),' ',ANotebook.HandleAllocated,' AChild=',dbgsName(AChild),' ',AChild.HandleAllocated,' Child.TabVisible=',AChild.TabVisible]);
|
||||||
@ -440,6 +442,8 @@ begin
|
|||||||
UpdateNoteBookClientWidget(ANoteBook);
|
UpdateNoteBookClientWidget(ANoteBook);
|
||||||
|
|
||||||
// init the size of the page widget
|
// init the size of the page widget
|
||||||
|
//DebugLn(['TGtkWSCustomNotebook.AddPage ',DbgSName(ANoteBook),' ',dbgs(ANoteBook.BoundsRect)]);
|
||||||
|
{$IFDEF OldAutoSize}
|
||||||
allocation.x := ANoteBook.Left;
|
allocation.x := ANoteBook.Left;
|
||||||
allocation.y := ANoteBook.Top;
|
allocation.y := ANoteBook.Top;
|
||||||
allocation.width := ANoteBook.Width;
|
allocation.width := ANoteBook.Width;
|
||||||
@ -448,6 +452,7 @@ begin
|
|||||||
{$IFDEF VerboseSizeMsg}
|
{$IFDEF VerboseSizeMsg}
|
||||||
DebugLn(['TGtkWSCustomNotebook.AddPage PageWidget^.allocation=',dbgs(PageWidget^.allocation),' NotebookWidget=',dbgs(NotebookWidget^.allocation)]);
|
DebugLn(['TGtkWSCustomNotebook.AddPage PageWidget^.allocation=',dbgs(PageWidget^.allocation),' NotebookWidget=',dbgs(NotebookWidget^.allocation)]);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class procedure TGtkWSCustomNotebook.MovePage(const ANotebook: TCustomNotebook;
|
class procedure TGtkWSCustomNotebook.MovePage(const ANotebook: TCustomNotebook;
|
||||||
|
Loading…
Reference in New Issue
Block a user