Drawing a widget to offscreen

2007-10-12 Thread Alberto Mardegan
Hi all, I have a GtkTreeView associated to a model that doesn't change very often, but whose rendering might be computationally expensive. For this reason, I'd like to render the GtkTreeView to an offscreen pixmap (in its full size, no cropping), and then show this pixmap in a scrolled window

Re: GIOChannel, how to free?

2007-04-04 Thread Alberto Mardegan
ext Iain * wrote: > On 4/4/07, Alberto Mardegan <[EMAIL PROTECTED]> wrote: >> Sure. My question is, how many times (and when) do I have to call it? > > Once when you've finished with it So I may assume that the flow I wrote in my first mail is correct (apa

Re: GIOChannel, how to free?

2007-04-04 Thread Alberto Mardegan
ext Iain * wrote: > http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html#g-io-channel-unref > > > perhaps? Sure. My question is, how many times (and when) do I have to call it? -- http://www.mardy.it <-- Geek in un lingua international! __

GIOChannel, how to free?

2007-04-04 Thread Alberto Mardegan
Hi, I hope this is the correct ML to ask something about glib. I'm creating a GIOChannel with g_io_channel_unix_new() and installing it as a source with g_io_add_watch(). Everything works, but I don't know if/how am I suppose to cleanup the things after the file descriptor closes. In the GIOFun

GtkTreeView with cells editable on entry

2006-06-28 Thread Alberto Mardegan
Hi all! I have a single-column GtkTreeView widget in which all cells are editable, and I must let the user edit them without having to click twice (in the standard GtkTreeView, one click selects a cell, and another is needed to begin editing). More clearly stated, there must never be cells which

GtkTreeView with cells editable on entry

2006-06-28 Thread Alberto Mardegan
Hi all! I have a single-column GtkTreeView widget in which all cells are editable, and I must let the user edit them without having to click twice (in the standard GtkTreeView, one click selects a cell, and another is needed to begin editing). More clearly stated, there must never be cells which