Re: Setting a Tree View Cell to insensitive and uneditable

2010-04-19 Thread dhk
On 04/19/2010 01:34 PM, Nicolas Soubeiran wrote: > When creating your model set a specific column with a boolean property. > e.g : > enum > { > STRING_COLUMN =0, > EDITABLE_COLUMN, > N_COLUMN > } > ... > gtk_list_store_new(N_COLUMN, G_TYPE_STRING, G_TYPE_BOOLEAN); > > Then in the treeview create

GLib 2.25.0 released

2010-04-19 Thread Matthias Clasen
GLib 2.25.0 is now available for download at: ftp://ftp.gtk.org/pub/glib/2.25/ http://download.gnome.org/sources/glib/2.25/ sha256 sums: 3815e6c0053e488fdbde032de133d7218953c7c9a1b11839dbb828db6ba023c3 glib-2.25.0.tar.bz2 6c54ec9d941d3a435e4f6081a9bbff1d596de705a8360086a587597eadc55e24 glib-2

Re: Setting a Tree View Cell to insensitive and uneditable

2010-04-19 Thread Nicolas Soubeiran
When creating your model set a specific column with a boolean property. e.g : enum { STRING_COLUMN =0, EDITABLE_COLUMN, N_COLUMN } ... gtk_list_store_new(N_COLUMN, G_TYPE_STRING, G_TYPE_BOOLEAN); Then in the treeview create a column using gtk_tree_view_column_new_with_attributes("title", text_cel

Re: Setting a Tree View Cell to insensitive and uneditable

2010-04-19 Thread Gabriele Greco
> > > Is it possible to set a cell in a specific column and row to insensitive > and uneditable and not affect the rest of the cells in the same column? > Yes, you should change your TreeModel to have two additional boolean columns to map the "sensitive" and "editable" boolean field for your TreeV

How to handle GIO channel when the other side kills the connection

2010-04-19 Thread silverburgh
Hi, I am using GIOChannel in my gtk application. I am able to read/write to GIO channel with a 'client' application, my gtk application serves as a 'server'. But when the 'client application' dies unexpectedly, I see a lot of these errors from my gtk application ('server') terminal: GLib-CRITICA

Re: how to remove the contents of vbox?

2010-04-19 Thread Tadej Borovšak
Hello. > hello, I got this func: static void (GtkWidget *vbox) {...}, when passed in > an vbox, it should insert a GtkWidget *scrolled_window into the vbox, but I > want to clear the contents of vbox first,otherwise the old contents will be > displayed as well as the newly inserted widget. I am wo

how to remove the contents of vbox?

2010-04-19 Thread Arthur 1989
hello, I got this func: static void (GtkWidget *vbox) {...}, when passed in an vbox, it should insert a GtkWidget *scrolled_window into the vbox, but I want to clear the contents of vbox first,otherwise the old contents will be displayed as well as the newly inserted widget. I am wondering how to i