multi line cell edition
Hi all, I need to edit a "multi-line" cell in a treeview. GtkCellRendererText can display a "multi-line" text, I need to be able to edit it and/or let the user set a multi line value in the cell. I look at GtkEntry APIs and I found gtk_entry_get_layout* API but I have no idea on how I can use it. Or have I to create a custom widget? How can I do this? I'm working on a GTK+ 2.18 version (RedHat 6) Thanks ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: multi line cell edition
On Thu, Feb 3, 2011 at 8:54 PM, Nicolas Soubeiran wrote: > Hi all, I need to edit a "multi-line" cell in a treeview. > GtkCellRendererText can display a "multi-line" text, I need to be able > to edit it and/or let the user set a multi line value in the cell. > I look at GtkEntry APIs and I found gtk_entry_get_layout* API but I > have no idea on how I can use it. Or have I to create a custom widget? > How can I do this? I'm working on a GTK+ 2.18 version (RedHat 6) Generally I do that by popping up a dialog for anything editing of multi-line text from a treeview. GtkCellRendererText uses a GtkEntry and finishes the editing by way of the ENTER key (or cancels it by way of ESC key)... you could theoretically write your own GtkCellRendererText derived renderer that uses a derived GtkTextView to implement GtkCellEditable... but... if you did that I'm not sure it would be a good user experience (i.e. how would the user indicate that they finished editing the cell ?, you would have to put a button in there or something ?). In the end I recommend using a dialog that pops up from the treeview to edit multi-line text. Cheers, -Tristan ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK+ 2.99.3 released
On 02/02/2011 09:32 PM, David Nečas wrote: On Wed, Feb 02, 2011 at 08:47:48PM +0100, Jaroslav Šmíd wrote: I am running ubuntu 10.10 and Gnome 2.32.0. I am a bit afraid to update via a install from a tar download because of all the dependence issues on ubuntu. Is there a way to update via command line or synaptic? Install gtk2-dev (or something like that). It will install most of required depencies to build new glib and gtk3. After that, download glib, and install like this: ./configure --prefix=/opt/gtk3-stuff ... Nothing to be afraid of as long as you install to /opt/gtk3-stuff and not to /usr. This is a good advice *but* /opt should be replaced with $HOME/opt or something similar. Unless you actually need to test packaging and system integration don't do anything as root. (And even if you perform such testing you generally want to do it in chroot or a virtual machine that can be safely destroyed.) Yeti ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list Who said something about root? Having gtk3-stuff directory in /opt doesn't imply using root account to install gtk3. I find it better then making mess in my home directory. --- Jaroslav Šmíd ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list