Enter GTK3

Since PureBasic 5.40 LTS, GTK3 is the default GUI toolkit used by PureBasic on Linux. It seems like a no brainer update for our users, but the fact is than GTK3 doesn’t fit well the PureBasic GUI library and we have several bad hacks here and here to make it work at all. We decided from the start in PureBasic to handle pixel perfect sizing of the GUI elements to allow maximum flexibity. For example, we added a Dialog library on top of it, which adds automatic layout depending of the font size, and allow to design complex resizable windows. It’s nice, but not mandatory, and depending of your needs, you will or will not use it. Up to GTK2, it was the same: you could define pixel perfect size and the toolkit would honor it. Now, it’s a different story: the toolkit can decide if the size you gave programmatically is too small or not. It’s a big change, as you could end up with a deformed GUI and more important, the running program doesn’t reflect the code entered by the programmer. You may wonder why such change has been implemented ? My guess is to force use of layout for everything, so the toolkit can support themes more efficiently and without change from the programmer. It may be true, but it’s one of the first toolkit to do so and forcing the programmer hand isn’t always a great thing, especially when it removes flexibility: you can write a layout engine using pixel perfect sizing, but you can’t do pixel perfect sizing with a layout engine. And for some specific apps, running on proprietary OS, it can be an issue as theming is irrelevant.

94 thoughts on “Enter GTK3

  1. Howardpat

    Hi! [url=http://online-pharmacy.website/#online-pharmacy-uk]india online pharmacy[/url] beneficial internet site.

  2. Howardpat

    Hello! [url=http://online-pharmacy.website/#pharmacy-tech-training-online]vyvanse online pharmacy[/url] excellent web site.

  3. Howardpat

    Hello there! [url=http://online-pharmacy.website/#accutane-online-pharmacy]walgreen online pharmacy[/url] good web site.

  4. Howardpat

    Hi there! [url=http://online-pharmacy.website/#online-pharmacy-school-programs]online pharmacy canada[/url] excellent site.

  5. Howardpat

    Howdy! [url=http://online-pharmacy.website/#costco-online-pharmacy-prices]online pharmacy tramadol[/url] beneficial website.

  6. Howardpat

    Hello there! [url=http://online-pharmacy.website/#cheap-online-pharmacy]online pharmacy oxycodone 30mg[/url] beneficial web page.

  7. Howardpat

    Hello there! [url=http://online-pharmacy.website/#american-online-pharmacy]tramadol online pharmacy[/url] good website.

  8. Howardpat

    Hello! [url=http://online-pharmacy.website/#clomid-online-pharmacy]Buy Prescription Drugs Online[/url] great web page.

  9. Howardpat

    Hi! [url=http://online-pharmacy.website/#canadian-online-pharmacies]best online pharmacy for cialis[/url] very good web page.

  10. Howardpat

    Hi! [url=http://online-pharmacy.website/#online-pharmacys]online compounding pharmacy[/url] great web page.

  11. Howardpat

    Hi! [url=http://online-pharmacy.website/#online-steroid-pharmacy]pharmacy technician online courses[/url] excellent web page.

  12. LarrySof

    Hello there! [url=http://isotretinoinbuy-online.com/#purchase-accutane]buy accutane pills online[/url] great internet site.

  13. LarrySof

    Hello! [url=http://isotretinoinbuy-online.com/#isotretinoin-cost]purchase accutane online no prescription[/url] very good website.

  14. LarrySof

    Hello! [url=http://isotretinoinbuy-online.com/#buy-accutane-pills-online]buy isotretinoin online[/url] beneficial web site.

  15. LarrySof

    Howdy! [url=http://isotretinoinbuy-online.com/#buy-accutane-online]buy isotretinoin pills[/url] beneficial web page.

  16. LarrySof

    Howdy! [url=http://isotretinoinbuy-online.com/#where-buy-accutane]buy accutane no rx[/url] excellent site.

  17. LarrySof

    Hi there! [url=http://isotretinoinbuy-online.com/#buy-accutane-online]buy accutane medication[/url] beneficial site.

  18. LarrySof

    Hello! [url=http://isotretinoinbuy-online.com/#where-buy-accutane]buy isotretinoin pills[/url] good internet site.

  19. LarrySof

    Hi! [url=http://isotretinoinbuy-online.com/#accutane-generic]buy accutane online without prescription[/url] excellent internet site.

  20. LarrySof

    Hi! [url=http://isotretinoinbuy-online.com/#accutane-generic]buy accutane pills[/url] beneficial web site.

  21. LarrySof

    Hello! [url=http://isotretinoinbuy-online.com/#purchase-isotretinoin]isotretinoin[/url] beneficial internet site.

  22. LarrySof

    Hi! [url=http://isotretinoinbuy-online.com/#buy-isotretinoin-pills]buy isotretinoin online[/url] very good website.

  23. LarrySof

    Hi there! [url=http://isotretinoinbuy-online.com/#buy-isotretinoin-no-prescription]buy accutane cheap[/url] very good site.

  24. LarrySof

    Howdy! [url=http://isotretinoinbuy-online.com/#buy-accutane-pills]buy accutane pills online[/url] great internet site.

  25. LarrySof

    Hi there! [url=http://isotretinoinbuy-online.com/#generic-accutane]buy isotretinoin pills[/url] good website.

  26. LarrySof

    Hello! [url=http://isotretinoinbuy-online.com/#buy-generic-accutane]buy isotretinoin pills[/url] great web page.

  27. LarrySof

    Howdy! [url=http://isotretinoinbuy-online.com/#buy-isotretinoin-pills]buy accutane pills online[/url] beneficial internet site.

Leave a Reply