Use GtkWidgets inside of a custom cell renderer
As subject says it's possibile? I've set up a custom cell renderer following the example in the treeview tutorial, now I'd like to use some GTK objects inside it instead of reinvent the wheel to draw lines and texts with GDK. The problem is that what I get in the render method of my subclass is the treeview widget and a cell_area where to draw... there is a way to force a widget to be drawn inside an area instead of being attached to another widget? What I want to be able to draw in a cell is a GtkFrame with inside a pair of boxes with a GtkImage and a few separators and GtkLabels with markups... not very confortable with Gdk primitives :) Bye, Gabry ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
add a cursor...
Hi!! i've an x-y plot created with GTk! I'd like that after clicking in one of the plotted points, appear a cursor and then i can move it throught all the plotted points!! Is it possible?? I've readen information about how to set a curso to a widgetbut the selected point is not a widget...so nothing goes!! Please...can anyone help me??? tHANKS A LOT! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Use GtkWidgets inside of a custom cell renderer
Gabriele Greco wrote: As subject says it's possibile? I've set up a custom cell renderer following the example in the treeview tutorial, now I'd like to use some GTK objects inside it instead of reinvent the wheel to draw lines and texts with GDK. The problem is that what I get in the render method of my subclass is the treeview widget and a cell_area where to draw... there is a way to force a widget to be drawn inside an area instead of being attached to another widget? Hi, The GtkWidget / GtkTreeView paradigms dont fit together that easily, that is by design. GtkTreeView technology is designed to be efficient to draw a list/tree of items, this way rows in a treeview dont really take up any resources when they are not visible (so you can easily have over 5000 items in a treeview without slowing things down) - GtkWidgets own screen realestate and thus cannot be packed into a treeview row. I agree it might be interesting if an unparented GtkWidget could simply be used as a rubber stamp on some input buffer though... (practicly speaking though, gtk+ doesnt do this). Cheers, -Tristan ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list