Re: Using GObject library to create a lot of objects

2005-03-05 Thread John Vetterli
On Sun, 6 Mar 2005, Falls Huang wrote: If u want to create thousands of GObject and don't modified them at once, I suggest u use some methods which can achieve "copy-on-write" in GObject ( I don't know how to do :( ). btw: Why don't the developers of GObject add copy-on-write function to GO

Re: Using GObject library to create a lot of objects

2005-03-05 Thread Fabrício Barros Cabral
On Sun, 2005-03-06 at 11:30 +0800, Falls Huang wrote: > Hello! Hi! > (sorry for my poor english first) > I took a glance at the src of gobject. It's seemed that the gobject > doesn't have a "copy-on-write" function which QT's share class has. > (http://doc.trolltech.com/4.0/shclass.h

Re: Using GObject library to create a lot of objects

2005-03-05 Thread Falls Huang
Hello! (sorry for my poor english first) I took a glance at the src of gobject. It's seemed that the gobject doesn't have a "copy-on-write" function which QT's share class has. (http://doc.trolltech.com/4.0/shclass.html) If u want to create thousands of GObject and don't mo

Re: Using GObject library to create a lot of objects

2005-03-05 Thread Paul Pogonyshev
FabrÃcio Barros Cabral wrote: > Hi people! > > I'm thinking develop an application using the GObject library, but I > have a dilemma: use or not use the GObject library. This application is > object-oriented but will be able to create-use-destroy a lot of objects > (10.000 or more) during the execu

Using GObject library to create a lot of objects

2005-03-05 Thread Fabrício Barros Cabral
Hi people! I'm thinking develop an application using the GObject library, but I have a dilemma: use or not use the GObject library. This application is object-oriented but will be able to create-use-destroy a lot of objects (10.000 or more) during the execution of this application. Thus, my quest

How obtain a GtkMenu's weight and height?

2005-03-05 Thread Alan Xue
I try gtk_widget_get_size_request(menu, &w, &h), but it returns -1. How obtain a GtkMenu's weight and height? thanks. __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospe

Assetion: layout->wrap_loop_count

2005-03-05 Thread RAT
While adding text into textwindow I'm seeing this assertion. What could possibly cause this? (communicator:2205): Gtk-CRITICAL **: file gtktextlayout.c: line 813 (gtk_text_layout_real_invalidate): assertion `layout->wrap_loop_count == 0' failed ___ gtk-