Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread Just Fill Bugs
On 03/01/2012 04:07 AM, Roger Davis wrote: Hi Dov, Thanks very much for that interesting code example. I built it and it seems to work fine, so there is apparently a solution to my problem, however complicated it may turn out to be. I assume since no one has given me a short 'yes' answer to my q

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread Roger Davis
On Wed, 29 Feb 2012, jcup...@gmail.com wrote: You need a compositing model instead. Your draw window should be a stack of 2D layers. In your expose callback, paint that part of the window back to front. Do rubberbanding by creating a temporary top layer with the rubber band in and queueing ref

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread jcupitt
As a short-term fix I think it'd be fine to target gtk2, it's going to be around for years. In my opinion, the time of xor rubber banding has passed, it's just too hard to get it working reliably in complex situations. Once you have double buffering, background scrolling, overlapping display objec

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread Roger Davis
Hi John, thanks for your comments! As you say, gdk_ is a thin layer over the X11 drawing system, so converting that is pretty easy. Gdk has quite a few helpers too, eg. stuff for rendering a 24-bit image to whatever visual the server has, so you can save some code there. It shouldn't be a huge

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread Roger Davis
Hi Bernhard, Thanks for your thoughts! I will look further at GooCanvas and COGL to see what's there, although my existing app set doesn't really require any explicit object-oriented support. Roger ___ gtk-app-devel-list mailing list gtk-app-devel-l

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread Roger Davis
Hi Dov, Thanks very much for that interesting code example. I built it and it seems to work fine, so there is apparently a solution to my problem, however complicated it may turn out to be. I assume since no one has given me a short 'yes' answer to my question of whether you can easily do an X

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread Dov Grobgeld
On Wed, Feb 29, 2012 at 01:17, Roger Davis wrote: > [stuff deleted] Does Cairo have a way > of mimicking an X11 XOR-op GC for doing low-overhead ephemeral drawing ops > of rubberband-lines, etc.? > > I have over the years been intrigued of how to do flicker free rubberband selection with gtk/ca

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread Michael Torrie
On 02/29/2012 02:50 AM, Bernhard Schuster wrote: > If your application license is either GPL or LPGL you are also > allowed to link statically (afaik), so you can deploy a gtk2 and a > gtk3 version. Edit ... so you can deploy a shared and statically > linked application binary. Just to be clear, i

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread jcupitt
Hi Roger, I moved a medium-sized (100k lines) application from Motif/X11 to gtk+ a while ago. As you say, gdk_ is a thin layer over the X11 drawing system, so converting that is pretty easy. Gdk has quite a few helpers too, eg. stuff for rendering a 24-bit image to whatever visual the server has,

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread Bernhard Schuster
Edit ... so you can deploy a shared and statically linked application binary. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread Bernhard Schuster
Am 29. Februar 2012 00:17 schrieb Roger Davis : > > Hello all, > > I am new to this list, please forgive me if this material has been discussed > before. I have a substantial body of Xlib/Motif code that I need to port > to a more modern GUI and have some questions in that regard with respect > to

porting Xlib/Motif apps to GTK+

2012-02-28 Thread Roger Davis
Hello all, I am new to this list, please forgive me if this material has been discussed before. I have a substantial body of Xlib/Motif code that I need to port to a more modern GUI and have some questions in that regard with respect to GTK+ and cousins. This code uses Motif for dialog panels, et