News for hackers. Stuff that matters.
Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by 323 on Saturday December 17, 2022 @10:14AM (#34028381)
> I wonder where this trend - fortunately a limited one - with putting confirm buttons at the top comes from

Original small screen iPhone, where it's easier to reach the top than the bottom, and it's less likely to be an accidental touch.

But now it's cargo-culted everywhere.

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by nine_k on Saturday December 17, 2022 @10:29AM (#34028507)
I wish Gnome did not try so hard to be macOS. If I wanted to use macOS, I'd get me a Mac.

But I see that the other Unix machine most Gnome developers use is a Macbook, so they try to make things familiar, because they sort of like that UI. (Those who don't but still want a coherent desktop can pick KDE.)

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by shrimp_emoji on Saturday December 17, 2022 @10:38AM (#34028603)
It's not even macOS; it's iOS. It's a GUI for phablets and phones.

Fortunately, I think more projects are abandoning GTK than onboarding it thanks to GTK's horrible documentation, instability, opinionatedness, and simply how much better Qt is to develop for[0], which I can only hope will gradually de-throne GNOME as "the default DE".

0: https://en.wikipedia.org/wiki/GTK#Criticism

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by nine_k on Saturday December 17, 2022 @11:01AM (#34028898)
GTK is pure C, while Qt is C++. It's both a blessing, and a curse.

E.g. I did not write, but just looked through the hoops PyQt has to jump to interface with Qt nicely. Quite impressive.

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by kitsunesoba on Saturday December 17, 2022 @11:29AM (#34029204)
Qt being a pain to bind (and thus having few high quality bindings) is definitely a big reason why I’ve avoided it. I don’t really want to be writing UI in C++.
Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by kaba0 on Sunday December 18, 2022 @05:02AM (#34036338)
In my opinion not using managed languages is a huge hindrance to these platforms.
Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by kitsunesoba on Saturday December 17, 2022 @11:28AM (#34029191)
Yep; as I’ve said before GNOME is what you’d get if you tried to clone iPadOS and turn it into desktop OS.

It still feels more polished and accessible overall than alternatives though, and so it will probably continue to be “the default DE” for the foreseeable future.

KDE has the most potential to replace it, but I think its configuration is still intimidating (to the point that you regularly see people ask which KDE distros have good defaults), as well as quirks you don’t see anywhere else, like turning file copy dialogs into notification toasts. It’s technically functional but comes off as weird.

The other GTK DEs (XFCE and Cinnamon) I think are in a better place in terms of their settings panes not being scary and generally feeling well designed, but lack resources.

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by seba_dos1 on Saturday December 17, 2022 @11:53AM (#34029546)
> like turning file copy dialogs into notification toasts

That's a great thing that I'm surprised other DEs don't do. Works really well for file downloads too. It makes intuitive sense and the fact that finished state is retained in notification history is such a helpful thing that genuinely improves user experience for someone with such a poor working memory as mine that it's really weird to see someone calling it weird.

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by kitsunesoba on Saturday December 17, 2022 @12:00PM (#34029629)
I don’t mind seeing completions in my notifications and having the option to show progress in notifications is fine, but I also want the option for a boring old dialog, preferably with the ability to expand and show a high level of detail (think Windows file copy dialogs) that isn’t practical in a notification bubble.
Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by seba_dos1 on Saturday December 17, 2022 @12:13PM (#34029764)
> preferably with the ability to expand and show a high level of detail (think Windows file copy dialogs) that isn’t practical in a notification bubble.

Why do you think it's not practical? That's what Plasma offers already and I'm using it often.

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by rhaway84773 on Saturday December 17, 2022 @12:19PM (#34029837)
I really hope that’s not the case. GTK4 is highly polished and getting better.

Even if for the sake of argument we accept that Gnome/GTK’s UI choices are poor, the consistency across applications elevates the overall experience.

If, for example, you disagree with the placement of buttons, you know that all the GTK buttons will have the button in the same place which greatly reduces cognitive load.

The same is, unfortunately, not true of other Linux UI kits.

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by smoldesu on Saturday December 17, 2022 @12:39PM (#34030087)
> you know that all the GTK buttons will have the button in the same place

This is vehemently untrue. You know that all GNOME applications will have the buttons in the same place (GNOME writes their own HID) but GTK doesn't have an HID. GTK is simply a GUI toolkit, I can put my topbar at the bottom of my window if I want. It's not 'correct' but I can still do it and ship my application.

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by smoldesu on Saturday December 17, 2022 @04:18PM (#34032337)
Edit: s/HID/HIG
Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by pantalaimon on Saturday December 17, 2022 @12:00PM (#34029621)
Sometimes I wish Mate would have also forked GTK2. GTK3 is just heavier in general and going forward, GTK4 seems to be even more Gnome focused, so a fork might become inevitable anyway.
Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by smoldesu on Saturday December 17, 2022 @12:43PM (#34030130)
From a developer standpoint, I actually really liked how composable GTK3 was. It's fair to complain about the stylesheets and the funky touch-centric interface, but it did still let you build GTK2-style apps. It was full of weird/nice features and felt like a decent iteration on GTK2. GTK4 has been a waking nightmare in comparison, and I'm not sure why they feel obligated to throw out so much of the previous toolkit.
Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by otsaloma on Saturday December 17, 2022 @12:17PM (#34029808)
As a developer of a couple GTK apps, I look at the deprecations in GTK4 and GTK5 with horror. At least one app I'm going to stop maintaining latest with GTK5.

GIMP still doesn't have stable release out with GTK3. Inkscape took a long time. I bet both will have great trouble in the future. It seems we're moving towards GTK apps being either core GNOME (maintained as paid work by Red Hat) or trivial little apps like on mobile (either simple to port or just short-lived). Everything else will slowly die out.

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by TingPing on Saturday December 17, 2022 @02:54PM (#34031518)
As a developer of a couple GTK apps I really like the direction the project has gone in. Its a more flexible and performant toolkit than ever before.
Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by nine_k on Saturday December 17, 2022 @04:08PM (#34032259)
Gimp switching to FLTK or Elementary / Enlightenment would be a fun thing. (I suppose it will never pick up C++ in the code base, so not Qt.)
Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by CharlesW on Saturday December 17, 2022 @12:00PM (#34029632)
> Original small screen iPhone, where it's easier to reach the top than the bottom…

With phones, it's always been easier to reach the bottom. This is why tab bars have always been at the bottom. This is why soft keyboards have always been at the bottom. This is why Apple moved Safari's controls to the bottom by default.

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by rhaway84773 on Saturday December 17, 2022 @12:10PM (#34029735)
The bottom of the phone is incredibly hard to reach in single handed operation while also holding the phone.
Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by cstrahan on Saturday December 17, 2022 @12:39PM (#34030086)
I think most people (myself included) hold the phone with the bottom resting in their palm (and often further supported by their pinky/little finger).

Do you hold your phone from the top, with the bottom ending unsupported and hanging out? And if so, why?

Obvious downsides: if you loosen your grip then the phone will fall to the ground; you can’t reach the on screen keyboard.

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by BenjiWiebe on Saturday December 17, 2022 @12:30PM (#34029973)
How are you holding your phone? I'm typing this comment one-handed using a soft keyboard on the bottom of my phone. My thumb actually cannot reach the top of the screen without shifting the phone to a different grip.
Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by layer8 on Saturday December 17, 2022 @07:39PM (#34033849)
GP is not saying that the top is easier to reach than the bottom. Reaching to the very bottom of the display one-handed is still straining, compared to the Home button iPhones.
Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by mook on Saturday December 17, 2022 @01:49PM (#34030850)
> With phones, it's always been easier to reach the bottom.

The _original_ iPhone is tiny by today's standards. It's 15% shorter than a current iPhone SE, with a relatively huge chin. At that point the top corner is where the thumb is when it's straight up.

https://www.phonearena.com/phones/size/Apple-iPhone-SE-2022,...

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by uhura on Saturday December 17, 2022 @01:59PM (#34030940)
The comment mentions original iPhone screens. They were 3.5" and we hold phones differently because of the sub 4" displays.

The idea back then was maybe to separate the confirm action from other actions located at the bottom bar.

Human Interface Guidelines changed a lot as Apple changed the iPhone form factor. But with a 3.5", most of the screen is "uniformly" reachable and the bottom is slight less reachable as you usually need to flex the thumb.

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by DiggyJohnson on Saturday December 17, 2022 @03:11PM (#34031738)
Not to mention the lack of top and bottom bevels that we only still find on the iPhone SE (3rd gen) now.

Maybe I’m an outlier, but it’s been over a year and I still don’t like how in accessible the top and bottom of the screen on my 13 mini are for one handed use. I swipe to text one handed, but pressing the numbers its emoji button requires serious contortion and dexterity. Maybe the fact that I tend to use my left hand (despite being a righty) contributes to this.

Anyone else agree?

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by CharlesW on Saturday December 17, 2022 @06:27PM (#34033359)
I don't have a problem reaching the bottom of the screen, and also generally use my left hand for one-handed use. The phone rests on my pinky, with the middle three fingers supporting the body.

If you use your phone one-handed often enough, iOS Reachability works pretty well: https://support.apple.com/en-ca/guide/iphone/iph145eba8e9/io...

Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by layer8 on Saturday December 17, 2022 @07:37PM (#34033839)
It’s doable, but it’s certainly more straining than on the Home button iPhones. The same goes for the bottom swipe that activates Reachability.
Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by layer8 on Saturday December 17, 2022 @07:34PM (#34033814)
Yet Next, Back, Done, Cancel, etc., are at the top on iOS, for some reason.
Re:GTK File Chooser Dialog gets a thumbnail view after 18 years by canucker2016 on Sunday December 18, 2022 @04:26AM (#34036207)
Please read https://www.smashingmagazine.com/2016/09/the-thumb-zone-desi...

Read the second section, labeled "Thumbs vs Touchscreens", which shows the sweet spot for accessing content via left or right thumb or both. The lower corner closest to the base of the thumb is hard to reach. Unless the user was using both thumbs, placing target UI in one of those corners would hurt one-handed users.

Also note which areas are labeled as HARD to reach for either/both thumbs - the location where GTK4 has placed the main buttons in the File Chooser dialog.