If GTK is so crap on the programming side, but great from all the other aspects, why not just port GTK to C++ entirely? I'd be interested in seeing a GTK++ implementation. Until then I'll keep using gtkmm. It seems to work well enough for me, but I'm no C++ expert. Seems like the open source desktops have room for another API. Frankly I'd just be happy if the desktop wasn't a constantly moving target. It gets annoying having to keep forward porting my code every time the gnome team decide they need to reinvent the wheel. Maybe if apps were the focus instead of rewriting GTK all the time, we'd have a proper desktop with apps that would rival Windows.
Announcement
Collapse
No announcement yet.
GTK+ 4.0 Toolkit Development Is Warming Up
Collapse
X
-
Originally posted by cl333r View PostThe problem with Gtk is that writing GUI apps in C sucks:
gtk_window_set_title(GKT_WINDOW(win), "my title");
instead of
win->setTitle("my Title");
and the C++ binding sucks because it's a binding/workaround for a project written in C. If they wrote Gtk4 in Rust, C++ or anything other that is more high-level yet native (no interpreted crap like Java or Python), I'd consider moving to it. Until then, no matter what they do Qt5 is better.
Comment
-
Originally posted by ssokolow View Post*SNIP*
(Sort of like how GTK+ 3.x replaced GDK drawing with Cairo)
NOW, I don't know why they don't use something like mozilla's azure (if they REALLY want to stay xplatform) b/c we sure as hell have cairo alternatives.
Ach, it doesn't much matter.
Gnome is a toy development environment, but I think they devs realize that they simply don't have the resources to make something like cocoa/appkit or winforms. I didn't realize how bad the whole oss toolkit situation was until I read http://www.joona.net/?p=693.
Comment
-
Originally posted by liam View PostNOW, I don't know why they don't use something like mozilla's azure (if they REALLY want to stay xplatform) b/c we sure as hell have cairo alternatives.
- Likes 1
Comment
-
Originally posted by Delgarde View Post
We do now. We didn't when Gtk+ first started integrating Cairo more than ten years ago. And at the time, that was half the point of using Cairo - that it provided a lot of useful functionality *and* was cross-platform due to support for a variety of backends.
I'm sorry about that.
Comment
-
Originally posted by liam View Post
I should've verified before I spoke.
I'm sorry about that.
Comment
-
Originally posted by liam View PostYeah, THAT was a great decision. I'm not sure why they didn't use a drawing api abstraction. Perhaps b/c there weren't many alternatives to cairo?
NOW, I don't know why they don't use something like mozilla's azure (if they REALLY want to stay xplatform) b/c we sure as hell have cairo alternatives.
- Likes 2
Comment
-
Originally posted by liam View Post
Yeah, THAT was a great decision. I'm not sure why they didn't use a drawing api abstraction. Perhaps b/c there weren't many alternatives to cairo?
NOW, I don't know why they don't use something like mozilla's azure (if they REALLY want to stay xplatform) b/c we sure as hell have cairo alternatives.
Ach, it doesn't much matter.
Gnome is a toy development environment, but I think they devs realize that they simply don't have the resources to make something like cocoa/appkit or winforms. I didn't realize how bad the whole oss toolkit situation was until I read http://www.joona.net/?p=693.
Hey, I'm just trying to be helpfully educational. I migrated from PyGTK (GTK+ 2.x) to PyQt5 and I fully agree with that blog post.
(That said, I don't care how "the future" Qt Quick is. If it can't seamlessly force a unified desktop theme on apps the way Qt's C++ widgets can when combined with QGtkStyle, I have no use for it. I'm not going to let "But... but... smartphones!" be an excuse to go back to the bad old "spend a weekend finding acceptable and matching Qt and GTK+ themes" days of the early 2000s.)
- Likes 1
Comment
-
Originally posted by cl333r View PostThe problem with Gtk is that writing GUI apps in C sucks:
gtk_window_set_title(GKT_WINDOW(win), "my title");
instead of
win->setTitle("my Title");
and the C++ binding sucks because it's a binding/workaround for a project written in C. If they wrote Gtk4 in Rust, C++ or anything other that is more high-level yet native (no interpreted crap like Java or Python), I'd consider moving to it. Until then, no matter what they do Qt5 is better.
Vala is actually pretty good when you're in the GObject realm. Once stepping outside, it feels like getting hit by a bullet train. I have tried using this once in my project and realize how painful it is :P. That makes me revert back to my trusted-and-true C++.
Personally I can stand using the compatibility layer api like wxWidget, though it feels like using MFC, though the development is slow than what I'd wished for.
For other than that ... hm... I guess Java Swing is the best toolkit I have come across, although it's on the slower side and has the alienated looks.
For someone that hates qt for non-standard stuff they use, there's a port of qt that get rid of those non-standard call CopperSpice. You might want to try that out . It's not really mature currently though.
Comment
-
Originally posted by cl333r View PostThe problem with Gtk is that writing GUI apps in C sucks:
gtk_window_set_title(GKT_WINDOW(win), "my title");
instead of
win->setTitle("my Title");
and the C++ binding sucks because it's a binding/workaround for a project written in C. If they wrote Gtk4 in Rust, C++ or anything other that is more high-level yet native (no interpreted crap like Java or Python), I'd consider moving to it.
Comment
Comment