GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Custom Cell Renderer

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
Lino
Familiar Face


Joined: 27 Dec 2007
Posts: 19

PostPosted: Sat Mar 01, 2008 6:27 pm    Post subject: Custom Cell Renderer Reply with quote

Im writing a my custom cell renderer, here's my custom render funcs

Code: (Plaintext)
1
2
3
4
5
6
7
8
9
10
11
12
13


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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP