Re: problem using the new printing API ...



Marko Anastasov wrote:
> On Fri, 2007-06-29 at 23:24 +0100, Bartosz Kostrzewa wrote:
>> Roberto Alejandro Esp�u�wrote:
>>> I tried both the examples the simple and the advanced printing examples
>>> from the gtkmm tutorial.  The simple example does't preview nor prints
>>> and the advanced example shows a customized preview example that hangs
>>> when you close the window, and doesn't print neither.
>>>
>>> Can anyone please provide an example or a patch for the current
>>> published examples so that they can operate as expected??
>>>
>>> Thanks ...
>> I can confirm this on gentoo ~x86 gtkmm 2.10.9, Gtk+ 2.10.13, glib
>> 2.12.12, glibmm 2.12.8, cairomm 1.2.4
>>
>> simple:
> <snip>
> 
> Thanks for the detailed feedback. Do you see any of this behaviour
> with, say, Evince, which now uses the new Gtk+ printing API as well?
> 
> Please check that you've built it without the libgnomeprint (old
> gnome printing lib) USE flag, if something like that is available.
> 
> Marko
> 
> 
> 

evince prints fine and there is no such use flag in the lib that i have
installed or ./configure option in the build that I have for playing
around with examples. (2.10.9 as well)

these are the flags and libs from the Makefile in the build directory of
the advanced example.

GTHREAD_LIBS = -pthread -lgthread-2.0 -lrt -lglib-2.0

PANGOMM_CFLAGS = -DPNG_NO_MMX_CODE -I/usr/include/glibmm-2.4
-I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0
-I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/cairomm-1.0
-I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/pango-1.0

PANGOMM_LIBS = -lglibmm-2.4 -lsigc-2.0 -lcairomm-1.0 -lpangocairo-1.0
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0

GDKMM_CFLAGS = -DPNG_NO_MMX_CODE -I/usr/include/glibmm-2.4
-I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0
-I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/cairomm-1.0
-I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0

GDKMM_LIBS = -lglibmm-2.4 -lsigc-2.0 -lcairomm-1.0 -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0

ATKMM_CFLAGS = -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include
-I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/atk-1.0

ATKMM_LIBS = -lglibmm-2.4 -lsigc-2.0 -latk-1.0 -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0

GTKMM_CFLAGS = -DPNG_NO_MMX_CODE -I/usr/include/glibmm-2.4
-I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0
-I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/cairomm-1.0
-I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/gtk-unix-print-2.0

GTKMM_LIBS = -lglibmm-2.4 -lsigc-2.0 -lcairomm-1.0 -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]