Hi Hazen:

As far as I can tell from

git log --follow examples/c/extXdrawable_demo.c

Jonathan Woithe implemented that example a decade ago, you did
the actual commit, and we have been (minimally) maintaining it
ever since.

This example is really dated because it contains calls to the GTK+ API
that were already deprecated for GTK+ version 2 and non-existent for
GTK+ version 3.  And it is not a good idea to mix this GTK+ version 2
example with a PLplot core library that can depend directly (in the
non-dynamic drivers case) on GTK+ version 3 which has long been the
standard version of GTK+.  So I have effectively disabled the build of
examples/c/extXdrawable_demo.c in my recent commit 9893349d1.

I did take a look at porting this example to GTK+ version 3 following
the precepts in
<https://developer.gnome.org/gtk3/stable/gtk-migrating-2-to-3.html>.
For example, after PLplot was built, I built the example directly
using

cd examples/c
gcc ../../../plplot.git/examples/c/extXdrawable_demo.c -DUSINGDLL 
-I/home/software/plplot/HEAD/plplot.git/include 
-I/home/software/plplot/HEAD/build_dir/include 
-I/home/software/plplot/HEAD/plplot.git/lib/qsastime 
-I/home/software/plplot/HEAD/build_dir/lib/qsastime  -O3 -fvisibility=hidden 
-Wuninitialized $(pkg-config  --cflags --libs gtk+-x11-2.0) ../../src/libplplot.so 
|& less

If you try the -DGTK_DISABLE_SINGLE_INCLUDES flag that is recommended
in the above URL that works, but as soon as you try the additional
recommended -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED flags a
whole host of issues show up, i.e., porting this example is not going
to be trivial.  Therefore I abandoned that idea for myself, but I
encourage you to take a look at porting this example because I believe
your GTK+ skills/experience are a lot more extensive than mine.

Alan
__________________________
Alan W. Irwin

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to