GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Oct 31, 2014 8:07 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: GtkTreeView Hexdecimal G_TYPE_UINT Rendering
PostPosted: Fri Feb 15, 2008 11:03 pm 
Offline
Familiar Face

Joined: Wed Oct 03, 2007 12:28 pm
Posts: 25
Location: Virginia (Northern)
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 18, 2008 4:28 am 
Offline
Familiar Face

Joined: Thu Dec 27, 2007 3:49 pm
Posts: 38
Anybody? Nothing?

_________________
Linux is the best


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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