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 

GtkTreeView Hexdecimal G_TYPE_UINT Rendering

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


Joined: 03 Oct 2007
Posts: 25
Location: Virginia (Northern)

PostPosted: Fri Feb 15, 2008 11:03 pm    Post subject: GtkTreeView Hexdecimal G_TYPE_UINT Rendering Reply with quote

Does anyone know of a simple (or built-in) way to render an integer (G_TYPE_UINT) in its hexadecimal format within a GtkTreeView?

The way I currently do this is to have both G_TYPE_UINT and G_TYPE_STRING fields within the associated GtkListStore whereby the G_TYPE_UINT holds the integer value and the G_TYPE_STRING holds a string representation where I manually build and store the hexadecimal representation. Although this works, it seems like there would/should be a way to utilize a GtkCellRenderer somehow to do this for you with only the value stored.

Kirk
Back to top
Lino
Familiar Face


Joined: 27 Dec 2007
Posts: 23

PostPosted: Mon Feb 18, 2008 4:28 am    Post subject: Reply with quote

Anybody? Nothing?
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