Skip to content

gtk4: migrate GTK3 container and layout APIs to GTK4 equivalents - #1093

Open
Dev10-sys wants to merge 2 commits into
sugarlabs:gtk4-portfrom
Dev10-sys:gtk4-container-final
Open

gtk4: migrate GTK3 container and layout APIs to GTK4 equivalents#1093
Dev10-sys wants to merge 2 commits into
sugarlabs:gtk4-portfrom
Dev10-sys:gtk4-container-final

Conversation

@Dev10-sys

Copy link
Copy Markdown
Contributor
  • Replace Gtk.VBox and Gtk.HBox with Gtk.Box
  • Replace Gtk.Alignment with halign/valign and margins
  • Replace pack_start/pack_end with append/prepend
  • Replace set_border_width with margin properties
  • Replace Gtk.EventBox with Gtk.Box
  • Replace Gtk.Toolbar and Gtk.ToolItem with Gtk.Box
  • Replace Gdk.Screen with Gdk.Display monitor geometry
  • Remove deprecated show_all() calls

No logic or functionality changed. Only deprecated GTK3 container APIs migrated.

- Replace Gtk.VBox and Gtk.HBox with Gtk.Box
- Replace Gtk.Alignment with halign/valign and margins
- Replace pack_start/pack_end with append/prepend
- Replace set_border_width with margin properties
- Replace Gtk.EventBox with Gtk.Box
- Replace Gtk.Toolbar and Gtk.ToolItem with Gtk.Box
- Replace Gdk.Screen with Gdk.Display monitor geometry
- Remove deprecated show_all() calls

No logic or functionality changed. Only deprecated GTK3 container APIs migrated.
Comment thread extensions/cpsection/aboutme/view.py
Comment thread src/jarabe/controlpanel/toolbar.py Outdated
@Dev10-sys

Copy link
Copy Markdown
Contributor Author

Thanks for the review.

I have updated the alignment usage in aboutme/view.py to avoid the extra container and applied alignment directly to the child.

I have also updated the toolbar container replacement to use the appropriate Gtk.Box and append() instead of insert().

Please let me know if this looks correct.

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