Re: cairo pixmap

2007-05-19 Thread Philip Withnall
Hi, On Sat, 2007-05-19 at 13:41 +0200, control H wrote: Hi, I'm planning to make my app use cairo instead of GDK based functions. I'm using a drawing area, which draws into a pixmap when the configure event is emitted, and copies the relevant part of the pixmap back on the screen on the

Re: cairo pixmap

2007-05-19 Thread control H
The signal handler for the expose event is passed some parameters specifying which part of the screen has become invalidated. If you use these in a Cairo drawing mask, then redraw your canvas, it should be quite fast, as Cairo will ignore all operations to areas outside the mask. But this

Re: cairo pixmap

2007-05-19 Thread Philip Withnall
On Sat, 2007-05-19 at 14:12 +0200, control H wrote: The signal handler for the expose event is passed some parameters specifying which part of the screen has become invalidated. If you use these in a Cairo drawing mask, then redraw your canvas, it should be quite fast, as Cairo will ignore

Re: Bypassing Force Quit

2007-05-19 Thread Yeti
On Wed, May 16, 2007 at 02:19:19PM -0400, Dan Gruhn wrote: I am running on FedoraCore5 and I have an application that when the user clicks the X in the upper right wants to query for saving any changed data. I have currently coded this as a signal handler for the delete event which puts up

Gtk-CRITICAL with a GtkFileChooserDialog

2007-05-19 Thread Vincent Torri
Hey, I create a GtkFileChooserDialog, then I set its current folder to my home dir, then I create a GtkFileChooserButton. When I run the prog, I get: (test_gtk:22697): Gtk-CRITICAL **: gtk_file_system_path_to_uri: assertion `path != NULL' failed I have gtk+ 2.10.11 I would like to know

Gtk+ icon compiled into executable

2007-05-19 Thread brad smith
Hello, I am new to Gtk+ and writing a small application with glade. I have my source file and glade file and icon for the dialog. My question is how can I include the icon in the final binary so it does not have to included in the same folder as the binary. Thanks in advance. Brad

Re: Gtk+ icon compiled into executable

2007-05-19 Thread Mike Melanson
brad smith wrote: Hello, I am new to Gtk+ and writing a small application with glade. I have my source file and glade file and icon for the dialog. My question is how can I include the icon in the final binary so it does not have to included in the same folder as the binary. Perhaps convert