Skip to content

Gtk subclassing round 1 #57

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

Merged
merged 6 commits into from
Nov 17, 2020
Merged

Conversation

bilelmoussaoui
Copy link
Member

@bilelmoussaoui bilelmoussaoui commented Nov 16, 2020

Adds subclassing support to the following types

  • GtkButton
  • GtkAdjustment
  • GtkListBoxRow
  • GtkFlowBoxChild
  • GtkDrawingArea

Removes GtkHeaderBar because it's not derivable anymore

Part of #56

@bilelmoussaoui
Copy link
Member Author

The CI is failing due to actions-rs/toolchain#124

@sdroege
Copy link
Member

sdroege commented Nov 17, 2020

Did you check against / take all those from gtk3-rs?

Copy link
Member

@sdroege sdroege left a comment

Choose a reason for hiding this comment

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

Looks good to me otherwise. Please check all these against gtk3 too so that we keep them consistent.

@bilelmoussaoui
Copy link
Member Author

Looks good to me otherwise. Please check all these against gtk3 too so that we keep them consistent.

GtkListBoxRow is similar to the gtk3 one, GtkListBox had all of it's vfunc removed & the rest are missing from gtk3. I don't think there are many we can copy from gtk3 other than the Cell* ones

@bilelmoussaoui bilelmoussaoui force-pushed the bilelmoussaoui/subclassing-round-1 branch from a7bbf4e to 0555f6b Compare November 17, 2020 17:51
@sdroege sdroege merged commit 72b0a10 into master Nov 17, 2020
@sdroege sdroege deleted the bilelmoussaoui/subclassing-round-1 branch November 17, 2020 18:12
ids1024 added a commit to ids1024/gtk-rs that referenced this pull request Dec 1, 2020
Was added to gtk4-rs in gtk-rs/gtk4-rs#57

This doesn't include the deprecated virtual methods in gtk3 that are not
in gtk4. Those could be added, but new projects probably shouldn't be
using them anyway.
ids1024 added a commit to ids1024/gtk-rs that referenced this pull request Dec 1, 2020
Was added to gtk4-rs in gtk-rs/gtk4-rs#57

This doesn't include the deprecated virtual methods in gtk3 that are not
in gtk4. Those could be added, but new projects probably shouldn't be
using them anyway.
ids1024 added a commit to ids1024/gtk-rs that referenced this pull request Dec 1, 2020
Was added to gtk4-rs in gtk-rs/gtk4-rs#57

This doesn't include the deprecated virtual methods in gtk3 that are not
in gtk4. Those could be added, but new projects probably shouldn't be
using them anyway.
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