PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
get row and column of widget in a GtkTable (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: get row and column of widget in a GtkTable
#962
sutterp (User)
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
get row and column of widget in a GtkTable 1 Month, 1 Week ago Karma: 0  
After I played around with GtkTreeView I found myself in a blind alley because in GtkTreeView I can't have cells spanning rows/columns, I decided to use GtkTable instead, and it appears I am stuck again.

All 'cells' (widgets) in the GtkTable can span rows and columns and all have a name assigned with set_name(), which is essentially the Primary Key of the Database table; nice and unique. Because of the dynamic nature of the table, I can't use Glade to create it.

As I read the database, I need to access the widget, whose name I derive from the Primary Key.

Is there a way to access the widget directly, similar to GladeXML::get_widget('name') method, or a way to get the row/column of the widget within the table?

Or is the only way to achieve this to loop through $Table->get_children() with get_name?

I also need to know how many rows and columns there actually are in the table, the constructor of GtkTable asks for this; I presume these are stored as a property somewhere, How do I get these out?

Thanks

Peter
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2008. kksou.com. All Rights Reserved