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.

109 thoughts on “Enter GTK3

  1. ThomasVef

    Hello! [url=http://online-pharmacy.website/#vipps-canadian-pharmacies-online]online pharmacy technician training[/url] excellent website.

  2. Larryagilt

    Hello there! [url=http://trustnlinepharmacy.us/]safe online pharmacies[/url] very good web site

  3. RussellKam

    This type of wide lace wig seems to be extremely sensible and is [url=http://shortwigsforblackwomen.us/]Wigs[/url]
    created from innovative wide lace substance having the [url=http://www.wigsfor-womenstore.com/]Human Hair Wigs[/url]
    unique seem. Not merely thus giving a natural figure [url=http://wigsforcwomen.com/]Wigs For Black Women[/url]
    but it also make an attractive look for the face. The head of hair within this wig usually entirely possible that it’s expanding out from the remaining hair as well as similarly allocated [url=http://wigsforcwomen.com/]Wigs For Black Women[/url]
    . Some companies today making the effort to help make their particular lace entrance human hair hair pieces affordable in order that women who really need it can find a way to get it.
    When these kind of hair pieces are generally utilize proper way, it might truly give you a natural [url=http://wigsforcancer-patients.net/]Wigs For Cancer Patients[/url]
    physical appearance. For this reason it’s going to be significant with regard to clients to learn the different patterns since hairpieces are generally glued around the natural hairline also it can [url=http://wigsforwomenz.com/]Human Hair Wigs[/url]
    additionally epoxy strait into the tip from the head of hair.

  4. ConradGauro

    Offering instant satisfaction, manufactured curly hair wigs [url=http://wigsforwomend.net/]African American Wigs[/url]
    occur able to don. Previously shaded along with styled, man made hair has just what specialists’ refer to as ‘memory’, which means the hairpiece holds its shape following getting [url=http://wigsforwomend.org/]Wigs[/url]
    washed and so [url=http://halohair-extensions.com/]Human Hair Extensions[/url]
    zero hair styling should be used. Nevertheless, debatably this kind of convenience occurs at the tariff of flexibility; artificial locks cannot be helped by warmed styling iron and contains to be carefully [url=http://fulllacefrontwigs.org/]Wigs[/url]
    resistant to warmth throughout each day scenarios. The heat through opening up a stove might cause injury to your hair fibre; consequently man made wigs usually break much quicker than their particular human hair counterparts. Nevertheless this might not present [url=http://wigshumanhair.net/]Wigs[/url]
    a difficulty to an individual who likes the liberty regarding wearing a number of diverse designed wigs for abnormal [url=http://fulllacefrontwigs.org/]Lace Front Wigs[/url]
    durations.

  5. JameswricS

    Howdy! [url=http://pharmacy-online.bid/#adipex-online]List Of Canada Online Pharmacies[/url] excellent internet site.

  6. JameswricS

    Howdy! [url=http://pharmacy-online.bid/#meds-no-prescription]canadian pharmacy online[/url] very good website.

Leave a Reply