wxWidgets and GTK3

490 views
Skip to first unread message

srg4096

unread,
Oct 22, 2010, 12:49:47 PM10/22/10
to wx-dev
Hi

I originally posted this on wxForum, but was directed here to the dev
mailing list.

I've been looking around as to what status wxWidgets will have with
the new GTK3 when it comes out, but I can't find any info.

I'm mainly thinking in terms of wxWidgets 3.0 here, but will it be
able to compile on GTK3, rather than just 1 & 2?

I use wxGTK when compiling for Linux (and of course wxMSW when
compiling on windows), and I currently use Ubuntu. The next version
(11.04) should come (if where's no delays with it) with GNOME 3 which
will be based on GTK 3. Now I'm sure the gtk2 libraies will still be
available, but will I be able to compile wxWidgets 2.9.1 (or 2.9.2 or
3.0 for that matter) and so my programs against GTK3?

Oh, I compile my own wxWidgets rather than using what's in the Debian/
Ubuntu repositories BTW.

I realise this is still a good 6 months off, but it would be good for
peace of mind.

Thanks :-)
srg86

Vadim Zeitlin

unread,
Oct 22, 2010, 6:46:42 PM10/22/10
to wx-...@googlegroups.com
On Fri, 22 Oct 2010 09:49:47 -0700 (PDT) srg4096 <srg...@googlemail.com> wrote:

s> I've been looking around as to what status wxWidgets will have with
s> the new GTK3 when it comes out, but I can't find any info.

AFAIK nobody has looked into it yet. It would be great if someone did and
at least outlined the changes needed for GTK 3 compatibility. Unfortunately
it looks like there would be quite a few of them...

Regards,
VZ

Robert Roebling

unread,
Oct 23, 2010, 9:21:50 AM10/23/10
to wx-...@googlegroups.com

> I've been looking around as to what status wxWidgets will have with
> the new GTK3 when it comes out, but I can't find any info.

I don't think anyone looked it what needs to be done to
convert the code, but I actually hope that only a limited
effort will be required to make apps run again, the devil
is often in the detail.

> I'm mainly thinking in terms of wxWidgets 3.0 here, but will it be
> able to compile on GTK3, rather than just 1 & 2?

No idea when GTK 3.0 will be out, but I doubt that wxWidgets 3.0
will be prepared for this.

> I use wxGTK when compiling for Linux (and of course wxMSW when
> compiling on windows), and I currently use Ubuntu. The next version
> (11.04) should come (if where's no delays with it) with GNOME 3 which
> will be based on GTK 3. Now I'm sure the gtk2 libraies will still be
> available, but will I be able to compile wxWidgets 2.9.1 (or 2.9.2 or
> 3.0 for that matter) and so my programs against GTK3?

Probably not, but maybe you could start to investigate what
will have to be done.

Is there a conversion guide for GTK 2.X -> GTK 3.0 somewhere?

Robert


John Ralls

unread,
Oct 23, 2010, 10:37:19 AM10/23/10
to wx-...@googlegroups.com

The Gtk devs have suddenly (in the last 6 weeks or so) begun major surgery on the API and inner workings... which seems to have seriously ticked off the Gnome devs, who had thought that Gtk-3 would be a largely incremental change that would require minimal porting and allow a more-or-less concurrent release of Gnome-3 and Gtk-3. Now the changes are quite substantial and the new API hasn't really congealed.

It looks to me that it would be premature to start a wx-Gtk3 rewrite until that settles down, which will take at least another month or two. I'd also expect the results to be even less mature than usual for Gtk, so I suggest that Gtk-3 be a separate library and that the Gtk2 library should be maintained for at least another major wx version cycle.

Regards,
John Ralls

Robert Roebling

unread,
Oct 23, 2010, 10:42:40 AM10/23/10
to wx-...@googlegroups.com

> > s> I've been looking around as to what status wxWidgets will have with
> > s> the new GTK3 when it comes out, but I can't find any info.
> >
> > AFAIK nobody has looked into it yet. It would be great if someone did and
> > at least outlined the changes needed for GTK 3 compatibility. Unfortunately
> > it looks like there would be quite a few of them...
> >
>
> The Gtk devs have suddenly (in the last 6 weeks or so) begun major surgery
> on the API and inner workings... which seems to have seriously ticked off
> the Gnome devs

How surprising. This doesn't sound like Ubuntu will ship GNOME 3.0
in April 2011 will all major apps converted.

Robert


John Ralls

unread,
Oct 23, 2010, 12:43:17 PM10/23/10
to wx-...@googlegroups.com

Since the current Gnome roadmap [1] shows Gnome-3 release in April (they've given up on the concurrent release with Gtk-3 in December), it will be challenging for Canonical to be ready with an Ubuntu release the same month. Gnome may decide to stick with Gtk-2 for Gnome 3, particularly if Gtk-3 doesn't actually happen in December. That's Gnome core, not major apps. On the one hand, one major project (Evolution) has reportedly decided to stay with Gtk-2 until the dust settles, while another (WebKitGtk) is keeping up with the changes. ISTR seeing that Gimp was keeping up, too, but now I can't find the post saying that.

[1] http://live.gnome.org/TwoPointNinetyone/

Regards,
John Ralls

Krishna

unread,
Oct 23, 2010, 3:01:30 PM10/23/10
to wx-...@googlegroups.com
On Sat, Oct 23, 2010 at 6:51 PM, Robert Roebling <rob...@roebling.de> wrote:
> Is there a conversion guide for GTK 2.X -> GTK 3.0 somewhere?

Found this[1] in one of the tickets on the GNOME3 roadmap.

[1] - http://library.gnome.org/devel/gtk/unstable/gtk-migrating-2-to-3.html#id1365005


--
The programmer is fighting against the two most destructive forces in
the universe: entropy and human stupidity.
  --Damian Conway

Robert Roebling

unread,
Oct 23, 2010, 3:19:39 PM10/23/10
to wx-...@googlegroups.com

Krishna wrote:

> Robert wrote:
>
> > Is there a conversion guide for GTK 2.X -> GTK 3.0 somewhere?
>
> Found this[1] in one of the tickets on the GNOME3 roadmap.
>
> [1] - http://library.gnome.org/devel/gtk/unstable/gtk-migrating-2-to-3.html#id1365005

OK, we we'll have to rewrite the wxClientDC code. Much of
that code can be taken from src/gtk/print.cpp which already
is a cairo_t based wxDC. How much other breakages we'll
remains to be seen.

Robert


Krishna

unread,
Oct 23, 2010, 4:27:30 PM10/23/10
to wx-...@googlegroups.com
On Sun, Oct 24, 2010 at 12:49 AM, Robert Roebling <rob...@roebling.de> wrote:
>
> Krishna wrote:
>
>> Robert wrote:
>>
>> > Is there a conversion guide for GTK 2.X -> GTK 3.0 somewhere?
>>
>> Found this[1] in one of the tickets on the GNOME3 roadmap.
>>
>> [1] - http://library.gnome.org/devel/gtk/unstable/gtk-migrating-2-to-3.html#id1365005
>
> OK, we we'll have to rewrite the wxClientDC code. Much of
> that code can be taken from src/gtk/print.cpp which already
> is a cairo_t based wxDC.

If everything is cairo_t based, can the wx*DC classes be merged for this port?

Robert Roebling

unread,
Oct 24, 2010, 1:29:33 PM10/24/10
to wx-...@googlegroups.com

> >>
> >> > Is there a conversion guide for GTK 2.X -> GTK 3.0 somewhere?
> >>
> >> Found this[1] in one of the tickets on the GNOME3 roadmap.
> >>
> >> [1] - http://library.gnome.org/devel/gtk/unstable/gtk-migrating-2-to-3.html#id1365005
> >
> > OK, we we'll have to rewrite the wxClientDC code. Much of
> > that code can be taken from src/gtk/print.cpp which already
> > is a cairo_t based wxDC.
>
> If everything is cairo_t based, can the wx*DC classes be merged for this port?

The actual drawing code can be merged, of course.

Robert

Reply all
Reply to author
Forward
0 new messages