puppylinux-woof-CE / gtkdialog

Script friendly gtk GUI builder
GNU General Public License v2.0
30 stars 18 forks source link

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

Open rizalmart opened 9 months ago

rizalmart commented 9 months ago

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 commented 9 months ago

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

rizalmart commented 9 months ago

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 commented 6 months ago

This works fine

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