GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Oct 23, 2014 6:44 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Custom Cell Renderer
PostPosted: Sat Mar 01, 2008 6:27 pm 
Offline
Familiar Face

Joined: Thu Dec 27, 2007 3:49 pm
Posts: 38
Im writing a my custom cell renderer, here's my custom render funcs

Code:

static void cell_renderer_ownerdraw_render(GtkCellRenderer *cell_renderer,GdkDrawable *window,GtkWidget *widget,GdkRectangle *background_area,
                                      GdkRectangle *cell_area,GdkRectangle *expose_area,GtkCellRendererState flags)
{
.
.
item = background_area->y / background_area->height;
.
.
}



I have this problem how can i determine the item that it is drawing? My code works only for first items.

Execuse me for my English.

_________________
Linux is the best


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group