Re: gtk_object_sink in glade_palette_init

2006-11-28 Thread Yeti
On Tue, Nov 28, 2006 at 07:32:14AM +0100, Philippe Bertin wrote: In glade_palette_init, there's this piece of code : /* Add items tray (via a scrolled window) */ priv-tray = gtk_vbox_new (FALSE, 0); g_object_ref (G_OBJECT (priv-tray)); gtk_object_sink (GTK_OBJECT

Re: gtk_object_sink in glade_palette_init

2006-11-28 Thread Philippe Bertin
Hello, I maybe didn't express myself well enough. I could understand that a reference to an object is taken in order to not have it disappearing (/destroyed). But what I actually meant to ask, is : what's the use of first adding a reference, (because that's what's happening in my eyes), for

Re: gtk_object_sink in glade_palette_init

2006-11-28 Thread Yeti
On Tue, Nov 28, 2006 at 09:44:54AM +0100, Philippe Bertin wrote: But what I actually meant to ask, is : what's the use of first adding a reference, (because that's what's happening in my eyes), for removing the reference /just the statement after/. Because that's what's happening in my

Re: gtk_object_sink in glade_palette_init

2006-11-28 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Nov 28, 2006 at 09:44:54AM +0100, Philippe Bertin wrote: Hello, [...] But what I actually meant to ask, is : what's the use of first adding a reference, (because that's what's happening in my eyes), for removing the reference /just the

Re: Conversion from GdkRegion to GdkPixbuf

2006-11-28 Thread Gian Mario Tagliaretti
2006/11/28, Colossus [EMAIL PROTECTED]: I have some image data in a GdkRegion, I need to use gdk_pixbuf_save() to save those image data in a png format. How can I convert it? I guess you can use cairo to do that job creating a cairo context and set the GdkRegion on the context with

Re: g_signal_connect_swapped

2006-11-28 Thread Victor van Rooijen
I thought that the reason for the callback function g_signal_connect_swapped is that you can connect an event in one widget to a callback function in another widget. But i am also rather new at GTK so i do not know if there are other possibilities to do that. Victor van Rooijen On Mon,

RE: Suppressing command window

2006-11-28 Thread Michael Torrie
On Mon, 2006-11-27 at 03:32 -0800, Sai Korada wrote: May be I was not clear in explaining my problem. I have used the -mwindows, which essentially suppresses all the debugging info(may be my printfs). But my requirement is different I've packaged the application along with the required GTK

Application crash

2006-11-28 Thread Ishii Satoshi
My application crashes after working for about a month. It works fine for the time being. The core shows gtk part only except main. gtk version is 2,4. Does anyone know how I can debug this kind of case? Your comment is very appliciated, #0 0xb7c22a9a in g_object_remove_weak_pointer ()

Re: Application crash

2006-11-28 Thread Yeti
On Wed, Nov 29, 2006 at 12:47:20AM +0900, Ishii Satoshi wrote: My application crashes after working for about a month. It works fine for the time being. The core shows gtk part only except main. gtk version is 2,4. Does anyone know how I can debug this kind of case? If you mean the

Re: gtk_object_sink in glade_palette_init

2006-11-28 Thread Philippe Bertin
Thanks for shedding some light on this piece of code. There's some more light at the end of my dark GTK-knowledge tunnel. AFAIU, after the _new() the box has a special reference to it: the ref count is one, but it is marked as floating[1]. Now gtk_object_sink() decrements the ref coung by one

Re: Format text in columns

2006-11-28 Thread Donald Malcolm
I am attempting to populate a GtkListStore with text that has Pango attributes and markup. I would like display proportional font tabular data with headings, titles, summary lines, and notes, that has labels, numeric values pre-formatted in character form, with left and right justifying. The

GtkEntry format

2006-11-28 Thread Anurag Chaudhary
Hi, I am porting an application's GUI from OS/2 presentation manager to GTK on linux. I have very specific requirement where I need a GtkEntry widget to display text as invisible character. But I need a space or - or any delimiter after every 4 characters. If I insert this delimiter manually

popupmen item callback

2006-11-28 Thread sunzysjzri
hi, i write a button which pops up a popupmenu after clicked, and when i select an item of the popupmen such warring appeared, and why? (taskmanager:4638): Gtk-CRITICAL **: gtk_widget_get_display: assertion `GTK_IS_WIDGET (widget)' failed (taskmanager:4638): Gdk-CRITICAL **: gdk_display_sync: