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 dependent color > sp

Re: Changing a style property?

2007-11-27 Thread Micah Carrick
You may want to look over the documentation of GtkRcStyle, resource files (.rc files for themes). The "style" property of a widget is a GtkStyle object. There is no "shadow-type" property of a widget. These are typically not used by the developer. We leave this stuff up to the theme. If we wan

Finding API documentation by function name

2007-11-27 Thread Raja Mukherji
Hi all, I'm writing a binding generator for my language to Gtk and want the generator to be able to insert documentation into the generated code automatically. Is there any existing program/script for getting the documentation associated with a specific api function? For example: gtk_about_dialo

Re: Changing a style property?

2007-11-27 Thread Andrew Smith
Andrew Smith a écrit : > Hi > > Can someone tell me how to change the 'style property' (as it's called > in the reference manual) of a gtkwidget? > > Specifically right now I'm looking to change the 'shadow-type' property > of gtkmenubar, gtktoolbar, and gtkcombobox. They look like crap on vist

Re: Strange interaction between GtkDialog and a GThread

2007-11-27 Thread Gnaural
Thanks for the reply. Interesting. Replacing sleep() with select() did return an error with errno == EINTR. If I understand you correctly, this is a clue that gtk_file_chooser_dialog_new is calling alarm() somewhere. That may indeed factor in to what I am trying to solve. But fact is, getting a th

Re: C vs C++ for GTK

2007-11-27 Thread Junior Polegato - GTK+ & GTKmm
Alan Lake escreveu: > The question is, "Do you want to drive a car, customize a car or design a > car?" None is better than > the others. They are different disciplines. > Hi, I think like you. The best language is the one you know and solves your problem. See aMSN, where his mentor only stud

Re: C vs C++ for GTK

2007-11-27 Thread Dan H
On Mon, 26 Nov 2007 21:12:17 -0800 (PST) JAMES SCOTT <[EMAIL PROTECTED]> wrote: > When I have to write in C, Glib is a godsend. Yes! When I came back to C from C++ (I had done a large project for which C++ was ideally suited, but I like C much better) the thing I missed most was the STL. I was

Re: Slow UI updates with GtkImage

2007-11-27 Thread Tristan Van Berkom
On Nov 27, 2007 6:11 AM, David Brigada <[EMAIL PROTECTED]> wrote: > Hi, > > I'm working on an audio player application. I currently have two > elements that change on a frequent basis: a GtkHScale and a GtkImage. > Whenever I update the data, I call gtk_widget_queue_draw on the widget > that chang

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 on win32, a

Re: C vs C++ for GTK

2007-11-27 Thread Alan Lake
Just .02 € from a programmer who's been doing it for about 40 years. I agree with most of what has been said on this thread. My thought is that object-oriented thinking is entirely different from procedural thinking. I think that one needs to settle on one paradigm or the other and stay with it

how to connect signal to the object method in its constructor

2007-11-27 Thread Lukasz Gromotowicz
Hi all, I have a lot of objects - each represents a window. Constructor of the object creates the window. Object (class) contains the methods which I would like to connect signals to (e.g. on_button_clicked). Can anyone help me with it? If I have a function not belonging to the class, I can conne

Slow UI updates with GtkImage

2007-11-27 Thread David Brigada
Hi, I'm working on an audio player application. I currently have two elements that change on a frequent basis: a GtkHScale and a GtkImage. Whenever I update the data, I call gtk_widget_queue_draw on the widget that changed. With just the slider updating every 200ms, it works fine. If I add