Skip to content
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

Simple syntax changes #2553

Open
wants to merge 9 commits into
base: jeremypw/gtk4-skeleton
Choose a base branch
from

Conversation

jeremypw
Copy link
Collaborator

@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
Collaborator Author

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

@jeremypw
Copy link
Collaborator 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

@@ -11,22 +11,19 @@ public class PortalTester : Gtk.Application {
window.set_default_size (400, 400);
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?

// 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


sidebar = new Sidebar.SidebarWindow ();
free_space_change.connect (sidebar.on_free_space_change);

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?

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