Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<GirCoreVersion>0.7.0</GirCoreVersion>
<GirCoreVersion>0.8.0-preview.1</GirCoreVersion>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="GirCore.Adw-1" Version="$(GirCoreVersion)" />
Expand Down
18 changes: 8 additions & 10 deletions Pinta.Core/Extensions/Cairo/CairoExtensions.Samples.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,16 +355,14 @@ public static Gdk.Texture ToTexture (this Cairo.ImageSurface surface, Gdk.Textur
{
GLib.Bytes bytes = GLib.Bytes.New (surface.GetData ());

Gdk.MemoryTextureBuilder builder = new () {
Bytes = bytes,
Stride = (ulong) surface.Stride,
Width = surface.Width,
Height = surface.Height,
Format = Gdk.MemoryFormat.B8g8r8a8Premultiplied,
UpdateTexture = updateTexture,
UpdateRegion = updateRegion ?? CairoExtensions.CreateRegion (RectangleI.Zero)

};
Gdk.MemoryTextureBuilder builder = Gdk.MemoryTextureBuilder.New ();
builder.Bytes = bytes;
builder.Stride = (ulong) surface.Stride;
builder.Width = surface.Width;
builder.Height = surface.Height;
builder.Format = Gdk.MemoryFormat.B8g8r8a8Premultiplied;
builder.UpdateTexture = updateTexture;
builder.UpdateRegion = updateRegion ?? CairoExtensions.CreateRegion (RectangleI.Zero);

return builder.Build ();
}
Expand Down
26 changes: 10 additions & 16 deletions Pinta.Core/Extensions/Gtk/GtkExtensions.Widget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,9 @@ public static Gtk.Box Box (
BoxStyle style,
ReadOnlySpan<Gtk.Widget> children) // TODO: Add 'params' keyword when updated to C#13
{
Gtk.Box stack = new ();

// --- Mandatory
stack.SetOrientation (style.Orientation);
Gtk.Box stack = Gtk.Box.New (style.Orientation, style.Spacing ?? 0);

// --- Optional
if (style.Spacing.HasValue) stack.Spacing = style.Spacing.Value;
if (style.CssClass is not null) stack.AddCssClass (style.CssClass);

stack.AppendMultiple (children);
Expand All @@ -93,8 +89,7 @@ public static void AppendMultiple (
/// </summary>
public static Gtk.Box CreateToolBar ()
{
Gtk.Box toolbar = new () { Spacing = 0 };
toolbar.SetOrientation (Gtk.Orientation.Horizontal);
Gtk.Box toolbar = Gtk.Box.New (Gtk.Orientation.Horizontal, spacing: 0);
toolbar.AddCssClass (AdwaitaStyles.Toolbar);
return toolbar;
}
Expand Down Expand Up @@ -123,16 +118,15 @@ public static Gtk.Button CreateToolBarItem (this Command action, bool force_icon
_ => $"{baseTooltip}\n{shortcuts_label}:\n" + string.Join ('\n', action.Shortcuts.Select (s => $"- {ReadableAcceleratorLabel (s)}")),
};

Gtk.Button button = new () {
ActionName = action.FullName,
TooltipText = fullTooltip,
};
Gtk.Button button = Gtk.Button.New ();
button.ActionName = action.FullName;
button.TooltipText = fullTooltip;

if (action.IsImportant && !force_icon_only) {
button.Child = new Adw.ButtonContent () {
IconName = action.IconName,
Label = label
};
Adw.ButtonContent buttonContent = Adw.ButtonContent.New ();
buttonContent.IconName = action.IconName;
buttonContent.Label = label;
button.Child = buttonContent;
} else {
button.Label = label;
button.IconName = action.IconName;
Expand All @@ -148,7 +142,7 @@ public static Gtk.Button CreateDockToolBarItem (this Command action)

public static Gtk.Separator CreateToolBarSeparator ()
{
Gtk.Separator sep = new ();
Gtk.Separator sep = Gtk.Separator.New (Gtk.Orientation.Vertical);
sep.AddCssClass (AdwaitaStyles.Spacer);
return sep;
}
Expand Down
2 changes: 1 addition & 1 deletion Pinta.Core/Extensions/ToolBarComboBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
: this (width, activeIndex, allowEntry, (IEnumerable<string>) contents)
{ }

public ToolBarComboBox (int width, int activeIndex, bool allowEntry, IEnumerable<string> contents)

Check warning on line 44 in Pinta.Core/Extensions/ToolBarComboBox.cs

View workflow job for this annotation

GitHub Actions / build-macos (osx-arm64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)

Check warning on line 44 in Pinta.Core/Extensions/ToolBarComboBox.cs

View workflow job for this annotation

GitHub Actions / build-macos (osx-arm64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)

Check warning on line 44 in Pinta.Core/Extensions/ToolBarComboBox.cs

View workflow job for this annotation

GitHub Actions / build-macos (osx-x64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)

Check warning on line 44 in Pinta.Core/Extensions/ToolBarComboBox.cs

View workflow job for this annotation

GitHub Actions / build-windows (win-x64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)

Check warning on line 44 in Pinta.Core/Extensions/ToolBarComboBox.cs

View workflow job for this annotation

GitHub Actions / build-windows (win-x64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)

Check warning on line 44 in Pinta.Core/Extensions/ToolBarComboBox.cs

View workflow job for this annotation

GitHub Actions / build-macos (osx-x64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)

Check warning on line 44 in Pinta.Core/Extensions/ToolBarComboBox.cs

View workflow job for this annotation

GitHub Actions / build-windows (win-arm64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)

Check warning on line 44 in Pinta.Core/Extensions/ToolBarComboBox.cs

View workflow job for this annotation

GitHub Actions / build-windows (win-arm64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)
{
Gtk.ComboBoxText comboBox =
allowEntry
? Gtk.ComboBoxText.NewWithEntry ()
: new ();
: Gtk.ComboBoxText.New ();

comboBox.CanFocus = allowEntry;

Expand Down
30 changes: 18 additions & 12 deletions Pinta.Core/Managers/ToolManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -372,19 +372,25 @@ public override int Compare (BaseTool? x, BaseTool? y)
private Gtk.ScrolledWindow? tool_widgets_scroll;

private Gtk.Label ToolLabel => tool_label ??= Gtk.Label.New (string.Format (" {0}: ", Translations.GetString ("Tool")));
private Gtk.Image ToolImage => tool_image ??= new Gtk.Image ();
private Gtk.Image ToolImage => tool_image ??= Gtk.Image.New ();
private Gtk.Separator ToolSeparator => tool_sep ??= GtkExtensions.CreateToolBarSeparator ();
private Gtk.Box ToolWidgetsBox => tool_widgets_box ??= Gtk.Box.New (Gtk.Orientation.Horizontal, 0);
// Scroll the toolbar contents if they are very long (e.g. the line/curve tool).
private Gtk.ScrolledWindow ToolWidgetsScroll
=> tool_widgets_scroll ??= new Gtk.ScrolledWindow () {
Child = ToolWidgetsBox,
HscrollbarPolicy = Gtk.PolicyType.Automatic,
VscrollbarPolicy = Gtk.PolicyType.Never,
HasFrame = false,
OverlayScrolling = true,
WindowPlacement = Gtk.CornerType.BottomRight,
Hexpand = true,
Halign = Gtk.Align.Fill,
};
private Gtk.ScrolledWindow ToolWidgetsScroll {
get {
if (tool_widgets_scroll == null) {
tool_widgets_scroll = Gtk.ScrolledWindow.New ();
tool_widgets_scroll.Child = ToolWidgetsBox;
tool_widgets_scroll.HscrollbarPolicy = Gtk.PolicyType.Automatic;
tool_widgets_scroll.VscrollbarPolicy = Gtk.PolicyType.Never;
tool_widgets_scroll.HasFrame = false;
tool_widgets_scroll.OverlayScrolling = true;
tool_widgets_scroll.WindowPlacement = Gtk.CornerType.BottomRight;
tool_widgets_scroll.Hexpand = true;
tool_widgets_scroll.Halign = Gtk.Align.Fill;
}

return tool_widgets_scroll;
}
}
}
6 changes: 3 additions & 3 deletions Pinta.Docking/DockItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
/// </summary>
public event EventHandler? MaximizeClicked;

public DockItem (

Check warning on line 70 in Pinta.Docking/DockItem.cs

View workflow job for this annotation

GitHub Actions / build-macos (osx-arm64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)

Check warning on line 70 in Pinta.Docking/DockItem.cs

View workflow job for this annotation

GitHub Actions / build-macos (osx-arm64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)

Check warning on line 70 in Pinta.Docking/DockItem.cs

View workflow job for this annotation

GitHub Actions / build-windows (win-x64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)
Gtk.Widget child,
string uniqueName,
string iconName,
Expand All @@ -76,7 +76,7 @@
Gtk.Button minimizeButton = CreateMinimizeButton (locked);
Gtk.Button maximizeButton = CreateMaximizeButton (locked);

Gtk.Stack buttonStack = new ();
Gtk.Stack buttonStack = Gtk.Stack.New ();
buttonStack.AddChild (minimizeButton);
buttonStack.AddChild (maximizeButton);

Expand Down Expand Up @@ -141,11 +141,11 @@
private static Gtk.Label CreateLabelWidget (bool locked)
{
if (locked)
return new ();
return Gtk.Label.New (null);

const int padding = 8;

Gtk.Label result = new ();
Gtk.Label result = Gtk.Label.New (null);
result.MarginStart = result.MarginEnd = padding;
result.Hexpand = true;
result.Halign = Gtk.Align.Start;
Expand Down
9 changes: 4 additions & 5 deletions Pinta.Docking/DockNotebook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,14 @@
private readonly Adw.TabBar tab_bar;
private readonly HashSet<IDockNotebookItem> items = [];

public DockNotebook ()

Check warning on line 49 in Pinta.Docking/DockNotebook.cs

View workflow job for this annotation

GitHub Actions / build-macos (osx-arm64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)

Check warning on line 49 in Pinta.Docking/DockNotebook.cs

View workflow job for this annotation

GitHub Actions / build-macos (osx-arm64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)

Check warning on line 49 in Pinta.Docking/DockNotebook.cs

View workflow job for this annotation

GitHub Actions / build-windows (win-x64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)
{
Adw.TabView tabView = new () {
Vexpand = true,
Valign = Gtk.Align.Fill,
};
Adw.TabView tabView = Adw.TabView.New ();
tabView.Vexpand = true;
tabView.Valign = Gtk.Align.Fill;
tabView.OnClosePage += TabView_OnClosePage;

Adw.TabBar tabBar = new ();
Adw.TabBar tabBar = Adw.TabBar.New ();
tabBar.SetView (tabView);
tabBar.Autohide = true;
tabBar.AddCssClass (AdwaitaStyles.Inline);
Expand Down
7 changes: 3 additions & 4 deletions Pinta.Docking/DockPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@

// Autohide is set to false since it seems to cause the popover to close even when clicking inside it, on macOS at least
// Instead, the reopen button is a toggle button to close the popover.
Gtk.Popover popover = new () {
Autohide = false,
Position = Gtk.PositionType.Left,
};
Gtk.Popover popover = Gtk.Popover.New ();
popover.Autohide = false;
popover.Position = Gtk.PositionType.Left;
popover.SetParent (reopenButton);

// --- References to keep
Expand Down Expand Up @@ -109,7 +108,7 @@
/// </summary>
private readonly List<DockPanelItem> items = [];

public DockPanel ()

Check warning on line 111 in Pinta.Docking/DockPanel.cs

View workflow job for this annotation

GitHub Actions / build-macos (osx-arm64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)

Check warning on line 111 in Pinta.Docking/DockPanel.cs

View workflow job for this annotation

GitHub Actions / build-macos (osx-arm64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)

Check warning on line 111 in Pinta.Docking/DockPanel.cs

View workflow job for this annotation

GitHub Actions / build-windows (win-x64)

'Box.Box(params ConstructArgument[])' is obsolete: 'Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.' (https://gircore.github.io/docs/integration/diagnostic/1007.html)
{
SetOrientation (Gtk.Orientation.Horizontal);
Append (dock_bar);
Expand Down
21 changes: 10 additions & 11 deletions Pinta.Effects/Dialogs/Effects.AlignmentDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,15 @@ public AlignmentDialog (IChromeService chrome)
Gtk.ToggleButton bottomCenterToggle = CreateIconButton (Translations.GetString ("Bottom Center"), Resources.Icons.ResizeCanvasDown, AlignPosition.BottomCenter);
Gtk.ToggleButton bottomRightToggle = CreateIconButton (Translations.GetString ("Bottom Right"), Resources.Icons.ResizeCanvasSE, AlignPosition.BottomRight);

Gtk.Grid grid = new () {
RowSpacing = spacing,
ColumnSpacing = spacing,
RowHomogeneous = true,
ColumnHomogeneous = true,
MarginStart = 12,
MarginEnd = 12,
MarginTop = 12,
MarginBottom = 12,
};
Gtk.Grid grid = Gtk.Grid.New ();
grid.RowSpacing = spacing;
grid.ColumnSpacing = spacing;
grid.RowHomogeneous = true;
grid.ColumnHomogeneous = true;
grid.MarginStart = 12;
grid.MarginEnd = 12;
grid.MarginTop = 12;
grid.MarginBottom = 12;
grid.Attach (topLeftToggle, 0, 0, 1, 1);
grid.Attach (topCenterToggle, 1, 0, 1, 1);
grid.Attach (topRightToggle, 2, 0, 1, 1);
Expand Down Expand Up @@ -96,7 +95,7 @@ private Gtk.ToggleButton CreateIconButton (
string iconName,
AlignPosition position)
{
Gtk.ToggleButton button = new ();
Gtk.ToggleButton button = Gtk.ToggleButton.New ();

button.SetIconName (iconName);

Expand Down
26 changes: 12 additions & 14 deletions Pinta.Effects/Dialogs/Effects.CurvesDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,10 @@ public CurvesDialog (
checkBlue,
buttonReset]);

Gtk.DrawingArea curvesDrawing = new () {
WidthRequest = 256,
HeightRequest = 256,
CanFocus = true,
};
Gtk.DrawingArea curvesDrawing = Gtk.DrawingArea.New ();
curvesDrawing.WidthRequest = 256;
curvesDrawing.HeightRequest = 256;
curvesDrawing.CanFocus = true;
curvesDrawing.SetAllMargins (8);
curvesDrawing.SetDrawFunc ((area, context, width, height) => HandleDrawingDrawnEvent (context));
curvesDrawing.AddController (motionController);
Expand Down Expand Up @@ -172,7 +171,7 @@ public CurvesDialog (

private Gtk.ComboBoxText CreateComboMap ()
{
Gtk.ComboBoxText result = new ();
Gtk.ComboBoxText result = Gtk.ComboBoxText.New ();
result.AppendText (Translations.GetString ("RGB"));
result.AppendText (Translations.GetString ("Luminosity"));
result.Active = 1;
Expand Down Expand Up @@ -205,13 +204,11 @@ private static Gtk.Label CreateLabelPoint ()

private Gtk.Button CreateResetButton ()
{
Gtk.Button result = new () {
WidthRequest = 81,
HeightRequest = 30,
Label = Translations.GetString ("Reset"),
Halign = Gtk.Align.End,
Hexpand = true,
};
Gtk.Button result = Gtk.Button.NewWithLabel (Translations.GetString ("Reset"));
result.WidthRequest = 81;
result.HeightRequest = 30;
result.Halign = Gtk.Align.End;
result.Hexpand = true;
result.OnClicked += HandleButtonResetClicked;
return result;

Expand All @@ -226,7 +223,8 @@ void HandleButtonResetClicked (object? sender, EventArgs e)

private Gtk.CheckButton CreateColorCheck (string label)
{
Gtk.CheckButton result = new () { Label = label, Active = true };
Gtk.CheckButton result = Gtk.CheckButton.NewWithLabel (label);
result.Active = true;
result.Hide ();
result.OnToggled += (_, _) => InvalidateDrawing ();
return result;
Expand Down
43 changes: 27 additions & 16 deletions Pinta.Effects/Dialogs/Effects.LevelsDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,16 @@ public LevelsDialog (
BoxStyle horizontalSpaced = new (Gtk.Orientation.Horizontal, SPACING);
BoxStyle verticalSpaced = new (Gtk.Orientation.Vertical, SPACING);

Gtk.CheckButton checkRed = new () { Label = Translations.GetString ("Red"), Active = true };
Gtk.CheckButton checkRed = Gtk.CheckButton.NewWithLabel (Translations.GetString ("Red"));
checkRed.Active = true;
checkRed.OnToggled += HandleCheckRedToggled;

Gtk.CheckButton checkGreen = new () { Label = Translations.GetString ("Green"), Active = true };
Gtk.CheckButton checkGreen = Gtk.CheckButton.NewWithLabel (Translations.GetString ("Green"));
checkGreen.Active = true;
checkGreen.OnToggled += HandleCheckGreenToggled;

Gtk.CheckButton checkBlue = new () { Label = Translations.GetString ("Blue"), Active = true };
Gtk.CheckButton checkBlue = Gtk.CheckButton.NewWithLabel (Translations.GetString ("Blue"));
checkBlue.Active = true;
checkBlue.OnToggled += HandleCheckBlueToggled;

Gtk.Box hboxChecks = GtkExtensions.Box (
Expand Down Expand Up @@ -146,36 +149,44 @@ public LevelsDialog (
spinOutGamma.OnValueChanged += HandleSpinOutGammaValueChanged;
spinOutGamma.SetActivatesDefaultImmediate (true);

ColorGradientWidget gradientInput = new (2) { WidthRequest = 40 };
ColorGradientWidget gradientInput = ColorGradientWidget.New (2);
gradientInput.WidthRequest = 40;
gradientInput.DragGesture.OnDragBegin += HandleGradientDragBegin;
gradientInput.DragGesture.OnDragEnd += HandleGradientDragEnd;
gradientInput.ValueChanged += HandleGradientInputValueChanged;

ColorGradientWidget gradientOutput = new (3) { WidthRequest = 40 };
ColorGradientWidget gradientOutput = ColorGradientWidget.New (3);
gradientOutput.WidthRequest = 40;
gradientOutput.DragGesture.OnDragBegin += HandleGradientDragBegin;
gradientOutput.DragGesture.OnDragEnd += HandleGradientDragEnd;
gradientOutput.ValueChanged += HandleGradientOutputValueChanged;

ColorPanelWidget colorPanelInHigh = new () { HeightRequest = 24 };
ColorPanelWidget colorPanelInHigh = ColorPanelWidget.New ();
colorPanelInHigh.HeightRequest = 24;
colorPanelInHigh.ClickGesture.OnPressed += HandleColorPanelButtonPressEvent;

ColorPanelWidget colorPanelInLow = new () {
HeightRequest = 24,
Valign = Gtk.Align.End,
Vexpand = true
};
ColorPanelWidget colorPanelInLow = ColorPanelWidget.New ();
colorPanelInLow.HeightRequest = 24;
colorPanelInLow.Valign = Gtk.Align.End;
colorPanelInLow.Vexpand = true;
colorPanelInLow.ClickGesture.OnPressed += HandleColorPanelButtonPressEvent;

ColorPanelWidget colorPanelOutLow = new () { HeightRequest = 24 };
ColorPanelWidget colorPanelOutLow = ColorPanelWidget.New ();
colorPanelOutLow.HeightRequest = 24;
colorPanelOutLow.ClickGesture.OnPressed += HandleColorPanelButtonPressEvent;

ColorPanelWidget colorPanelOutMid = new () { HeightRequest = 24 };
ColorPanelWidget colorPanelOutMid = ColorPanelWidget.New ();
colorPanelOutMid.HeightRequest = 24;

ColorPanelWidget colorPanelOutHigh = new () { HeightRequest = 24 };
ColorPanelWidget colorPanelOutHigh = ColorPanelWidget.New ();
colorPanelOutHigh.HeightRequest = 24;
colorPanelOutHigh.ClickGesture.OnPressed += HandleColorPanelButtonPressEvent;

HistogramWidget histogramInput = new () { WidthRequest = 130, FlipHorizontal = true };
HistogramWidget histogramOutput = new () { WidthRequest = 130 };
HistogramWidget histogramInput = HistogramWidget.New ();
histogramInput.WidthRequest = 130;
histogramInput.FlipHorizontal = true;
HistogramWidget histogramOutput = HistogramWidget.New ();
histogramOutput.WidthRequest = 130;

Gtk.Box vboxInput = GtkExtensions.Box (
verticalSpaced,
Expand Down
Loading
Loading