deleting text in a text view
I'm probably using the wrong widget for this, but never-the-less. I have a GtkTextView in a window used for data entry into a database. The text typed in the view gets put in the database no problem, but once the data entry has occurred, I want to clear the view so that the next screen of data can be input. Looking through the API, there isn't a set text function for this view (per se) except in the GtkTextBuffer. The other funcition in that widget is gtk_text_buffer_delete, which I called but I'm getting an error. Here's the code I was using to get the buffer, then delete it: /* the GtkTextView in this window requires a bit of extra work to get the text value stored in it. */ specialView = lookup_widget(customers, cust_instructions); specialBuffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(specialView)); gtk_text_buffer_get_bounds(specialBuffer, start, end); gtk_text_buffer_delete(specialBuffer, start, end); But here's the error I'm getting when I try to do that: (dispatcher:1523): Gtk-WARNING **: Invalid text buffer iterator: either the iter ator is uninitialized, or the characters/pixbufs/widgets in the buffer have been modified since the iterator was created. You must use marks, character numbers, or line numbers to preserve a position ac ross buffer modifications. You can apply tags and insert marks without invalidating your iterators, but any mutation that affects 'indexable' buffer contents (contents that can be referred to by character offset) will invalidate all outstanding iterators (dispatcher:1523): Gtk-CRITICAL **: file gtktextbuffer.c: line 1297 (gtk_text_bu ffer_delete): assertion `gtk_text_iter_get_buffer (start) == buffer' failed Then it segfaults. So I tried the set text call like this: gtk_text_buffer_set_text(specialBuffer,, 0); but I think that makes my app segfault as well. Can anyone help? -- .''`. Carl B. Constantine : :' : [EMAIL PROTECTED] `. `'GnuPG: 135F FC30 7A02 B0EB 61DB 34E3 3AF1 DC6C 9F7A 3FF8 `- Debian GNU/Linux -- The power of freedom Claiming that your operating system is the best in the world because more people use it is like saying McDonalds makes the best food in the world. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Pango without X display/gtk_init()?
On Mon, Dec 01, 2003 at 01:35:29PM +0100, Sven Neumann wrote: You could be using the PangoFT2 backend to render your fonts. You don't need to call gtk_init() then. Thanks, this seems to work! I just need to call g_type_init(). Now I can run dia w/o a DISPLAY. Cheers, -- W. Borgert [EMAIL PROTECTED] ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
[Fwd: Re: Still have pb installing gtk+2.2]
Original Message Subject: Re: Still have pb installing gtk+2.2 Date: Sat, 06 Dec 2003 16:38:25 +0100 From: busmanus [EMAIL PROTECTED] To: Alain D'eurveilher [EMAIL PROTECTED] References: [EMAIL PROTECTED] Alain D'eurveilher wrote: Hi, I'm trying to install gtk+2.2. i already installed pkg-config 0.9.0 freetype 2.1.5 Where did you install them? (What was the value of the --prefix option? Did you specify a --prefix option at all? If you don't understand what I am talking about, then it is time for you to run ./configure --help | less in the source directory of one of the packages you are trying to install) busmanus Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol. Probald ki most! http://www.freestart.hu ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
[Fwd: Re: Still have pb installing gtk+2.2]
Original Message Subject: Re: Still have pb installing gtk+2.2 Date: Sat, 06 Dec 2003 16:54:52 +0100 From: busmanus [EMAIL PROTECTED] To: Alain D'eurveilher [EMAIL PROTECTED] References: [EMAIL PROTECTED] Alain D'eurveilher wrote: Hi, I'm trying to install gtk+2.2. i already installed pkg-config 0.9.0 freetype 2.1.5 (but % freetype-config --versionreturns 9.4.3 : why ???!) and now i'm trying to install fontconfig 2.2.0 The % ./configure 'step is ok, but the % make returns some errors : Something else: What version of Xserver do you use? If the version number is below, I think, 4.2 then you also need to compile and install render and xrender to be able to compile fontconfig 2.2.0 The latest versions I know of are render-0.8 and xrender-0.8.3 They are available through the fontconfig home page, from the same folder where one of the downloadable copies of fontconfig 2.2.0 is placed. I suspect, all the Xservers shipped with Woody fall into this category. busmanus Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol. Probald ki most! http://www.freestart.hu ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: glib 2.2.3 compile failure
On 2003-11-23, I wrote I'm trying to compile glib 2.2.3 on HP-UX 11.11. The compile fails in glib/libcharset with this error: /bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -Wl,+s \ -L/home/e/l/ellement/usr/lib -o libcharset.la localcharset.lo -lintl false cru .libs/libcharset.a .libs/localcharset.o make[3]: *** [libcharset.la] Error 1 What is the cause of this error? How do I correct it? It turns out configure didn't find 'ar', and used 'false' instead. Once I re-ran configure with AR=ar, everything compiled. (For some reason, configure doesn't find a number of tools in my path: gcc, ar, awk, sed, ld, and pkg-config. With other packages, their configure finds things that are in my path). I didn't actually figure this out myself. I found a discussion of my original problem on the cURL mailing list archive after searching for false cru. -- David Ellement ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: [Fwd: Re: Still have pb installing gtk+2.2]
And.. I don't know if it helps to know about the versions, but I did this: % more /usr/X11R6/include/X11/extensions/render.h /* * $XFree86: xc/include/extensions/render.h,v 1.4 2001/08/16 08:03:25 keithp Exp $ * (...) and : % more /usr/X11R6/include/X11/extensions/xrender.h /* * $XFree86: xc/lib/Xrender/Xrender.h,v 1.10 2001/12/27 01:16:00 keithp Exp $ * (...) Does it mean that the version of render is 1.4, and xrender is 1.10 ??? maybe not... AlaiN. --- --- Alain D'eurveilher wrote:/* Hi, I'm trying to install gtk+2.2. i already installed pkg-config 0.9.0 freetype 2.1.5 (but % freetype-config --versionreturns 9.4.3 : why ???!) and now i'm trying to install fontconfig 2.2.0 The % ./configure 'step is ok, but the % make returns some errors : Something else: What version of Xserver do you use? If the version number is below, I think, 4.2 then you also need to compile and install render and xrender to be able to compile fontconfig 2.2.0 The latest versions I know of are render-0.8 and xrender-0.8.3 They are available through the fontconfig home page, from the same folder where one of the downloadable copies of fontconfig 2.2.0 is placed. I suspect, all the Xservers shipped with Woody fall into this category. busmanus I didn't use the --prefix option, so the installation path was the default one : /usr/local/ I'm using the xserver-xfree86 4.2.1 about render and xrender.. I don't know.. I cannot find the way to 1°) know if i have the lib installed 2°) know their version. I continue to search how to know it... If i cannot find something ... maybe i will install the new version... thanks. AlaiN. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list Bozz. Si vous n'arrivez pas à joindre votre correspondant au Groupe ESIEE ou pour tout problème concernant des e-mails non distribués, votre serveur de mail ne respecte peut-être pas la RFC822 ou votre DNS n'est pas correctement configuré. Contactez votre responsable informatique et regardez au lien ci-dessous : If you can't send mail to Esiee or for any problem about undelivered e-mail perhaps your mail server's configuration doesn't respect RFC822 or your DNS is misconfigured Please contact your IT manager and look at http://www.esiee.fr/infos/mail.html ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: [Fwd: Re: Still have pb installing gtk+2.2]
Ok, actually... I should look at the MINOR MAJOR lines Ok, i have the 0.2 version of render.. about xrender, i still don't know... I think I shoul install them anyway. But do I just need to install those two libs or all the Xserver ?? AlaiN. --- And.. I don't know if it helps to know about the versions, but I did this: % more /usr/X11R6/include/X11/extensions/render.h /* * $XFree86: xc/include/extensions/render.h,v 1.4 2001/08/16 08:03:25 keithp Exp $ * (...) and : % more /usr/X11R6/include/X11/extensions/xrender.h /* * $XFree86: xc/lib/Xrender/Xrender.h,v 1.10 2001/12/27 01:16:00 keithp Exp $ * (...) Does it mean that the version of render is 1.4, and xrender is 1.10 ??? maybe not... AlaiN. --- --- Alain D'eurveilher wrote:/* Hi, I'm trying to install gtk+2.2. i already installed pkg-config 0.9.0 freetype 2.1.5 (but % freetype-config --versionreturns 9.4.3 : why ???!) and now i'm trying to install fontconfig 2.2.0 The % ./configure 'step is ok, but the % make returns some errors : Something else: What version of Xserver do you use? If the version number is below, I think, 4.2 then you also need to compile and install render and xrender to be able to compile fontconfig 2.2.0 The latest versions I know of are render-0.8 and xrender-0.8.3 They are available through the fontconfig home page, from the same folder where one of the downloadable copies of fontconfig 2.2.0 is placed. I suspect, all the Xservers shipped with Woody fall into this category. busmanus I didn't use the --prefix option, so the installation path was the default one : /usr/local/ I'm using the xserver-xfree86 4.2.1 about render and xrender.. I don't know.. I cannot find the way to 1°) know if i have the lib installed 2°) know their version. I continue to search how to know it... If i cannot find something ... maybe i will install the new version... thanks. AlaiN. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list Bozz. Si vous n'arrivez pas à joindre votre correspondant au Groupe ESIEE ou pour tout problème concernant des e-mails non distribués, votre serveur de mail ne respecte peut-être pas la RFC822 ou votre DNS n'est pas correctement configuré. Contactez votre responsable informatique et regardez au lien ci-dessous : If you can't send mail to Esiee or for any problem about undelivered e-mail perhaps your mail server's configuration doesn't respect RFC822 or your DNS is misconfigured Please contact your IT manager and look at http://www.esiee.fr/infos/mail.html ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list