Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-16 Thread Eric Cashon via gtk-app-devel-list
Hi Attila, The text buffer does return the correct number of chars with spaces. If I get a char count on the lines with or without numbers it returns the correct number. When I export to PDF the layout is the same as the print preview. When I test with pdftotext then, as you say, it doesn't m

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-15 Thread Hammer Attila
Hi Eric, This test code me works correctly too if keeping the line numbers each blank lines. If have a number before a simple \n line, the correct line positioning happening when I trying convert back the generated pdf file with pdftotext -layout command. The last line of the first page right

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-15 Thread Eric Cashon via gtk-app-devel-list
OK, you got me on the PDF. I don't know about that. I think a monospace font will help though because they are easier to keep track of rows and columns since all the characters are in the same sized rectangle. The Marburg font is also in a constant sized rectangle. I don't know how to put to

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-15 Thread Hammer Attila
when the printing real happening, character to character. Me have a visual printer, but this verification is not possible, because I am a blind person. With Braille printers insensitive the visual lookup the input text, only important when the draw_page function sends the printed output to

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-15 Thread Yuri Khan
On Sun, Oct 15, 2017 at 1:42 AM, Eric Cashon via gtk-app-devel-list wrote: > The first thing that I would try out is to change the font that is being > drawn to see if that works. I am getting an impression that fonts are not going to make any difference. The OP seems not interested in how the

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-14 Thread Eric Cashon via gtk-app-devel-list
Here is something else that might help. Try a monospace font to test with. If you use a monospace font then your spacing should be kept correct. If I draw a grid around the characters, monospace will hold the spacing to the 28x32 grid. Eric ... new_font = Pango.FontDescription("Monospace 20"

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-14 Thread Eric Cashon via gtk-app-devel-list
Hi Attila, I don't know the internals of how Pango deals with the different fonts for putting them on a layout. I have bumped into utf8_casefold() and utf8_normalize() before so I know fonts can get complicated. Maybe someone with more knowledge than I have about this can help. The first thi

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-14 Thread Hammer Attila
Hi, I forgot to attach Marburg medium standard specification link: http://webcache.googleusercontent.com/search?q=cache:g7kWlTjQ24YJ:https://www.pharmabraille.com/pharmaceutical-braille/marburg-medium-font-standard/%2Bmarburg%2Bmedium%2Bstandard&client=ubuntu&hs=ZxJ&channel=fs&dcr=0&hl=hu&ct=clnk

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-14 Thread Hammer Attila
ible setting smaller maximum line numbers in the application. If an user printing future the yesterday attached text with a Braille printer, the page format need looking following if the maximum lines/page length is 28 lines: The first line before the alma word need have two spaces. Usual, in h

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-13 Thread Eric Cashon via gtk-app-devel-list
Hi Attila, You have a print dialog and click on "Print to File" to save the contents to a PDF file and that file is not being formatted correctly and isn't the same as what is in the print preview? I tried a small test program. It prints well to PDF with the extra lines. Does this program

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-13 Thread Hammer Attila
Hi List, Sorry, but unfortunatelly duplicated sent my letter. When first time sent my letter, longer time later I not seeing my post this list. Attila ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/lis

GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-13 Thread Hammer Attila
connect('draw-page', draw_page, printcompositor) printop.run(Gtk.PrintOperationAction.PRINT_DIALOG, None) The test.txt file is very simple, but important to keep entire content when the printing is happening the begin_printing and draw_page code parts: The first line have two spaces and the hungarian alma word. After thi

GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-13 Thread Hammer Attila
connect('draw-page', draw_page, printcompositor) printop.run(Gtk.PrintOperationAction.PRINT_DIALOG, None) The test.txt file is very simple, but important to keep entire content when the printing is happening the begin_printing and draw_page code parts: The first line have two spaces and the hungarian alma word. Aft

Show printing dialogue

2013-10-21 Thread Satz Klauer
Hi, currently I'm using following code to initialise for printing: GtkPrintOperation *op; op = gtk_print_operation_new(); gtk_print_operation_set_allow_async(op,TRUE); gtk_print_operation_set_n_pages(op, 1); gtk_print_operation_set_unit (op,GTK_UNIT_POINTS); g_signal_connect (op, "

Re: Printing with GTK/Cairo produces only empty pages

2013-10-14 Thread Satz Klauer
I just want to draw a bunch of lines - simple polygons, no filling... On Mon, Oct 14, 2013 at 7:55 PM, Chris Vine wrote: > On Mon, 14 Oct 2013 19:34:53 +0200 > Satz Klauer wrote: > >> Hi, >> >> I try to print some vector data using GTK/Cairo. Unfortunately my >> printer only produces empty page

Re: Printing with GTK/Cairo produces only empty pages

2013-10-14 Thread Chris Vine
On Mon, 14 Oct 2013 19:34:53 +0200 Satz Klauer wrote: > Hi, > > I try to print some vector data using GTK/Cairo. Unfortunately my > printer only produces empty pages, means there is no print operation, > the paper sheets are just moved. > > That's how I'm initialising everything: > > GtkPrintO

Printing with GTK/Cairo produces only empty pages

2013-10-14 Thread Satz Klauer
Hi, I try to print some vector data using GTK/Cairo. Unfortunately my printer only produces empty pages, means there is no print operation, the paper sheets are just moved. That's how I'm initialising everything: GtkPrintOperation *op; op = gtk_print_operation_new(); gtk_print_operation_set_all

Re: Printing GtkTextView contents

2013-08-23 Thread John Coppens
On Tue, 20 Aug 2013 15:25:23 -0700 (PDT) Marco Ricci wrote: > Is there a way by which I can query for the printer and use the results of > the query to send the contents of the GtkTextView? Can someone please point > me to a small example that does what I describe? I program using C on Linux.

Printing GtkTextView contents

2013-08-20 Thread Marco Ricci
I want to obtain information about the printer connected to my USB port and send the contents of my GtkTextBuffer to the printer. However, I do not want any settings dialog to show up because I want to eliminate human interaction. Is there a way by which I can query for the printer and use the r

Printing

2013-07-09 Thread Thomas Rønshof
Hi, Does anybody have an example in C using GtkPrintUnixDialog, gtk_print_job_new and gtk_print_job_send using Pango/Cairo for ordinary text output on a printer ? I know one should use GtkPrintOperation now a days, but some design matters in my project, makes it better for me to use GtkPrin

Re: switch printer tray during printing

2013-03-13 Thread Liam R E Quin
On Mon, 2013-03-11 at 16:13 -0500, Michael Cronenworth wrote: > Changing trays may be out of the question, but I do know that Postscript > allows per-page paper orientation changes. I have a few PDFs that do so. You can change paper sizes too, which will generally cause a different paper tray to

Re: switch printer tray during printing

2013-03-11 Thread Michael Cronenworth
On 03/11/2013 03:46 PM, Adam Tauno Williams wrote: > I'm not sure this is even possible. Tray select, duplex, etc... are > often encoded in either the PCL preamble of a print job or in a PJL > envelope [common for Postscript]. They really are attributes of the > *job*. > > I'd guess that Gtk/GNO

Re: switch printer tray during printing

2013-03-11 Thread Adam Tauno Williams
On Thu, 2013-02-21 at 14:51 -0600, Michael Cronenworth wrote: > Michael Cronenworth wrote: > > Does anyone know if GTK allows switching print trays in the middle of a > > GtkPrintOperation? > > I tried setting the source to Tray 2 in the "request-page-setup" signal > > for the second page, but this

Re: switch printer tray during printing

2013-02-21 Thread Michael Cronenworth
Michael Cronenworth wrote: > Does anyone know if GTK allows switching print trays in the middle of a > GtkPrintOperation? > > I tried setting the source to Tray 2 in the "request-page-setup" signal > for the second page, but this did not work. The second page printed to > Tray 1 (default). Old mes

Simple vector graphics printing example?

2013-01-25 Thread Satz Klauer
Hi, I plan to print out some vector data using the GTK printing system. I already found the API description but what I'm missing is a general overview that describes what has to be used in which order to send such graphics to a printer. So my question: is there a simple printing example co

A problem with printing files

2012-11-24 Thread Jakub Kucharski
I was trying to write a simple application for printing a file. Nothing important. Just to learn basics. I've written this short piece of code: #include #include static void print_end(GtkPrintJob *print_job, gpointer user_data, const GError *err) { if (err == NULL) r

switch printer tray during printing

2012-10-31 Thread Michael Cronenworth
Does anyone know if GTK allows switching print trays in the middle of a GtkPrintOperation? I tried setting the source to Tray 2 in the "request-page-setup" signal for the second page, but this did not work. The second page printed to Tray 1 (default). Thanks, Michael _

printing from gtksourceview on Windows

2011-09-25 Thread Allin Cottrell
I'm experimenting with using GtkSourceview plus GtkPrint to get syntax-highlighted printout from my app. I'm using gtksourceview 2.10.5, in conjunction with * gtk 2.24.6 on Linux * gtk 2.14.3 on OS X * gtk 2.16.6 on MS Windows On Linux and OS X the printing works fine, but with the

gtk print for printing an image

2011-06-30 Thread Nicolas Soubeiran
Hi all, I try to use GtkPrintOperation for printing an image and there is something I do not understand. When I am in the draw-page callback, I get the cairo context from GtkPrintContext which is at 72dpi and the "draw rectangle" is smaller than 1000x1000 (for A4 sheet) and my image

Re: Windows printing problem

2010-08-22 Thread James
On Fri, 2010-08-20 at 15:55 +1000, James wrote: > Hi, > > I've refined the code a bit. > > This I can print to PDF using pdfFactory Pro, and it is displayed in the > pdfFactory Pro preview window properly, but Windows always errors out on > the actual printing. &

Re: Windows printing problem

2010-08-19 Thread James
Hi, I've refined the code a bit. This I can print to PDF using pdfFactory Pro, and it is displayed in the pdfFactory Pro preview window properly, but Windows always errors out on the actual printing. Printing direct to the printer (HP laserjet) also causes windows to report an error tryi

Windows printing problem

2010-08-19 Thread James
Hi, I have an app that prints 2 pages with an image in one corner of the page, and some plotted data in the middle, the rest is text. The page is oriented in landscape. On Ubuntu the printing works fine. On Windows XP I can get the text only to work. Printing the image creates blank pages

Re: image printing

2010-07-23 Thread Tadej Borovšak
Hi. You need to unref your pixbuf only after it has been rendererd to cairo context, since GList will not take ownership of it. Call _unref() just after cairo_paint() call and you should be fine. Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com _

Re: image printing

2010-07-23 Thread Claudio Saavedra
On Fri, 2010-07-23 at 22:50 +0700, Alexander Kuleshov wrote: > GdkPixbuf* pixbuf = gdk_pixbuf_new_from_file("home/shk/photo.jpg", > NULL); You are missing a '/' in the path. Claudio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

image printing

2010-07-23 Thread Alexander Kuleshov
Hello, I need to print image in my gtk+ application. I have code: GList* list; void begin_print (GtkPrintOperation * oper, GtkPrintContext * context, gint nr, gpointer user_data) { GdkPixbuf* pixbuf = gdk_pixbuf_new_from_file("home/shk/photo.jpg", NULL); list = g_li

RE: Random crashes when printing on OS X

2010-02-04 Thread Shawn Bakhtiar
I am now also getting this when I print, after having added a cairo_clip() to bound my drawings into a (0,0),(1,1) region. But I do not get it when I am displaying to screen, only printing, and I use the same function for both, one simply gets the cairo_t from the drawing area, the other

Random crashes when printing on OS X

2010-02-04 Thread Shawn Bakhtiar
operation_set_default_page_setup(print,page_setup); /* Make sure we always do full page printing*/ gtk_print_operation_set_unit(print,GTK_UNIT_INCH); gtk_print_operation_set_use_full_page(print,TRUE); gtk_print_operation_set_n_pages (print, self->priv->page_count)

Printing a .png using GtkPrint

2009-11-17 Thread Richard Shann
draw_page (GtkPrintOperation *operation, GtkPrintContext *context, gint page_nr, gpointer user_data) { if(page_nr==0){ g_print("printing page 0"); //gtk_print_operation_set_use_full_page() and gtk_print_operation_set_unit()

Printing vs Logging

2009-01-16 Thread dhk
Can someone explain the difference between when to use 1) Message Logging, 2) the Message Output and Debugging Functions, and 3) the printing in the String Utility Functions? It seems that for logging purposes either of the three can be used. Is there any advantage of one over the other

Re: printing gtktextview and text layout

2008-04-18 Thread Behdad Esfahbod
On Fri, 2008-04-18 at 17:30 +0200, Philippe Rouquier wrote: > > Le mardi 15 avril 2008 à 15:05 -0400, Behdad Esfahbod a écrit : > > On Sat, 2008-04-12 at 11:08 +0200, Philippe Rouquier wrote: > > > > > > Could someone help me with that please? > > > > Just reorder your code to use pango_cairo_s

Re: printing gtktextview and text layout

2008-04-18 Thread Philippe Rouquier
Le mardi 15 avril 2008 à 15:05 -0400, Behdad Esfahbod a écrit : > On Sat, 2008-04-12 at 11:08 +0200, Philippe Rouquier wrote: > > > > Could someone help me with that please? > > Just reorder your code to use pango_cairo_show_layout() for both display > and print, then make sure you set font opt

Re: printing gtktextview and text layout

2008-04-15 Thread Behdad Esfahbod
On Sat, 2008-04-12 at 11:08 +0200, Philippe Rouquier wrote: > > Could someone help me with that please? Just reorder your code to use pango_cairo_show_layout() for both display and print, then make sure you set font options on your PangoContext attached to the layout using pango_cairo_context_set

printing gtktextview and text layout

2008-04-12 Thread Philippe Rouquier
uot;a" > | For text editing I use a GtkTextView with WRAP_CHAR set. I allocate its space by using the screen resolution (with gdk_screen_get_resolution ()) multiplied by the width and height (in inch) of a CD cover. For printing, I use a PangoLayout (from gtk_print_context_create_pango_layout

Re: Gtkmm Printing in Ubuntu 7.10

2008-04-09 Thread Murray Cumming
On Wed, 2008-04-09 at 08:15 -0700, Garth's KidStuff wrote: > Hi, > > As covered in some earlier posts, Murry helped point me to the bug report on > Ubuntu 7.10 that showed that gtk+ printing just didn't work there. Specifically, there is a problem with the printing API whe

Gtkmm Printing in Ubuntu 7.10

2008-04-09 Thread Garth's KidStuff
Hi, As covered in some earlier posts, Murry helped point me to the bug report on Ubuntu 7.10 that showed that gtk+ printing just didn't work there. I've upgraded to Ubuntu 8.04 (beta), and Printing now works great for me (yay!). BUT I'd like to distribute this app to users w

re: I'd like (working) printing sample code

2008-04-03 Thread Garth's KidStuff
>Unfortunately, Ubuntu are terrible at packaging bug-fix releases. You >should subscribe yourself (and/or add a comment) to this Ubuntu bug: >https://bugs.launchpad.net/ubuntu/+source/gtkmm2.4/+bug/197010 >If they don't provide the ne

Re: I'd like (working) printing sample code

2008-04-01 Thread Murray Cumming
On Tue, 2008-04-01 at 10:05 -0700, Garth's KidStuff wrote: > Hi Murray, > > Thanks. I'm running Ubuntu 7.10 Gutsy. I'm not sure how to tell what > version of Gtkmm I'm linking to, but I just used package manager to > get the latest available and here's what's in my /usr/lib: > -rw-r--r-- 1 root

Re: I'd like (working) printing sample code

2008-04-01 Thread Murray Cumming
On Mon, 2008-03-31 at 07:34 -0700, Garth's KidStuff wrote: > Hi, > > Thanks in advance. The sample code at: > http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/sec-printing-example.html > > doesn't work for me. I get the on_begin_print callback as expec

I'd like (working) printing sample code

2008-03-31 Thread Garth's KidStuff
Hi, Thanks in advance. The sample code at: http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/sec-printing-example.html doesn't work for me. I get the on_begin_print callback as expected, but never receive the on_draw_page callback. Instead I get an endless series of error/wa

Re: Printing

2008-02-27 Thread Bastiaan Veelo
Bastiaan Veelo wrote: > Enrico Tröger wrote: > >>> 8) When exporting to PDF on Windows, trying to overwrite an existing >>> file, the program crashes (oops!). This works fine on Linux. >>> >>> >> I can't reproduce this, on my Windows 2000 box I can overwrite existing >> files as exp

Re: Printing

2008-02-22 Thread Bastiaan Veelo
Enrico Tröger wrote: > >> 8) When exporting to PDF on Windows, trying to overwrite an existing >> file, the program crashes (oops!). This works fine on Linux. >> > I can't reproduce this, on my Windows 2000 box I can overwrite existing > files as expected. > Now I cannot reproduce either.

Re: Printing

2008-02-22 Thread Bastiaan Veelo
Hi Enrico, I reported a bug on this. You can leave a note that you are able to reproduce this, and maybe mention your printer model and Windows version. See http://bugzilla.gnome.org/show_bug.cgi?id=518052 Thanks, Bastiaan. Enrico Tröger wrote: > > >> 7) When printing under

Re: Printing

2008-02-20 Thread Enrico Tröger
On Wed, 20 Feb 2008 06:31:04 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > >> Enrico Tr?ger wrote: > > For examples see: > > http://www.uvena.de/tmp/cairo/print_pango_linux.pdf (fine) > > and > > http://www.uvena.de/tmp/cairo/print_pango_win32.pdf (broken) > > The link to the windows

Re: Printing

2008-02-20 Thread [EMAIL PROTECTED]
>> Enrico Tr?ger wrote: > For examples see: > http://www.uvena.de/tmp/cairo/print_pango_linux.pdf (fine) > and > http://www.uvena.de/tmp/cairo/print_pango_win32.pdf (broken) The link to the windows version is non-functional. I get the following 403 permission error when I try to open it: 403: Yo

Re: Printing

2008-02-19 Thread Enrico Tröger
archive.com/gtk-app-devel-list@gnome.org/msg10029.html. Behdad Esfahbod told him to change his code, I already did this but still get the same results. For examples see: http://www.uvena.de/tmp/cairo/print_pango_linux.pdf (fine) and http://www.uvena.de/tmp/cairo/print_pango_win32.pdf (broken) It's printe

Re: Printing

2008-02-17 Thread Bastiaan Veelo
Enrico Tröger wrote: > On Wed, 13 Feb 2008 19:56:05 +0100, Bastiaan Veelo <[EMAIL PROTECTED]> > wrote: > > Hi, > > >> 1) In order to get approximately correctly scaled text I had to specify >> a resolution of around 27.2 on the pango context. This value was >> determined by trial and error. I

Re: Printing

2008-02-16 Thread Enrico Tröger
> issue above. regarding the font issues in general: did you ever try to use Pango for the fonts instead of Cairo? In my app I'm using a PangoContext to place text into the page, but this also causes problems, at least on Windows. > 7) When printing under Windows to a Canon inkjet, t

Re: Printing

2008-02-13 Thread Bastiaan Veelo
); cairo_select_font_face (cr, "Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL); cairo_set_font_size (cr, 12.0); /* size em in mm */ cairo_move_to(cr, 0., 120.); cairo_show_text(cr, "m Hello World! Printing..."); cairo_move_to(cr, 0., 12

Re: Printing

2008-02-13 Thread Enrico Tröger
On Wed, 13 Feb 2008 19:56:05 +0100, Bastiaan Veelo <[EMAIL PROTECTED]> wrote: Hi, > In lack of a complete printing tutorial, I wrote one myself. There are cool. I missed a tutorial too when I was first working with the new printing API. > You will find the code attached, these ar

Printing

2008-02-13 Thread Bastiaan Veelo
Dear list, In lack of a complete printing tutorial, I wrote one myself. There are still some open questions though. My objective is to get consistent output of text and graphics on screen, in PDF and printed on paper, cross platform. All drawing code is in one function, which should not

Re: printing, cairo, & cups

2007-11-27 Thread Behdad Esfahbod
Hi Thomas, On Unix, Gtk+ uses the PS backend, not the image. The image backend makes little sense for printing. On Tue, 2007-11-27 at 06:58 -0600, Thomas Stover wrote: > My main question is this. Somewhere the cairo > RGBA color space must be mapped into a printer's device depe

printing, cairo, & cups

2007-11-27 Thread Thomas Stover
I've been trying to get myself up to speed with state of printing support in Gtk, and I'm down to just a few conceptual questions. It looks like the general idea is to setup a callback to render with cairo one page at a time using a GtkPrintContext. From this I would speculate that o

GTK 2.10 printing

2007-06-24 Thread Bo Lorentsen
Hi ... I have been trying to use GTK+ printing system (with some success even), but I have a few problems regarding stopping a print in a prober way (works only when spooling to a file or preview). Where can I find some detailed documentation about this (rather nice) system and some examples

Printing a GtkImage

2007-03-13 Thread David Hampton
ext); gdk_cairo_set_source_pixbuf(cr, pixbuf, x, y); This works well for printing the images that are loaded from a file, but fails when the file can't be read and gtk_image_new_from_file() returns the stock "broken image" icon. I know I can get the image type via gtk_image_get_

Printing with Gtk

2007-01-27 Thread Jens Sauer
Hi, I want to print from my Gtk Application but I could not find any tutorial. How can I calculate the necessary page number? What is the correct use of the draw-page signal of GtkPrintOperation? Can anybody help? -- Jens Sauer <[EMAIL PROTECTED]> ___

Re: capture window for printing

2007-01-24 Thread Fabian Förg
Fabian Förg wrote: > Hello, > > as the topic suggests, I am trying to capture a window which should be > printed afterwards. > > This is my code: > > /* appl_t is a struct created by me which contains "GtkWidget > *print_win", > * the window I want to print. Moreover, appl_t contains gints for th

capture window for printing

2007-01-23 Thread Fabian Förg
Hello, as the topic suggests, I am trying to capture a window which should be printed afterwards. This is my code: /* appl_t is a struct created by me which contains "GtkWidget *print_win", * the window I want to print. Moreover, appl_t contains gints for the * width and height of the window

Gtk Printing - Print Image with new Gtk API and Cairo

2006-10-25 Thread Alessandro Oliva
I have played with the new gtk+ printing support. I use gtk+ 2.10.6 with MinGW on Windows. I have a pixbuf and I want to print it in A4 format. the problem is: when beginning the print process, the "Dimension" of the printing file (to printer) is 126 MB !!, the process is slow

Re: Problem with gtk printing

2006-08-12 Thread Chris Vine
gt; 1.1.23). > Gtk+ version is 2.10.1. > > I only need orientation. Thanks in advance! It's a bug, no. 350329 at bugzilla - a patch is also posted which you can use, but there are a number of other problems with the gtk printing implementation and I suggest you wait a bit before using

Problem with gtk printing

2006-08-12 Thread Sebastian Filippini
Hi. My name is Sebastian, I'm new in gtk programming. I'm having a problem when I try to use the new print support: When I invoke gtk_print_operation_run() print dialog is opened. Then, when the CUPS printer is being loaded, application ends with: symbol lookup error: /usr/lib/gtk-2.0/2.10.0/pri

Cross-Platform text edit with printing

2006-01-23 Thread Arne Caspari
Hi, I want to write an application that presents a form which could be edited by the user and which should then be printed. The text editing functionality of a multiline edit would suffice but I do not know how to print the text buffer. Using gnome-print is not an option since the application

Printing contents of GtkTextBuffer

2005-11-18 Thread dnr
Can anyone provide guidance on using Gnome Print to print the contents of a GtkTextBuffer, or the GtkTextView that the buffer is associated with? The buffer may contain images, and rtl text as well as ltr text. ___ gtk-app-devel-list mailing list gtk-a

Printing with gtk on windows

2005-07-21 Thread Razvan Gavril
I need to do some printing in a gtk application that runs on windows os and i can't find any starting point to look for documentation. Can anyone help me ? -- Razvan Gavril [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel

Re: printing problem

2005-05-12 Thread stian
> hi > > I was wanting to divide my page in two columns. One > column with images and the other with text. Could > someone give me an idea of how to do this. I have been > trying libgnomeprint library. > > Printing a char * in multiline and restricted to a > certain co

printing problem

2005-05-12 Thread abhi rocks
hi I was wanting to divide my page in two columns. One column with images and the other with text. Could someone give me an idea of how to do this. I have been trying libgnomeprint library. Printing a char * in multiline and restricted to a certain column of the page is my main problem. Any

Re: printing HtmlView (from libgtkhtml)

2005-04-20 Thread Peter Bloomfield
On 04/20/2005 08:18:55 AM, Hubert Sokolowski wrote: Hi! How to easily print the content of HtmlView created with html_view_new () ? Or some way to save it to a postscript file? The HtmlView api (libgtkhtml/view/htmlview.h) is quite sparse--nothing about printing, saving, or otherwise exporting

printing HtmlView (from libgtkhtml)

2005-04-20 Thread Hubert Sokolowski
Hi! How to easily print the content of HtmlView created with html_view_new () ? Or some way to save it to a postscript file? regards hs ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-deve