Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Write an helper function to replace gtk_hl_set_border_width() #199

Closed
vmagnin opened this issue Jun 6, 2020 · 2 comments
Closed

Write an helper function to replace gtk_hl_set_border_width() #199

vmagnin opened this issue Jun 6, 2020 · 2 comments
Assignees
Labels

Comments

@vmagnin
Copy link
Owner

vmagnin commented Jun 6, 2020

In GTK 3, it was possible to write:

    call gtk_container_set_border_width(win, border)

In GTK 4, you must write:

      call gtk_widget_set_margin_start (win, border)
      call gtk_widget_set_margin_end (win, border)
      call gtk_widget_set_margin_top (win, border)
      call gtk_widget_set_margin_bottom (win, border)

It could be interesting to wrote a helper function in src/gtk-sup.f90. Its name should indicate that it is not part of GTK 4, so gtk_container_set_border_width() is not a good option.
What about simply container_set_border_width() ?

@jtappin
Copy link
Collaborator

jtappin commented Jun 6, 2020

Hi Vincent
Maybe hl_gtk_widget_set_border_width, and could there be a gtk_hl_widget.f90 with routines like that for generic (or near generic) widgets.

@vmagnin
Copy link
Owner Author

vmagnin commented Jun 6, 2020

Hi Vincent
Maybe hl_gtk_widget_set_border_width, and could there be a gtk_hl_widget.f90 with routines like that for generic (or near generic) widgets.

Hi James,
it is an idea.
If you have received our Slack invitation, you can join us. We are having daily discussions with Jerry and Jens about gtk-fortran (or other stuffs) there.

@vmagnin vmagnin closed this as completed Jun 10, 2021
Repository owner locked and limited conversation to collaborators Jun 10, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

4 participants