Re: Editable lists and trees

From: Date: Tue, 20 Dec 2005 20:36:59 +0000
Subject: Re: Editable lists and trees
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6456@lists.php.net to get a copy of this message
Hello Minas, > How can I set gdk window type. I tried with this > gdk_window_set_type_hint($this, Gdk::WINDOW_TYPE_HINT_DESKTOP); > but it doesn't work. PHP-Gtk makes use of objects oriented design while the original Gtk2 is plain without any oop. That means while you do > gdk_windo_set_type_hint($this, Gdk::WINDOW_TYPE_HINT_DESKTOP) in C, you have to do > $gtkwindow->window->set_type_hint(Gdk::WINDOW_TYPE_HINT_DESKTOP) in PHP-Gtk2. $gtkwindow is the GtkWindow object, and because set_type_hint is a method of GdkWindow (not GtkWindow), you have to use the ->window property of the GtkWindow object which is the underlying GdkWindow. > Also I tried to make a column in a ListView editable like this > $column = new GtkTreeViewColumn("Description", $cell_renderer2, "text", 1, > "editable", TRUE); > but it doesn't work also. I don't think it works that way - but I don't know how to do it either. I'm currently busy with the docs and might have some time later on to look at this, sorry. -- Regards/MfG, Christian Weiske

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.general (#6456) next »