Skip to content

Draft: Windowsxwtgtk3: Do not merge #154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 400 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
400 commits
Select commit Hold shift + click to select a range
2e2670c
update
MakiWolf Dec 25, 2023
8fe8797
update
MakiWolf Dec 25, 2023
d330325
update
MakiWolf Dec 25, 2023
528a10e
older version
MakiWolf Dec 25, 2023
d884937
comment out
MakiWolf Dec 27, 2023
b572709
comment out
MakiWolf Dec 30, 2023
f383041
fix startup
MakiWolf Dec 30, 2023
530a73c
move references
MakiWolf Jan 2, 2024
949ddc3
delete crash
MakiWolf Jan 2, 2024
a236687
fix reference
MakiWolf Jan 2, 2024
ae129a3
update references
MakiWolf Jan 2, 2024
a2276de
update references
MakiWolf Jan 3, 2024
57dfa6e
update
MakiWolf Jan 5, 2024
cdbf07a
update
MakiWolf Jan 5, 2024
9960af8
update
MakiWolf Jan 6, 2024
9b07120
comment out
MakiWolf Jan 6, 2024
d90e234
add dll
MakiWolf Jan 6, 2024
04dcf83
add reference
MakiWolf Jan 7, 2024
0e8e366
Mono.Addins.Setup.HttpClientProvider enable it again after changing s…
MakiWolf Jan 7, 2024
8aa9bfe
update to own fork
MakiWolf Jan 8, 2024
517be14
update xwt with latest changes from master
MakiWolf Jan 8, 2024
e648feb
update xwt
MakiWolf Jan 8, 2024
23f9764
change to dotdevelop
MakiWolf Jan 10, 2024
b24e007
update submodule
MakiWolf Jan 10, 2024
8018a8c
if else statements
MakiWolf Jan 10, 2024
53ade7b
fix reference and remove gtk3 from github actions
MakiWolf Jan 11, 2024
9320fe7
change submodule to fork
MakiWolf Jan 12, 2024
a81ae55
update submodule
MakiWolf Jan 12, 2024
e76acc4
enable again
MakiWolf Jan 12, 2024
0b10a96
enable again
MakiWolf Jan 12, 2024
8330c80
enable again
MakiWolf Jan 12, 2024
6d9f697
enable again
MakiWolf Jan 12, 2024
b4589a2
enable again
MakiWolf Jan 12, 2024
25a0007
enable again
MakiWolf Jan 12, 2024
fc7729a
enable again
MakiWolf Jan 12, 2024
01070cc
update to System.Threading.Tasks.Task.Run
MakiWolf Jan 12, 2024
3190164
enable again
MakiWolf Jan 12, 2024
9ac51d8
enable again
MakiWolf Jan 12, 2024
7b45831
restore gtkworkarounds
MakiWolf Jan 12, 2024
a34f081
restore
MakiWolf Jan 12, 2024
89850d6
PlatformName
MakiWolf Jan 13, 2024
f240b7b
restore fontservice
MakiWolf Jan 13, 2024
548c49e
comment out default font
MakiWolf Jan 13, 2024
7221d9e
enable again
MakiWolf Jan 13, 2024
da53b18
set background color
MakiWolf Jan 13, 2024
9070a8d
MonoDevelop.Components.SearchEntry
MakiWolf Jan 13, 2024
9357348
new solution dialog
MakiWolf Jan 13, 2024
63444bb
policy options dialog
MakiWolf Jan 13, 2024
3c7ca8a
about dialog
MakiWolf Jan 13, 2024
3054f08
update
MakiWolf Jan 13, 2024
b5457cd
restore
MakiWolf Jan 13, 2024
3cbfffc
update
MakiWolf Jan 13, 2024
ee3afbf
update
MakiWolf Jan 14, 2024
7f16494
update
MakiWolf Jan 14, 2024
b318c0d
update
MakiWolf Jan 14, 2024
231105a
update
MakiWolf Jan 14, 2024
829ba11
update
MakiWolf Jan 14, 2024
7809e49
update
MakiWolf Jan 14, 2024
2d40b28
restore to previos version
MakiWolf Jan 15, 2024
986650a
enable again
MakiWolf Jan 15, 2024
5934228
update submodule
MakiWolf Jan 15, 2024
11278c4
enable again
MakiWolf Jan 15, 2024
2f57858
enable again
MakiWolf Jan 15, 2024
6f6e0c0
enable again
MakiWolf Jan 15, 2024
2aee26c
enable again
MakiWolf Jan 15, 2024
e3328c0
enable again
MakiWolf Jan 15, 2024
ad5e5e7
enable again
MakiWolf Jan 15, 2024
9203393
update
MakiWolf Jan 15, 2024
e3a8933
update
MakiWolf Jan 16, 2024
1d1a4ad
update
MakiWolf Jan 16, 2024
22a3809
update
MakiWolf Jan 16, 2024
ea2026f
enable again
MakiWolf Jan 16, 2024
3fd81b3
update
MakiWolf Jan 16, 2024
73edcf9
restore
MakiWolf Jan 17, 2024
20dc638
enable again
MakiWolf Jan 17, 2024
e683dc6
enable again
MakiWolf Jan 17, 2024
7779c39
enable again
MakiWolf Jan 17, 2024
7733189
enable again
MakiWolf Jan 17, 2024
62b1662
update
MakiWolf Jan 17, 2024
86d1b58
restore
MakiWolf Jan 17, 2024
9a64b25
enable again
MakiWolf Jan 18, 2024
1884383
restore
MakiWolf Jan 18, 2024
17f9eba
enable again
MakiWolf Jan 18, 2024
f2c67ef
enable again
MakiWolf Jan 18, 2024
2d3434f
enable again
MakiWolf Jan 18, 2024
acd1559
update
MakiWolf Jan 18, 2024
3519752
update
MakiWolf Jan 18, 2024
5f24187
update
MakiWolf Jan 18, 2024
91d38ba
update
MakiWolf Jan 18, 2024
f2bb723
update
MakiWolf Jan 18, 2024
a898076
update
MakiWolf Jan 19, 2024
39e97b8
update
MakiWolf Jan 19, 2024
309a76b
update
MakiWolf Jan 19, 2024
9843f68
restore
MakiWolf Jan 19, 2024
04c7352
update
MakiWolf Jan 21, 2024
e75283d
update
MakiWolf Jan 21, 2024
fe17732
MonoDevelop.Ide/MonoDevelop.Components/PangoUtil.cs: fix LIBGTK, LIBGDK
lytico Jan 22, 2024
902d3a9
MonoDevelop.TextEditor.csproj: try reimplement TextArea
lytico Jan 22, 2024
8ec8f2a
MonoDevelop.TextEditor.csproj: try reimplement TextArea II
lytico Jan 22, 2024
a8cc754
Merge pull request #21 from lytico/lytico/hackweek2nugetgtk_tryfix_So…
MakiWolf Jan 23, 2024
caa80f4
update
MakiWolf Jan 23, 2024
fe39d4d
MonoDevelop.Ide: refactor some Expose -> Draw
lytico Jan 24, 2024
a609d78
MonoDevelop.Ide: refactor some Expose -> Draw
lytico Jan 24, 2024
9429db9
Merge pull request #22 from lytico/lytico/hackweek2nugetgtk_tryEnhanc…
MakiWolf Jan 24, 2024
7cb5055
update
MakiWolf Jan 24, 2024
23b1c64
update
MakiWolf Jan 24, 2024
dcd1055
MonoDevelop.Ide MonoDevelop.Components.DockNotebook TabStrip: refacto…
lytico Jan 26, 2024
91ee467
MonoDevelop.Ide MonoDevelop.Components.DockNotebook PlaceholderWindow…
lytico Jan 26, 2024
9b7dbff
Mono.TextEditor: remove some obsolete HelperMethods.cs
lytico Jan 26, 2024
eecc824
Merge pull request #23 from lytico/lytico/hackweek2nugetgtk_tryEnhanc…
MakiWolf Jan 26, 2024
0581bee
Update .gitmodules
MakiWolf Feb 12, 2024
ecfeae6
update submodules
MakiWolf Feb 13, 2024
257c89c
update
MakiWolf Feb 13, 2024
86c26f9
update
MakiWolf Feb 13, 2024
8673854
update
MakiWolf Feb 13, 2024
e65d761
update
MakiWolf Feb 13, 2024
b7a4225
update
MakiWolf Feb 13, 2024
698541e
update
MakiWolf Feb 13, 2024
bef4ee8
update
MakiWolf Feb 13, 2024
70b2ddc
vseditor api update from repo
MakiWolf Feb 21, 2024
9337057
update
MakiWolf Feb 21, 2024
84eaa03
remove notr used references
MakiWolf Feb 22, 2024
4434cf6
update welcome page
MakiWolf Feb 23, 2024
f13cd12
update
MakiWolf Feb 23, 2024
0610950
enable again
MakiWolf Feb 23, 2024
8402581
update
MakiWolf Feb 23, 2024
8afd408
update
MakiWolf Feb 23, 2024
46baa48
update
MakiWolf Feb 23, 2024
8312d44
update
MakiWolf Feb 23, 2024
482d512
update
MakiWolf Feb 23, 2024
71fcd3d
update
MakiWolf Feb 23, 2024
258db2a
update
MakiWolf Feb 23, 2024
3920085
update
MakiWolf Feb 23, 2024
98bb539
update
MakiWolf Feb 24, 2024
11a0b9f
update
MakiWolf Feb 24, 2024
4829a49
update
MakiWolf Feb 24, 2024
ac3df3b
update
MakiWolf Feb 24, 2024
501188c
update
MakiWolf Feb 24, 2024
d52053c
update
MakiWolf Feb 24, 2024
8eff6b2
update
MakiWolf Feb 29, 2024
67c6c63
update
MakiWolf Feb 29, 2024
8bb4375
update
MakiWolf Feb 29, 2024
36ffea3
update
MakiWolf Feb 29, 2024
c7abb00
update
MakiWolf Feb 29, 2024
908feb8
update
MakiWolf Feb 29, 2024
d97c5e5
update
MakiWolf Feb 29, 2024
7f6506a
restore
MakiWolf Feb 29, 2024
20b2937
update
MakiWolf Feb 29, 2024
176c2dc
update
MakiWolf Feb 29, 2024
18103fc
update
MakiWolf Feb 29, 2024
35fccdb
update
MakiWolf Feb 29, 2024
5963e50
update
MakiWolf Mar 1, 2024
9088f2d
update
MakiWolf Mar 1, 2024
5ece050
update
MakiWolf Mar 1, 2024
86d228a
update
MakiWolf Mar 1, 2024
8f3d7b4
update
MakiWolf Mar 1, 2024
f9c5910
update
MakiWolf Mar 1, 2024
f884476
update
MakiWolf Mar 1, 2024
f05b848
update
MakiWolf Mar 1, 2024
f3d6bce
update
MakiWolf Mar 1, 2024
2222277
update
MakiWolf Mar 1, 2024
ad7e083
update
MakiWolf Mar 1, 2024
8358fb5
update
MakiWolf Mar 1, 2024
0641088
update
MakiWolf Mar 1, 2024
80be201
update
MakiWolf Mar 1, 2024
1693ffb
update
MakiWolf Mar 1, 2024
2e0374c
update
MakiWolf Mar 1, 2024
d16ec2d
update
MakiWolf Mar 2, 2024
38e63e2
restore
MakiWolf Mar 2, 2024
6f87aef
update
MakiWolf Mar 2, 2024
95bb6f9
update
MakiWolf Mar 2, 2024
9ce86c7
update
MakiWolf Mar 2, 2024
e7588f1
update
MakiWolf Mar 2, 2024
4468b26
update
MakiWolf Mar 2, 2024
c74895b
update
MakiWolf Mar 2, 2024
e9da4c2
update
MakiWolf Mar 2, 2024
aa23486
Merge pull request #24 from MakiWolf/hackweek2nugetgtk
MakiWolf Mar 2, 2024
cc576b2
update
MakiWolf Mar 3, 2024
15db6ad
update
MakiWolf Mar 3, 2024
b0b5ff5
update
MakiWolf Mar 4, 2024
582846b
update
MakiWolf Mar 4, 2024
96ebc8e
update
MakiWolf Mar 5, 2024
f6c72b1
update
MakiWolf Mar 5, 2024
01b3d1f
update
MakiWolf Mar 5, 2024
c824848
update
MakiWolf Mar 5, 2024
5e447ef
update
MakiWolf Mar 5, 2024
c87b811
update
MakiWolf Mar 5, 2024
64b5c38
update
MakiWolf Mar 5, 2024
359ded5
update
MakiWolf Mar 5, 2024
5efded6
update
MakiWolf Mar 5, 2024
1ac3e29
update
MakiWolf Mar 5, 2024
000b366
update
MakiWolf Mar 5, 2024
41271ac
Merge pull request #25 from MakiWolf/hackweek2nugetgtk
MakiWolf Mar 6, 2024
7e1df16
update
MakiWolf Mar 6, 2024
5634ab0
update
MakiWolf Mar 6, 2024
78f3d63
update
MakiWolf Mar 21, 2024
d8141ed
update
MakiWolf Mar 21, 2024
a885cb4
update
MakiWolf Mar 21, 2024
2898e50
update
MakiWolf Mar 21, 2024
1a0fbdb
update
MakiWolf Mar 21, 2024
880b574
update
MakiWolf Mar 21, 2024
00551ff
update
MakiWolf Mar 22, 2024
a7d01b5
update
MakiWolf Mar 22, 2024
1bd5aa3
update
MakiWolf Mar 22, 2024
0d7b094
update
MakiWolf Mar 22, 2024
fbe6a66
update
MakiWolf Mar 23, 2024
ff193a1
update
MakiWolf Mar 23, 2024
6c9c2b0
Merge pull request #26 from MakiWolf/hackweek2nugetgtk
MakiWolf Mar 23, 2024
5901371
update
MakiWolf Mar 23, 2024
0c5f03a
update
MakiWolf Mar 23, 2024
7c32c03
update
MakiWolf Mar 25, 2024
4032cab
update
MakiWolf Mar 25, 2024
427c29e
update
MakiWolf Mar 26, 2024
07626b6
update
MakiWolf Mar 26, 2024
1d5d18d
update
MakiWolf Mar 26, 2024
5e2323d
update
MakiWolf Mar 26, 2024
d69cdc3
update
MakiWolf Mar 27, 2024
374f10f
update
MakiWolf Mar 27, 2024
b877320
update
MakiWolf Mar 27, 2024
c93811f
update
MakiWolf Mar 27, 2024
71a6544
update
MakiWolf Mar 29, 2024
f0664a2
update
MakiWolf Mar 29, 2024
943485d
update
MakiWolf Apr 6, 2024
4445e9a
update
MakiWolf Apr 6, 2024
75b9d12
update
MakiWolf Apr 6, 2024
74dfcb0
update
MakiWolf Apr 6, 2024
8654051
update
MakiWolf Apr 6, 2024
c2136f6
update
MakiWolf Apr 6, 2024
1c10fb9
update
MakiWolf Apr 6, 2024
28d895f
update
MakiWolf Apr 7, 2024
6d28d10
update
MakiWolf Apr 7, 2024
50b05da
update
MakiWolf Apr 8, 2024
61d04a6
update
MakiWolf Apr 8, 2024
c87d14d
update
MakiWolf Apr 9, 2024
90d2cbe
update
MakiWolf Apr 9, 2024
898d128
update
MakiWolf Apr 9, 2024
6ce8929
update
MakiWolf Apr 9, 2024
206cee9
update
MakiWolf Apr 9, 2024
e9894cb
update
MakiWolf Apr 9, 2024
0c0d6dd
update
MakiWolf Apr 10, 2024
87a70b8
update
MakiWolf Apr 10, 2024
3051659
update
MakiWolf Apr 11, 2024
3854013
update
MakiWolf Apr 11, 2024
776eb49
update
MakiWolf Apr 11, 2024
d417741
update
MakiWolf Apr 12, 2024
96af35c
update
MakiWolf Apr 15, 2024
65942d4
update
MakiWolf Apr 19, 2024
6253db5
update
MakiWolf May 6, 2024
8d47739
update
MakiWolf Sep 23, 2024
5a0b20e
Merge branch 'hackweek2nugetgtk' of https://github.com/MakiWolf/dotde…
MakiWolf Sep 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// HelperMethods.cs
//
//
// Cut & paste from PangoCairoHelper.
//
// Author:
Expand Down Expand Up @@ -40,21 +40,21 @@ static class HelperMethods
{
public static T Kill<T>(this T gc) where T : IDisposable
{
if (gc != null)
if (gc != null)
gc.Dispose ();
return default(T);
}

public static T Kill<T>(this T gc, Action<T> action) where T : IDisposable
{
if (gc != null) {
action (gc);
gc.Dispose ();
}

return default(T);
}

/*
[DllImport(PangoUtil.LIBPANGOCAIRO, CallingConvention=CallingConvention.Cdecl)]
static extern void pango_cairo_show_layout (IntPtr cr, IntPtr layout);
Expand All @@ -64,65 +64,61 @@ public static void ShowLayout (this Cairo.Context cr, Pango.Layout layout)
pango_cairo_show_layout (cr == null ? IntPtr.Zero : cr.Handle, layout == null ? IntPtr.Zero : layout.Handle);
}
*/
[DllImport(PangoUtil.LIBPANGOCAIRO, CallingConvention=CallingConvention.Cdecl)]
static extern IntPtr pango_cairo_create_layout (IntPtr cr);

public static Pango.Layout CreateLayout (this Cairo.Context cr)
{
IntPtr raw_ret = pango_cairo_create_layout (cr == null ? IntPtr.Zero : cr.Handle);
return GLib.Object.GetObject (raw_ret, true) as Pango.Layout;
return Pango.CairoHelper.CreateLayout (cr);
}

[DllImport(PangoUtil.LIBPANGOCAIRO, CallingConvention=CallingConvention.Cdecl)]
static extern void pango_cairo_layout_path (IntPtr cr, IntPtr layout);
// [DllImport(PangoUtil.LIBPANGOCAIRO, CallingConvention=CallingConvention.Cdecl)]
// static extern void pango_cairo_layout_path (IntPtr cr, IntPtr layout);
//
// public static void LayoutPath (this Cairo.Context cr, Pango.Layout layout)
// {
// pango_cairo_layout_path (cr == null ? IntPtr.Zero : cr.Handle, layout == null ? IntPtr.Zero : layout.Handle);
// }

public static void LayoutPath (this Cairo.Context cr, Pango.Layout layout)
{
pango_cairo_layout_path (cr == null ? IntPtr.Zero : cr.Handle, layout == null ? IntPtr.Zero : layout.Handle);
}
// [DllImport(PangoUtil.LIBPANGOCAIRO, CallingConvention=CallingConvention.Cdecl)]
// static extern void pango_cairo_context_set_resolution (IntPtr pango_context, double dpi);
//
// public static void ContextSetResolution (this Pango.Context context, double dpi)
// {
// pango_cairo_context_set_resolution (context == null ? IntPtr.Zero : context.Handle, dpi);
// }

[DllImport(PangoUtil.LIBPANGOCAIRO, CallingConvention=CallingConvention.Cdecl)]
static extern void pango_cairo_context_set_resolution (IntPtr pango_context, double dpi);

public static void ContextSetResolution (this Pango.Context context, double dpi)
{
pango_cairo_context_set_resolution (context == null ? IntPtr.Zero : context.Handle, dpi);
}

[DllImport(PangoUtil.LIBPANGOCAIRO, CallingConvention=CallingConvention.Cdecl)]
static extern IntPtr pango_layout_get_context (IntPtr layout);
// [DllImport(PangoUtil.LIBPANGOCAIRO, CallingConvention=CallingConvention.Cdecl)]
// static extern IntPtr pango_layout_get_context (IntPtr layout);

public static string GetColorString (Gdk.Color color)
{
return string.Format ("#{0:X02}{1:X02}{2:X02}", color.Red / 256, color.Green / 256, color.Blue / 256);
}

public static Pango.Context LayoutGetContext (this Pango.Layout layout)
{
IntPtr handle = pango_layout_get_context (layout.Handle);
return handle.Equals (IntPtr.Zero) ? null : GLib.Object.GetObject (handle) as Pango.Context;
}
// public static Pango.Context LayoutGetContext (this Pango.Layout layout)
// {
// IntPtr handle = pango_layout_get_context (layout.Handle);
// return handle.Equals (IntPtr.Zero) ? null : GLib.Object.GetObject (handle) as Pango.Context;
// }

public static void DrawLine (this Cairo.Context cr, Cairo.Color color, double x1, double y1, double x2, double y2)
{
cr.SetSourceColor (color);
cr.MoveTo (x1, y1);
cr.LineTo (x2, y2);
cr.Stroke ();
}

public static void Line (this Cairo.Context cr, double x1, double y1, double x2, double y2)
{
cr.MoveTo (x1, y1);
cr.LineTo (x2, y2);
}

public static void SharpLineX (this Cairo.Context cr, double x1, double y1, double x2, double y2)
{
cr.MoveTo (x1 + 0.5, y1);
cr.LineTo (x2 + 0.5, y2);
}

public static void SharpLineY (this Cairo.Context cr, double x1, double y1, double x2, double y2)
{
cr.MoveTo (x1, y1 + 0.5);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
using MonoDevelop.Ide.Gui;
using System;
using System.Linq;
using Cairo;
using MonoDevelop.Ide.Gui.Shell;
using Rectangle = Gdk.Rectangle;

namespace MonoDevelop.Components.DockNotebook
{
Expand Down Expand Up @@ -82,7 +84,7 @@ public PlaceholderWindow (DockNotebookTab tab): base (Gtk.WindowType.Toplevel)
titleWindow.FocusOutEvent += delegate {
timeout = GLib.Timeout.Add (100, () => {
timeout = 0;
titleWindow.Close ();
titleWindow.ClosePlaceholder ();
return false;
});
};
Expand Down Expand Up @@ -236,7 +238,7 @@ protected override bool OnFocusOutEvent (EventFocus evt)
{
timeout = GLib.Timeout.Add (100, () => {
timeout = 0;
titleWindow.Close ();
titleWindow.ClosePlaceholder ();
return false;
});

Expand All @@ -248,18 +250,20 @@ protected override void OnRealized ()
base.OnRealized ();
GdkWindow.Opacity = 0.4;
}
// protected override bool OnExposeEvent (EventExpose evnt)
// {
// int w, h;
// GetSize (out w, out h);
//
// using (var ctx = CairoHelper.Create (evnt.Window)) {
// ctx.SetSourceColor (new Cairo.Color (0.17, 0.55, 0.79));
// ctx.Rectangle (Allocation.ToCairoRect ());
// ctx.Fill ();
// }
// return true;
// }

protected override bool OnDrawn (Context ctx)
{

GetSize (out var w, out int h);

ctx.Save ();
ctx.SetSourceColor (new Cairo.Color (0.17, 0.55, 0.79));
ctx.Rectangle (Allocation.ToCairoRect ());
ctx.Fill ();
ctx.Restore ();

return true;
}

public void Relocate (int x, int y, int w, int h, bool animate)
{
Expand Down Expand Up @@ -437,7 +441,7 @@ public bool ControlPressed {
protected override bool OnKeyPressEvent (EventKey evnt)
{
if (evnt.Key == Gdk.Key.Escape)
Close ();
ClosePlaceholder ();
if (evnt.Key == Gdk.Key.Control_L)
controlKeyMask |= 1;
if (evnt.Key == Gdk.Key.Control_R)
Expand All @@ -461,17 +465,17 @@ protected override bool OnKeyReleaseEvent (EventKey evnt)

protected override bool OnButtonReleaseEvent (EventButton evnt)
{
Close ();
ClosePlaceholder ();
return base.OnButtonReleaseEvent (evnt);
}

protected override bool OnLeaveNotifyEvent (EventCrossing evnt)
{
Close ();
ClosePlaceholder ();
return base.OnLeaveNotifyEvent (evnt);
}

public void Close ()
public void ClosePlaceholder ()
{
Application.Invoke ((o, args) => {
placeholder.Destroy ();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1148,17 +1148,16 @@ void Draw (Context ctx)
drawActive?.Invoke (ctx);

if (HasFocus) {
//Gtk.Style.PaintFocus (Style, ctx, State, /*focusRect,*/ this, "tab", focusRect.X, focusRect.Y, focusRect.Width, focusRect.Height);
StyleContext.RenderFocus (ctx, focusRect.X, focusRect.Y, focusRect.Width, focusRect.Height);
}
}

// protected override bool OnExposeEvent (EventExpose evnt)
// {
// using (var context = CairoHelper.Create (evnt.Window)) {
// Draw (context);
// }
// return base.OnExposeEvent (evnt);
// }
protected override bool OnDrawn (Context cr)
{
Draw (cr);

return base.OnDrawn (cr);
}

void DrawTab (Context ctx, DockNotebookTab tab, Gdk.Rectangle allocation, Gdk.Rectangle tabBounds, bool highlight, bool active, bool dragging, Pango.Layout la, bool focused)
{
Expand Down Expand Up @@ -1269,7 +1268,7 @@ static void DrawTabBackground (Widget widget, Context ctx, Gdk.Rectangle allocat
Pango.Layout CreateSizedLayout (bool active)
{
var la = new Pango.Layout (PangoContext);
//la.FontDescription = IdeServices.FontService.SansFont.Copy ();
la.FontDescription = IdeServices.FontService.SansFont.Copy ();
if (!Core.Platform.IsWindows)
la.FontDescription.Weight = Pango.Weight.Bold;
la.FontDescription.AbsoluteSize = Pango.Units.FromPixels (VerticalTextSize);
Expand Down