Skip to content

Simple syntax changes#2553

Merged
danirabbit merged 11 commits intojeremypw/gtk4-skeletonfrom
jeremypw/gtk4skeleton/simple-syntax
Mar 29, 2025
Merged

Simple syntax changes#2553
danirabbit merged 11 commits intojeremypw/gtk4-skeletonfrom
jeremypw/gtk4skeleton/simple-syntax

Conversation

@jeremypw
Copy link
Contributor

@jeremypw jeremypw commented Mar 18, 2025

Assorted simple changes mainly to accomodate changes in syntax. These changes should not have any functional effect.

@jeremypw jeremypw mentioned this pull request Mar 19, 2025
3 tasks
@jeremypw jeremypw changed the title Jeremypw/gtk4skeleton/simple syntax Simple syntax changes Mar 19, 2025
@jeremypw jeremypw marked this pull request as ready for review March 19, 2025 15:48
Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly straightforward, just a few comments

jeremypw and others added 2 commits March 20, 2025 15:43
@jeremypw jeremypw requested a review from danirabbit March 20, 2025 16:59
Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You resolved the one with removing show_all where it should be present but there's a bunch of other ones in this diff where a window or dialog is using show_all and if you just remove it then the window will never be shown

@jeremypw
Copy link
Contributor Author

Sorry - I overlooked dialogs need to be shown whereas other widgets you can just delete show_all 😞

@jeremypw
Copy link
Contributor Author

I have pushed another PR applying the dialog fixes to the main branch where possible.

Comment on lines +157 to +165
var grid = new Gtk.Box (VERTICAL, 0);

grid.append (header);
grid.append (new Gtk.Separator (Gtk.Orientation.HORIZONTAL));
grid.append (chooser);
grid.append (new Gtk.Separator (Gtk.Orientation.HORIZONTAL));
grid.append (choices_box);
// grid.append (action_box);
child = grid;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we're here, can we rename this to box since it isn't a grid anymore :p

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed

window.title = "Files Portal Tester";

var grid = new Gtk.Grid () {
var grid = new Gtk.Box (VERTICAL, 6) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We removed Portaltester in another branch so I guess this needs to be rebased?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

// content_box.pack_start (overlay, true, true, 0);
// overlay.add (widget);
overlay = new Gtk.Overlay () {
child = widget
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pack_start had true for expand so I think we need to add hexpand = true and vexpand = true

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


lside_pane = new Gtk.Paned (Gtk.Orientation.HORIZONTAL) {
// expand = true,
hexpand = true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vexpand also maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

…le-syntax

# Conflicts fixed:
#	filechooser-portal/tests/PortalTester.vala
#	libcore/AbstractSlot.vala
#	libcore/FileUtils.vala
#	src/View/DirectoryNotFound.vala
#	src/View/Window.vala
@danirabbit danirabbit merged commit fc009f4 into jeremypw/gtk4-skeleton Mar 29, 2025
1 of 4 checks passed
@danirabbit danirabbit deleted the jeremypw/gtk4skeleton/simple-syntax branch March 29, 2025 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants