gnope php gtk gui gnope.org  

GtkCellView / GtkTooltips

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
ssiwek



Joined: 15 May 2006
Posts: 20

PostPosted: Thu Aug 24, 2006 2:42 pm    Post subject: GtkCellView / GtkTooltips Reply with quote

Hi!

I do have a GtkTreeView and I want to set to some specific tooltips for several rows of that view. I cant find any method to get a GtkCellView from that treeview which displays rows from a GtkTreeView.
Only a GtkCellView is a gtkwidget which is needed for gtktooltips.

May be some can help me....
Thanks in advance
Sven
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Sat Aug 26, 2006 5:49 pm    Post subject: Reply with quote

GtkCellView is implemented by the cell renderers which are attached at the columns.
Back to top
ssiwek



Joined: 15 May 2006
Posts: 20

PostPosted: Mon Aug 28, 2006 10:02 am    Post subject: Reply with quote

cweiske wrote:
GtkCellView is implemented by the cell renderers which are attached at the columns.


Hmmm if I try that I do get an error:
Fatal error: Argument 1 passed to GtkTooltips::set_tip() must be an instance of GtkWidget, called in C:\workspace\ueb.php on line 76 and defined in C:\workspace\ueb.php on line 63

Code:

   $mytool = new GtkTooltips;
    $cell_renderer = new GtkCellRendererText();
   $mytool->set_tip($cell_renderer,"Dies ist ein Tipp.");

What am I doing wrong?
Have a nice week
Sven
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.