News for hackers. Stuff that matters.
Re:Visual Studio for Mac by jhasse on Wednesday May 10, 2017 @03:46PM (#14311025)
This is still using GTK+ (3?), right?

How did they manage to integrate the buttons in the title bar with it?

Re:Visual Studio for Mac by therzok on Wednesday May 10, 2017 @04:05PM (#14311159)
Visual Studio for Mac's shell code is written in gtk+ 2. We have supporting code in gtk+ to allow mixing gtk widgets with native widgets.

But the glue code isn't used here, because there is another interesting mechanism at play. The root window created by gtk on macOS is actually an NSWindow (see GdkQuartzWindow), thus you can use Cocoa APIs on the window. We just set the title visibility to hidden and set the native titlebar widget.

Re:Visual Studio for Mac by jhasse on Wednesday May 10, 2017 @04:19PM (#14311277)
Nice! Thanks for the explanation.

Do you plan to port to GTK 3 in the future? Does version 2 even have HiDPI support?

Re:Visual Studio for Mac by flukus on Thursday May 11, 2017 @12:52AM (#14313902)
The opinion of the GTK devs seems to be that it's very much the "gnome toolkit" and that cross platform is not planned at all.
Re:Visual Studio for Mac by jhasse on Thursday May 11, 2017 @02:53AM (#14314261)
That's not the opinion of everyone. Gedit for example has an up to date Windows version. Inkscape and GIMP both have macOS and Windows versions, but I think they still run version 2.

GNOME definitely is the focus as their resources are quite limited. That's why I welcome Microsoft using it and hope to see some improvements for Windows and macOS in the future.

Re:Visual Studio for Mac by flukus on Thursday May 11, 2017 @04:43AM (#14314654)
Last time I tried it didn't even work well with cygwin, every app would take a minute to start up while it tried to talk to systemd.
Re:Visual Studio for Mac by jhasse on Friday May 12, 2017 @09:03AM (#14323600)
You shouldn't use cygwin, but MSYS2: http://www.msys2.org/

For Gedit you can just download it here: https://wiki.gnome.org/Apps/Gedit It starts up immediately for me.

Inkscape and GIMP also have dedicated installers.

Re:Visual Studio for Mac by therzok on Wednesday May 10, 2017 @04:28PM (#14311350)
We have some glue code to workaround lack of retina/hidpi support in gtk+.

Yes, having Gtk UI running on Gtk 3 is something we want to have at some point.

Re:Visual Studio for Mac by 0xFFC on Wednesday May 10, 2017 @04:49PM (#14311580)
This is the most unbelievable thing. Even WSL was kinda okay to imagine. But Microsoft and Gtk?

I thought after buying Xamarin they would replace Gtk part.

Re:Visual Studio for Mac by tmsldd on Thursday May 11, 2017 @04:02AM (#14314492)
Unbelievable :D
Re:Visual Studio for Mac by jhasse on Wednesday May 10, 2017 @05:12PM (#14311768)
Awesome! Thank you for still keeping up with GTK+ and hopefully also improving its support on macOS and Windows along the way.

> lack of retina/hidpi support in gtk+.

You should phrase this as "support in gtk+ 2", because since version 3 GTK+ supports HiDPI :)