mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 19:56:22 +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;
|
||||
data: gPointer): GBoolean; cdecl;
|
||||
var
|
||||
Mess : TLMessage;
|
||||
GStart, GEnd: gint;
|
||||
Info: PWidgetInfo;
|
||||
EntryText: PgChar;
|
||||
|
@ -381,7 +381,9 @@ var
|
||||
MenuWidget: PGtkWidget; // the popup menu (hbox containing a pixmap and
|
||||
// a label)
|
||||
MenuLabelWidget: PGtkWidget; // the label in the popup menu item
|
||||
{$IFDEF OldAutoSize}
|
||||
allocation: TGtkAllocation;
|
||||
{$ENDIF}
|
||||
begin
|
||||
{$IFDEF NOTEBOOK_DEBUG}
|
||||
DebugLn(['TGtkWSCustomNotebook.AddPage ',dbgsName(ANoteBook),' ',ANotebook.HandleAllocated,' AChild=',dbgsName(AChild),' ',AChild.HandleAllocated,' Child.TabVisible=',AChild.TabVisible]);
|
||||
@ -440,6 +442,8 @@ begin
|
||||
UpdateNoteBookClientWidget(ANoteBook);
|
||||
|
||||
// init the size of the page widget
|
||||
//DebugLn(['TGtkWSCustomNotebook.AddPage ',DbgSName(ANoteBook),' ',dbgs(ANoteBook.BoundsRect)]);
|
||||
{$IFDEF OldAutoSize}
|
||||
allocation.x := ANoteBook.Left;
|
||||
allocation.y := ANoteBook.Top;
|
||||
allocation.width := ANoteBook.Width;
|
||||
@ -448,6 +452,7 @@ begin
|
||||
{$IFDEF VerboseSizeMsg}
|
||||
DebugLn(['TGtkWSCustomNotebook.AddPage PageWidget^.allocation=',dbgs(PageWidget^.allocation),' NotebookWidget=',dbgs(NotebookWidget^.allocation)]);
|
||||
{$ENDIF}
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
class procedure TGtkWSCustomNotebook.MovePage(const ANotebook: TCustomNotebook;
|
||||
|
Loading…
Reference in New Issue
Block a user