Re: How long does it take to load a file..

2005-03-16 Thread John Coppens
On Wed, 16 Mar 2005 14:40:58 -0600 "Robertson, Ezban" <[EMAIL PROTECTED]> wrote: > > Hi all, > I'm loading a series of jpeg images (also tried with png) and notice it > takes about 1.2 seconds to load each. Is this normal? I'm using the > function gdk_pixbuf_new_from_file. > Is there a better (i.

Re: GdkPixmap

2005-03-16 Thread Tristan Van Berkom
[ A b h i s h e k ] wrote: Hi I needed to know how to copy an image already in GtkImage or GdkPixbuf format to a GdkPixmap format. First create a pixmap of the correct dimentions: http://developer.gnome.org/doc/API/2.0/gdk/gdk-Bitmaps-and-Pixmaps.html#gdk-pixmap-new Then draw pixbuf to it: http://

Re: g_spawn_async_with_pipes and g_io_add_watch problem

2005-03-16 Thread Tim Müller
On Wednesday 16 March 2005 21:55, Ole C. wrote: > (snip a lot) I have to admit I have only quickly looked over your text and not read it in much detail, but it sounds like you might not be checking the condition in the g_io_add_watch() callback on a per-flag basis. Your callback could be call

node that change its has-child state in treemodel

2005-03-16 Thread Denis
Hi ! I have the following problem with my treemodel : answer to the question "does this node have childs ?" is time consuming. As this question is asked to every sun of a node when it is expanded, I want to have the following behaviour : When a node is expanded, tree_model_has_child allways retur

g_spawn_async_with_pipes and g_io_add_watch problem

2005-03-16 Thread Ole C.
Hello, I am writing a GTK/GLIB application that will basically act as an interface for existing programs, and I have run into some problems while utilizing the function calls mentioned in the subject field. My issues are described below, sorry if it is a bit long winded. I don't have experience wi

How long does it take to load a file..

2005-03-16 Thread Robertson, Ezban
Hi all, I'm loading a series of jpeg images (also tried with png) and notice it takes about 1.2 seconds to load each. Is this normal? I'm using the function gdk_pixbuf_new_from_file. Is there a better (i.e faster) alternative? Thanks, ER ___ gtk-app-d

Re: gdk_input_add() with class member as callback problem

2005-03-16 Thread Eelco Schijf
Thank you! That solved the problem and everything works like a charm. And you're right I'm not using the user data. Also thanks for the link. I've found it a nice to read into understanding how this stuff works. On Wednesday 16 March 2005 13:21, Melvin Hadasht wrote: > Eelco Schijf a écrit : >

Re: Real Time Drawing

2005-03-16 Thread John Cupitt
On Wed, 16 Mar 2005 09:14:38 +, Athanasios Anastasiou <[EMAIL PROTECTED]> wrote: > After some directions from Liam (see yesterdays mailing archive) i > passed my app through valgrind and found out that there are too many > errors happening in the GTK / X level. I suppose that it has something >

Re: gdk_input_add() with class member as callback problem

2005-03-16 Thread Melvin Hadasht
Eelco Schijf a écrit : Hi, I'm stuck with the gdk_input_add() function and could use a hint to solve the problem. So here goes; The callback function I want to call is a member of a class, but g++ won't compile this. Placing the function outside the class works, but this is not the solution I'm

gdk_input_add() with class member as callback problem

2005-03-16 Thread Eelco Schijf
Hi, I'm stuck with the gdk_input_add() function and could use a hint to solve the problem. So here goes; The callback function I want to call is a member of a class, but g++ won't compile this. Placing the function outside the class works, but this is not the solution I'm looking for. The cod

Re: Getting native X Window from GtkWidget

2005-03-16 Thread Jörg Henne
Owen Taylor schrieb: On Mon, 2005-03-14 at 15:22 +0100, JÃrg Henne wrote: } As you can see, I tried both suggested routes. However, both of them lead to the same problem: Entering Handle: 0x34000c1 (process:11392): GLib-GObject-CRITICAL **: gtype.c:1871: initialization assertion failed, use g

Re: Real Time Drawing

2005-03-16 Thread Athanasios Anastasiou
Thanks for your email and the helpful information John. After some directions from Liam (see yesterdays mailing archive) i passed my app through valgrind and found out that there are too many errors happening in the GTK / X level. I suppose that it has something to do with the way i am using the