gobject ref and unref ?

2009-11-10 Thread Siddu
Hi all, How does one get to know if an API is adding a reference of its own to an object Passed as a Parameter and thereby incrementing the ref_count ? Is there any documentation available for it ? as to when to ref and unref it based upon the api's ? For example in the below code

Re: gobject ref and unref ?

2009-11-10 Thread Tadej Borovšak
Hello. Is there any documentation available for it ? as to when to ref and unref it based upon the api's ? You don't need to know those things, since object's total reference count is of no importance to you. All you need to do is keep track of your own references on an object. Let me explain

Re: gobject ref and unref ?

2009-11-10 Thread David Nečas
Please don't cross-post. On Tue, Nov 10, 2009 at 11:14:24PM +0530, Siddu wrote: How does one get to know if an API is adding a reference of its own to an object References represent ownership. Hence a reference is added if you provide an object to be taken and used later. Most methods that

Re: gobject ref and unref ?

2009-11-10 Thread Siddu
That was pretty neat thanks. On 11/10/09, Tadej Borovšak tadeb...@gmail.com wrote: Hello. Is there any documentation available for it ? as to when to ref and unref it based upon the api's ? You don't need to know those things, since object's total reference count is of no importance to

SOLVED: Re: Problem with gtk_tree_selection_select_path: background color does not change

2009-11-10 Thread Carlos Pereira
This is nicely working for me now, I should have been doing something wrong before, Carlos Hi list, I need to select multiple rows in a treeview, directly from my code, in MULTIPLE selection mode. This is a very simple treemodel, only one column with a string. Unfortunately, although

gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if,dest_x is 0. Help please?

2009-11-10 Thread Todor Todorov
Hello list, I am trying to create a thumbnail from a digital image, which should not exceed 128 px width or height. After loading the image, I apply the EXIF orientation information, if available. In order to prettify the resulting display, I would like to place the pixbuf horizontally

Re: gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if, dest_x is 0. Help please?

2009-11-10 Thread Todor Todorov
OK, something happened to the attached images, so let's see about inlining them ... offset is zero, no artifacts offset is zero, no artifacts offset is 16, artifacts at the right side of the imageoffset is 16, artifacts at the right side of the image On 11/10/2009 06:39 PM, Todor Todorov

Re: gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if, dest_x is 0. Help please?

2009-11-10 Thread Todor Todorov
That did not work either, so I uploaded the 2 images on the Net and here are the links for the interested: [no artifacts] http://www.inselpix.com/img/833790624900.jpg [artifacts] http://www.inselpix.com/img/478403985121.jpg I hope someone can tell me, what I missed/did wrong when composing

Re: gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if, dest_x is 0. Help please?

2009-11-10 Thread Todor Todorov
That did not work either, so I uploaded the 2 images on the Net and here are the links for the interested: [no artifacts] http://www.inselpix.com/img/833790624900.jpg [artifacts] http://www.inselpix.com/img/478403985121.jpg I hope someone can tell me, what I missed/did wrong when composing

Re: Ctrl-Click keyboard mouse event

2009-11-10 Thread Emmanuel Rodriguez
On Tue, Nov 10, 2009 at 10:56 PM, Carlos Pereira jose.carlos.pere...@ist.utl.pt wrote: Hi list, When a button press event is triggered, what is the proper way to know if the user is pressing down the Ctrl key? Tipically I would want to know this inside a button press event callback: int