a lot of modal dialog without GTK.main

2010-02-04 Thread Andrey Nikitin
Hi. I try make my first GTK application without creation a main window and without GTK.main() call. [code] dialog1.run exit if error dialog1.destroy dialog2.run exit if error dialog2.destroy ... result_msg_dialog.run result_msg_dialog.destroy [/code] But I noticed that dialog.destroy() call

Gtk Widget Transparency

2010-02-04 Thread Tristin Celestin
I am trying to understand how to make individual widgets in GTK transparent, like how it is done in gnome-terminal, as opposed to setting the opacity of an entire heirarchy via set_opacity (). All the examples demonstrating transparent widgets use a cairo canvas and require that you perform

glib *nix signals

2010-02-04 Thread Thomas Stover
I'm looking for some notes / advise on catching SIGTERM in a glib main loop based program. Mainly on linux, but other kernels would be nice. This article: http://www.linuxjournal.com/article/2121 for instance, recommends masking all signals all the time and creating a dedicated thread siting

Random crashes when printing on OS X

2010-02-04 Thread Shawn Bakhtiar
I am using the GtkPrint* functions to print. However at what seems to be random occurrences the application crashes with the following error: Gdk:ERROR:gdkeventloop-quartz.c:559:select_thread_collect_poll: assertion failed: (ufds[i].fd == current_pollfds[i].fd) Abort trap When the user

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