mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 00:54:03 +02:00
gtk2 intf: GtkNoWindowFixed: removed gdkwindows for groupboxes and notebooks
git-svn-id: trunk@12976 -
This commit is contained in:
parent
28578c3a91
commit
8f7f9fbebb
@ -1919,6 +1919,7 @@ begin
|
|||||||
DebugLn('TCodeToolManager.GatherIdentifiers A ',Code.Filename,' x=',dbgs(x),' y=',dbgs(y));
|
DebugLn('TCodeToolManager.GatherIdentifiers A ',Code.Filename,' x=',dbgs(x),' y=',dbgs(y));
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
if not InitCurCodeTool(Code) then exit;
|
if not InitCurCodeTool(Code) then exit;
|
||||||
|
if IdentifierList<>nil then IdentifierList.Clear;
|
||||||
CursorPos.X:=X;
|
CursorPos.X:=X;
|
||||||
CursorPos.Y:=Y;
|
CursorPos.Y:=Y;
|
||||||
CursorPos.Code:=Code;
|
CursorPos.Code:=Code;
|
||||||
|
@ -3828,7 +3828,8 @@ function CreateFixedClientWidget(WithWindow: Boolean = True): PGTKWidget;
|
|||||||
begin
|
begin
|
||||||
Result := gtk_fixed_new();
|
Result := gtk_fixed_new();
|
||||||
{$IFDEF GTK2}
|
{$IFDEF GTK2}
|
||||||
gtk_fixed_set_has_window(PGtkFixed(Result), WithWindow);
|
if WithWindow then
|
||||||
|
gtk_fixed_set_has_window(PGtkFixed(Result), true);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -7860,7 +7861,7 @@ var
|
|||||||
Result:=gtk_notebook_new;
|
Result:=gtk_notebook_new;
|
||||||
NoteBookWidget := PGtkNoteBook(Result);
|
NoteBookWidget := PGtkNoteBook(Result);
|
||||||
//NoteBookPageWidget := gtk_hbox_new(false, 0);
|
//NoteBookPageWidget := gtk_hbox_new(false, 0);
|
||||||
NoteBookPageClientAreaWidget := CreateFixedClientWidget(False);
|
NoteBookPageClientAreaWidget := CreateFixedClientWidget{$IFDEF GtkNoWindowFixed}(false){$ENDIF};
|
||||||
gtk_widget_show(NoteBookPageClientAreaWidget);
|
gtk_widget_show(NoteBookPageClientAreaWidget);
|
||||||
//gtk_container_add(GTK_CONTAINER(NoteBookPageWidget),
|
//gtk_container_add(GTK_CONTAINER(NoteBookPageWidget),
|
||||||
// NoteBookPageClientAreaWidget);
|
// NoteBookPageClientAreaWidget);
|
||||||
@ -8063,7 +8064,7 @@ begin
|
|||||||
If CompareText(WName,LazGtkStyleNames[lgsGroupBox])=0 then begin
|
If CompareText(WName,LazGtkStyleNames[lgsGroupBox])=0 then begin
|
||||||
lgs:=lgsGroupBox;
|
lgs:=lgsGroupBox;
|
||||||
StyleObject^.Widget := gtk_frame_new('GroupBox');
|
StyleObject^.Widget := gtk_frame_new('GroupBox');
|
||||||
WindowFixedWidget:=CreateFixedClientWidget;
|
WindowFixedWidget:=CreateFixedClientWidget{$IFDEF GtkNoWindowFixed}(false){$ENDIF};
|
||||||
gtk_widget_show(WindowFixedWidget);
|
gtk_widget_show(WindowFixedWidget);
|
||||||
gtk_container_add(PGtkContainer(StyleObject^.Widget), WindowFixedWidget);
|
gtk_container_add(PGtkContainer(StyleObject^.Widget), WindowFixedWidget);
|
||||||
gtk_object_set_data(PGtkObject(StyleObject^.Widget),'fixedwidget',WindowFixedWidget);
|
gtk_object_set_data(PGtkObject(StyleObject^.Widget),'fixedwidget',WindowFixedWidget);
|
||||||
|
@ -367,7 +367,7 @@ function FindFixedLastChildListItem(ParentFixed: PGtkFixed): PGList;
|
|||||||
function GetFixedChildListWidget(Item: PGList): PGtkWidget;
|
function GetFixedChildListWidget(Item: PGList): PGtkWidget;
|
||||||
|
|
||||||
// fixed widgets
|
// fixed widgets
|
||||||
function CreateFixedClientWidget(WithWindow: Boolean = True): PGTKWidget;
|
function CreateFixedClientWidget(WithWindow: Boolean = true): PGTKWidget;
|
||||||
Procedure FixedMoveControl(Parent, Child: PGTKWidget; Left, Top: Longint);
|
Procedure FixedMoveControl(Parent, Child: PGTKWidget; Left, Top: Longint);
|
||||||
Procedure FixedPutControl(Parent, Child: PGTKWidget; Left, Top: Longint);
|
Procedure FixedPutControl(Parent, Child: PGTKWidget; Left, Top: Longint);
|
||||||
|
|
||||||
|
@ -4632,13 +4632,13 @@ begin
|
|||||||
{$undef GtkNoWindowFixed}
|
{$undef GtkNoWindowFixed}
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
{$ifndef GtkNoWindowFixed}
|
{$ifdef GtkNoWindowFixed}
|
||||||
Result := gtk_hbox_new(false, 0);
|
|
||||||
TempWidget := CreateFixedClientWidget;
|
|
||||||
{$else}
|
|
||||||
Result := gtk_event_box_new;
|
Result := gtk_event_box_new;
|
||||||
gtk_event_box_set_visible_window(PGtkEventBox(Result), False);
|
gtk_event_box_set_visible_window(PGtkEventBox(Result), False);
|
||||||
TempWidget := CreateFixedClientWidget(False);
|
TempWidget := CreateFixedClientWidget(False);
|
||||||
|
{$else}
|
||||||
|
Result := gtk_hbox_new(false, 0);
|
||||||
|
TempWidget := CreateFixedClientWidget;
|
||||||
{$endif}
|
{$endif}
|
||||||
gtk_container_add(GTK_CONTAINER(Result), TempWidget);
|
gtk_container_add(GTK_CONTAINER(Result), TempWidget);
|
||||||
gtk_widget_show(TempWidget);
|
gtk_widget_show(TempWidget);
|
||||||
@ -5272,7 +5272,7 @@ begin
|
|||||||
// -> add a dummy page
|
// -> add a dummy page
|
||||||
DummyWidget := gtk_hbox_new(false, 0);
|
DummyWidget := gtk_hbox_new(false, 0);
|
||||||
{$IFDEF Gtk}
|
{$IFDEF Gtk}
|
||||||
AWidget := CreateFixedClientWidget;
|
AWidget := CreateFixedClientWidget{$IFDEF GtkNoWindowFixed}(false){$ENDIF};
|
||||||
gtk_widget_show(AWidget);
|
gtk_widget_show(AWidget);
|
||||||
//gtk_box_pack_start_defaults(GTK_BOX(DummyWidget),AWidget);
|
//gtk_box_pack_start_defaults(GTK_BOX(DummyWidget),AWidget);
|
||||||
gtk_container_add(GTK_CONTAINER(DummyWidget), AWidget);
|
gtk_container_add(GTK_CONTAINER(DummyWidget), AWidget);
|
||||||
|
@ -1644,7 +1644,7 @@ var
|
|||||||
p : pointer; // ptr to the newly created GtkWidget
|
p : pointer; // ptr to the newly created GtkWidget
|
||||||
begin
|
begin
|
||||||
P := gtk_frame_new (AParams.Caption);
|
P := gtk_frame_new (AParams.Caption);
|
||||||
TempWidget := CreateFixedClientWidget;
|
TempWidget := CreateFixedClientWidget{$IFDEF GtkNoWindowFixed}(false){$ENDIF};
|
||||||
gtk_container_add(GTK_CONTAINER(p), TempWidget);
|
gtk_container_add(GTK_CONTAINER(p), TempWidget);
|
||||||
gtk_widget_show(TempWidget);
|
gtk_widget_show(TempWidget);
|
||||||
SetFixedWidget(p, TempWidget);
|
SetFixedWidget(p, TempWidget);
|
||||||
|
Loading…
Reference in New Issue
Block a user