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

width-request and height-request not working on GTK3 version #157

Open
rizalmart opened this issue Nov 27, 2023 · 3 comments
Open

width-request and height-request not working on GTK3 version #157

rizalmart opened this issue Nov 27, 2023 · 3 comments

Comments

@rizalmart
Copy link

if you are using GTK3 and use width-request on widget. It does not resize the window instead it went full width of the screen. It also does not resize the window and went full width of the screen if resizable attribute was set to false. Unlike GTK2 version where the widget can resize even resizable was set to false

@ncmprhnsbl
Copy link

ncmprhnsbl commented Nov 27, 2023

i could be wrong, but i think for gtk3, you can use "default_width=" and "default_height=" and "allow-shrink=false"

@rizalmart
Copy link
Author

i could be wrong, but i think for gtk3, you can use "default_width=" and "default_height=" and "allow-shrink=false"

It only works on widget only

@01micko
Copy link
Contributor

01micko commented Mar 16, 2024

This works fine

gtkdialog -s <<< "<window default-height=\"500\" default-width=\"500\"><vbox><button cancel></button><button ok></button></vbox></window>"

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

No branches or pull requests

3 participants