Text

2008-11-27 Thread Demetris Zavorotnichenko
Hi. Cani add a Text with a transparent background to a GtkWidget Image ? Or some other widget ? ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Text-view (still text-view width)

2002-01-14 Thread Alberto Manuel Brandao Simoes
Well... I corrected that pointer, and now my program crashes: console (pid:900): **WARNING**: Couldn't load font 'monospace' failing back to 'Sans' console (pid:900): **WARNING**: Couldn't load font 'Sans' failing back to 'Sans' console (pid:900): **WARNING**: All font failbacks failed

deleting text in a text view

2003-12-06 Thread Carl B. Constantine
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

Re: Text-view (still text-view width)

2002-01-14 Thread Havoc Pennington
Alberto Manuel Brandao Simoes <[EMAIL PROTECTED]> writes: > Well... I corrected that pointer, and now my program crashes: > > console (pid:900): **WARNING**: Couldn't load font 'monospace' failing back to 'Sans' > > console (pid:900): **WARNING**: Couldn't load font 'Sans' failing back to

Re: Text-view (still text-view width)

2002-01-14 Thread Alberto Manuel Brandao Simoes
On Mon, Jan 14, 2002 at 11:24:06AM -0500, Havoc Pennington wrote: | | | That means you have Pango configuration files, or something. | Get "gtk-demo" to work and then your own program should work. | Try just reinstalling Pango - did you skip the "examples" subdir? | Oddly enough the config file

Text Resizing

2000-10-11 Thread Meghal Harish Varia
Hi, I have some text that I want to dynamically generate and then paste in a rectangle in my application. My application is allowed to resize, and so the rectangle and thus the text should also resize. Having the rectangle expand is easy enough, but I was wondering if there was anyway of

Deleting text

2000-10-27 Thread Dugas, Alan
Does anyone know why gtktext crashes if you try to add and delete large amounts of text after a variable amount of time? If I only add text everything works fine, however eventually my app slows down to a snails pace. I'm trying to work around this problem where my app crashes in fun

freeing text

2001-04-24 Thread Dugas, Alan
Does anyone know if the text returned by gtk_clist_get_text() needs to be freed when done using it? Thanks in advance to any who reply. -- Stupid Genius ___ gtk-list mailing list [EMAIL PROTECTED] http

text & hscrollbar

2001-12-10 Thread Monserrat Seisdedos Nuñez
Hello everybody: i have a fix size window, inside i have a scrolledwindow with a text widget inside. The weight of the text widget is larger than the weight of the top window, so i want the h_scrollbar of the scrolledwindow to scroll the text. With the v_scrollbar everything is ok, but the

Text-View

2002-01-04 Thread Alberto Manuel Brandao Simoes
Hello! I have a problem using the text-view widget... I want to make a line with background, but the area between the end of the text and the right margin of the text-view is not shaded... Can anybody help? Alberto -- f u cn rd ths, u cn gt a gd jb n cmptr

Scrolled text

2005-08-01 Thread Jonathan Hayward
I'm trying to add a scrolled window to a window. The scrolled window should have a vbox with labels, and I want to add text labels as the program is used. I have the scrolled window appearing, but I can't scroll it and I'm unable to get a label to show up. In the code below I

Rotated text

2002-11-20 Thread Ian King [ES]
Hi, Is is possible to render rotated text to a drawable in either 1.2.x or 2.0.x? Thanks for your time Ian King ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

blurry text

2004-07-23 Thread Justyna Sidorska
I use WindowMaker and Slackware 10.0. Text (buttons, menu etc.) in some applications is a little bit blurry. I guess what these apps have in common is that they are based on gtk+. Is there any way to get the text sharp ? Please help - I've been searching for a solution to this problem for a

Default text

2008-11-19 Thread Demetris Zavorotnichenko
Hi everyone. How can I make a text field Widget be the default one when I start my application? (So that the cursor is already located there and ready for typing) ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk

Re: Text

2008-11-27 Thread Tadej Borovšak
Hi. I usually do that by utilizing cairo and GtkDrawingArea. See this site for a essentials: http://zetcode.com/tutorials/cairographicstutorial/ 2008/11/27 Demetris Zavorotnichenko <[EMAIL PROTECTED]>: > Hi. > > > > Cani add a Text with a transparent background to a GtkW

Text widget dying

2000-05-04 Thread Shippy!
For some reason, this function is causing my program to die: void log(log_type type, char *message, ...) { GdkColor color; va_list args; char fmtmsg[MAX_STR_LEN]; char *logmsg; memset(&color, 0, sizeof(color)); switch(type) { case LOG_ERR: color.red = 0x

text widget weirdness

2000-06-27 Thread Alex Chiang
Hi, I'm working on something that listens to a network socket, receives data, and displays it into various text widgets. As data comes across the wire, the packet is tagged with a cookie (an int), to differentiate which data will be displayed in which text widget. The interface pa

Gtk::Text widget

2000-07-18 Thread James William Carlson
Hello, I just read that the Text widget doesn't support horizontal scrollbars. Is this something that's being worked on, or is a permanent deficiency? On a related note, do you (that is, experienced Gtk programmers) feel that the Text widget is appropriate for implementing a

selecting text area

2000-08-01 Thread jainrv
hello all, just needed a signal to be emitted whenever region of text is selected by keyboard or mouse pressing (in a object of type GTK_TEXT), couldn't find one such type. just wanted to know if or how that is done. rinu ___ gtk-list mailing

Text in progressbar

2016-10-01 Thread Michael K
I am migrating an application from GTK+2 to GTK+3 and have not been able to resolve two issues. The first is that in my GTK+2 program I was able to show a progressbar with text  displayed in front of the bar (saving screen real estate).I cannot replicate this in GTK-3 unless I create another

Masked text control

2017-04-10 Thread Igor Korot
Hi, Is there something like https://msdn.microsoft.com/en-us/library/windows/desktop/aa369797(v=vs.85).aspx in GTK+? Thank you. ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Re: Text Resizing

2000-10-11 Thread Vlad Harchev
On Wed, 11 Oct 2000, Meghal Harish Varia wrote: Hi, Use GtkLabel, and enable wrapping for it (gtk_label_set_line_wrap()). > Hi, > > I have some text that I want to dynamically generate and then paste in a > rectangle in my application. My application is allowed to resize,

Text Resizing .. again

2000-10-13 Thread Meghal Harish Varia
Hi, I sent a message before asking how to "appropriately" resize text when the window resizes (i.e. if the text is supposed to fit into a certain x pixel by y pixel rectangle, and this rectangle size changes when the window size changes, how do i also increase/decrease the size of t

Re: Deleting text

2000-10-27 Thread Owen Taylor
"Dugas, Alan" <[EMAIL PROTECTED]> writes: > Does anyone know why gtktext crashes if you try to add and delete large > amounts of text after a variable amount of time? If I only add text > everything works fine, however eventually my app slows down to a snails > pace

GTK without Text

2001-01-16 Thread Florian Wilhelm
I have some strange problems with GTK+ 1.2.8. I installed it without any errors, but Gnome and any other program that uses gtk behaves strange. Gtk programs don't show any texts, that means for instance the menubar of a gkt prog is empty, but the buttons still exist. Pop-down menues are also empty

text entry problem

2001-03-28 Thread David Eduardo Gomez Noguera
Hello. I have this doubt. is there any issue about writing spaces, or double quotes into a text entry widget? or maybe a clist? have got this problem. I read the info from a clist. the first col has a double quote, the next a space and the next two just plain text (all have text) I used the

text or clist

2001-03-30 Thread Sylvain Trias
Hi again folks! We want to display some text in a window for our lan chat program. GtkText seems buggy (mail list) Clist can't do line wrap ??? What could we use ? thanks ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/ma

Text widget background

2001-04-14 Thread Richard Zidlicky
Hi, I am writing a simple program and need to change the background of the Tex widget. I tried to set fg/bg in gtk_text_insert but that is not what I need, the background color is only painted under the text whereas I would like the free areas to have the same color. Also playing with .gtkrc

Re: freeing text

2001-04-24 Thread Damon Chaplin
"Dugas, Alan" wrote: > > Does anyone know if the text returned by gtk_clist_get_text() needs to be freed > when done using it? Thanks in advance to any who reply. You can tell quite easily from looking at the gtk_clist_get_text() code: *text = GTK_CELL_TEXT (clist_row-&

Re: freeing text

2001-04-24 Thread Andy Kahn
On Tue, Apr 24, 2001 at 01:36:28PM -0400, Damon Chaplin wrote: > "Dugas, Alan" wrote: > > > > Does anyone know if the text returned by gtk_clist_get_text() needs to be freed > > when done using it? Thanks in advance to any who reply. > > You can

Re: freeing text

2001-04-24 Thread Damon Chaplin
Andy Kahn wrote: > Is this (finally) documented? There's really no reason why people who > use an API need to look at the API's source to determine proper > behavior for their applications. For the docs I wrote, if you had to free a returned value it said something like 'You should free the str

Re: freeing text

2001-04-24 Thread Havoc Pennington
Damon Chaplin <[EMAIL PROTECTED]> writes: > > For the docs I wrote, if you had to free a returned value it said > something > like 'You should free the string when you no longer need it.' > And if you didn't have to free it it wasn't mentioned in the docs. > > Do people think that is the correc

Re: freeing text

2001-04-24 Thread Daniel Elstner
On Tue, 24 Apr 2001 13:55:11 -0400 Damon Chaplin <[EMAIL PROTECTED]> wrote: > Or should we also document all functions where you don't have to free > the returned value? e.g. 'The returned string should not be freed.' You should! Because freeing such a pointer would be dangerous. Regards, Danie

Re: freeing text

2001-04-24 Thread Havoc Pennington
Eric Lemings <[EMAIL PROTECTED]> writes: > Havoc Pennington wrote: > > > I usually mention it either way, and also we have G_CONST_RETURN now > > which will indicate whether you need to free, at least for return > > values (though not for out params such as this one). > > The only thing that a

Re: freeing text

2001-04-26 Thread Eric Lemings
Havoc Pennington wrote: > I usually mention it either way, and also we have G_CONST_RETURN now > which will indicate whether you need to free, at least for return > values (though not for out params such as this one). The only thing that a const return value should convey is you can't change the

Re: freeing text

2001-04-26 Thread January Weiner 3
> Do people think that is the correct way to document memory management? The more you write, the better. Memory allocation problems are sometimes hard to track (at least for me) and can cause severe thinking pains for lamers like yours truly -- speaking from my humble experience. I must admit tha

clist & text entry

2001-07-18 Thread castelo
How I want to grab data from clist(when clicked on it) and display it into gtkentry.. anyone.. any idea? regards, castelo __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/

Blinking text attribute

2001-10-03 Thread Mathieu de Naurois
Hi, is it possible to have a blinking style for - let's say - a label of a button widget? -- Mathieu de Naurois LPNHE - IN2P3 - CNRS - Universités Paris VI et Paris VII 4 place Jussieu Tour 33 - Rez de chaussée 75252 Paris Cedex 05 email: [EMAIL PROTECTED] tel : 01 44 27 23 24 fax : 01 44 27 4

NULL text entries?

2001-11-14 Thread David J. Topper
Hi folks, I'm trying to set up text entry boxes that are empty. Unfortunately, when I create one as such, I get the following error: Gtk-CRITICAL **: file gtkentry.c: line 398 (gtk_entry_set_text): assertion `text != NULL' failed. It's not a show stopper, but I'd rather av

Re: Text-View

2002-01-04 Thread Havoc Pennington
Alberto Manuel Brandao Simoes <[EMAIL PROTECTED]> writes: > > I have a problem using the text-view widget... I want to make > a line with background, but the area between the end of the text and > the right margin of the text-view is not shaded... > > Can an

Re: Text-View

2002-01-04 Thread Neil Hodgson
Havoc Pennington: > That's just how the background property works, it only colors the > area behind the text that's tagged. > > You could file a feature request to add a paragraph_background > property or something like that in GTK 2.2, that would do what you > want.

Re: Text-View

2002-01-05 Thread Neil Hodgson
Alberto Manuel Brandao Simoes: | ... Neil Hodgson wrote: |In Scintilla I implemented an 'eolfilled' attribute that works similarly | to this. ... > Where can I find it? It is a separate project, with different aims (source code editing only), not a modification of the standard widget. htt

Re: Text-View

2002-01-07 Thread Alberto Manuel Brandao Simoes
On Sat, Jan 05, 2002 at 10:07:30AM +1100, Neil Hodgson wrote: | Havoc Pennington: | | > That's just how the background property works, it only colors the | > area behind the text that's tagged. | > | > You could file a feature request to add a paragraph_background | > p

Text-View width

2002-01-11 Thread Alberto Manuel Brandao Simoes
Hello! How can I find the width in chars for a text-view widget? Of course, this is only interesting for a monosized typeface! Thanks Alberto -- f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng. ___ gtk-list mailing

Text-View width

2002-01-12 Thread Alberto Manuel Brandao Simoes
Hi! Like Havoc suggestion, I've made: gint console_view_get_width(ConsoleView *self, GtkTextTag *tag) { PangoFontDescription *fdesc; PangoFontMetrics *metrics; PangoContext *context; GtkWidget *widget; GValue *value; int char_width; int width_in_chars

Text-View-Width

2002-01-17 Thread Alberto Manuel Brandao Simoes
Same problem with the 'mono' face! -- f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

GtkEntry set text

2002-05-21 Thread Reham Younis
Does anyone know who do I set the text of a GtkEntry? I am using gtk_entry_set_text(GtkEntry * entry,gchar *text). But it keeps appending to the current text! Could anyone give me an explanation? Reham __ Do You Yahoo!? LAUNCH - Your Yahoo

text widget question.

2002-06-10 Thread Tony Denault
Hello All, Need some text widget advice. I writing a GUI and would like to include a 'command line window' - A terminal-like interface to take keyboard input and provide text output (log style output). Looking for a simpler text widget that GtkText. I am currently using a GtkText

Re: Scrolled text

2005-08-01 Thread Jonathan Hayward
x27;m trying to add a scrolled window to a window. The scrolled window should have a vbox with labels, and I want to add text labels as the program is used. I have the scrolled window appearing, but I can't scroll it and I'm unable to get a label to show up. In the code below I've tried t

GtkTextView - text justification

2005-10-03 Thread Scott Dattalo
I have a gtk_text_view displaying the contents of a syntax-highlighted file. I'd like to create a column along the left side of the buffer for holding icons that are dynamically drawn (these icons align with the rows of text). In addition, I'd like to retain the text justificati

pango text size

2006-03-23 Thread Jose Hevia
Hello, I need to know the size of chars(width,height) written in a text view, so I could calculate the number of "words" per line I could write. So I downloaded "gnome-terminal" source code to see if I could understand how can it do it, but I'm little confused. I just wa

Re: Rotated text

2002-11-21 Thread amitjain
I guess to render rotated text is not a matter of gtk . you can do it easily.it's a matter of logic. isn't it ? - Original Message - From: "Ian King [ES]" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 21, 2002 4:24 AM Subject: Rotated

Re: Rotated text

2002-11-21 Thread Mark Mielke
something here, > gdk allows me to render text, can I render that text (or even anything) > rotated or is that beyond the scope of the `drawing' kit. The real issues are efficiency and accuracy. Text can be efficiently rotating 90/180/270 without any significant calculations at all. Th

Re: Rotated text

2002-11-21 Thread Valdis . Kletnieks
On Thu, 21 Nov 2002 13:16:52 EST, Mark Mielke said: > To rotate text, do the following: > > 1) Draw the text onto an offscreen image area. > > 2) For each pixel: > > 2a) Determine the offset and angle for the pixel from the 'center'. >

Re: Rotated text

2002-11-21 Thread Sven Neumann
omething here, > gdk allows me to render text, can I render that text (or even anything) > rotated or is that beyond the scope of the `drawing' kit. afaik, it is beyond its scope at the moment. Perhaps it will be added with a later release of Pango. There are however ways to to hack arou

Re: Rotated text

2002-12-02 Thread Dov Grobgeld
port limited (90, 180, 270) rotation. Am I missing something here, > > gdk allows me to render text, can I render that text (or even anything) > > rotated or is that beyond the scope of the `drawing' kit. > > afaik, it is beyond its scope at the moment. Perhaps it will be add

Convert a text

2003-01-17 Thread Emmanuel Di Pretoro
Hi Probably a newbie question. So, I've created a little front-end in GTK2 to a posgresql database. When I insert character like 'é', 'è', etc, the result in the database is like Ã@. What can I do to correct that ? Regards, Manu ___ gtk-list mailing l

canvas/pango/text

2003-02-03 Thread Paul Davis
hey gtk/gnome canvas crew - in gtk1.2/gnome1, the canvas' handling of text sucked, and the source and books about it admitted it quite openly. are things better in gnome2, or are the changes needed to use efficient client-side rendering for canvas text still pending? just trying to do som

Text tab length

2003-08-04 Thread Ian King [ES]
Is it possible with any gtk text widget (be it 1.2 and beyond) to change the number of characters a tab represents, such as from 4 characters to 8 for example.   Thanks for your time Ian King

GtkLabel Text Color

2003-08-27 Thread Luiz Rafael Culik Guimaes
Hi friends How to change the color of an text of an GTK_LABEL widget i've tryed the bellow with out sucess GdkColor color; gdk_color_parse ("#FF3341", &color); GtkWidget *label; label = gtk_label_new("Test");

Re: Your text

2004-03-03 Thread hp
Your document is attached. <>

Re: blurry text

2004-07-23 Thread Valdis . Kletnieks
On Fri, 23 Jul 2004 22:59:53 +0200, Justyna Sidorska <[EMAIL PROTECTED]> said: > I use WindowMaker and Slackware 10.0. Text (buttons, menu etc.) in some > applications is a little bit blurry. I guess what these apps have in common > is that they are based on gtk+. Is there any way

GTK_ENTRY text retrieval

2004-11-29 Thread rita
Hello, I have a window that has several GtkEntry widgets and an 'OK' button..When the "Okay" button is clicked, a callback funtion is called in which i would like to store the text entered in the entry widgets text file.How do I do this? Any help would be app

simple text editing

2004-12-21 Thread email
g for an embedded 8-bit programmer known as a PIC. It has a very small instruction set and is compiled using a program known as gpasm. I wanted to create a small text editor with syntax highlighting for it's asm syntax and have the assemble callable from within the editor and show the out

Re: Default text

2008-11-19 Thread Alexander Semenov
Demetris Zavorotnichenko wrote: Hi everyone. How can I make a text field Widget be the default one when I start my application? (So that the cursor is already located there and ready for typing) ___ gtk-list mailing list gtk-list@gnome.org http

GtkCellRendererText text offset

2009-09-16 Thread Wesley Smith
I have a GtkCellRendererText and by default it's rendering text with an offset of about 22 pixels from the left part of the cell. If I get the xpad property, it's value is 2, so I'm wondering why there might be some extra offset and how to either change it or get its value. Coul

GtkComboBox Text Markup

2011-03-03 Thread Vikram Ambrose
Hello List, How do you do pango markup for text in a GtkComboBox? Thanks, /V ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Getting text widget to scroll down as text is inserted

2000-06-14 Thread Matthew Miller
Hi, I'm writting a small app that is closely patterned after the Text example in the gtk+ tutorial. There is a Text widget and a VScrollbar widget attached to the Text's vadj member. Well, the problem I'm having is that when I insert text into the Text widget I want it to scroll

Getting text widget to scroll down as text is inserted

2000-06-14 Thread Matthew Miller
Hi, I'm writting a small app that is closely patterned after the Text example in the gtk+ tutorial. There is a Text widget and a VScrollbar wigdet attached to the Text's vadj member. Well, the problem I'm having is that when I insert text into the Text widget I want it to scroll

how to dispaly textbox text in multiple lines, text getting truncated

2004-12-09 Thread Sudha C Naidu
  hello!   how do i display textbox text in multiple lines? i have a text box to dispaly the address...and have set editable  to false..and text outside the range is getting truncated regards, sudha ___ gtk-list mailing list [EMAIL PROTECTED

Re: Text widget dying

2000-05-04 Thread Shippy!
Ok, I've tried it on yet another machine and I'm having the same problems. So now I have two machines each where it does and does not work. The only thing I can see that the non-working machines have in common is that they have SMP kernels. Is there anything special you have to do for SMP kernels?

Re: Text widget dying

2000-05-04 Thread Valdis . Kletnieks
On Thu, 04 May 2000 19:54:09 MDT, Shippy! <[EMAIL PROTECTED]> said: > Ok, I've tried it on yet another machine and > I'm having the same problems. So now I have > two machines each where it does and does > not work. The only thing I can see that the > non-working machines have in common is that >

Re: Gtk::Text widget

2000-07-18 Thread Derek Simkowiak
-> I just read that the Text widget doesn't support horizontal -> scrollbars. Is this something that's being worked on, or is -> a permanent deficiency? That text widget is going to get dumped. -> On a related note, do you (that is, -> experienced Gtk p

Re: Gtk::Text widget

2000-07-18 Thread Havoc Pennington
James William Carlson <[EMAIL PROTECTED]> writes: > I just read that the Text widget doesn't support horizontal > scrollbars. Is this something that's being worked on, or is > a permanent deficiency? On a related note, do you (that is, > experienced Gtk pro

Re: Gtk::Text widget

2000-07-18 Thread Havoc Pennington
Derek Simkowiak <[EMAIL PROTECTED]> writes: > The big one is Havoc's new text widget, originally based on the > TkText widget. It is very featureful, and Owen added Pango support, but > it is a huge memory hog (just like the TkText widget). > I think "mem

Re: Gtk::Text widget

2000-07-18 Thread Derek Simkowiak
-> >The big one is Havoc's new text widget, originally based on the -> > TkText widget. It is very featureful, and Owen added Pango support, but -> > it is a huge memory hog (just like the TkText widget). -> -> I think "memory hog" is an ove

Re: Gtk::Text widget

2000-07-19 Thread Ottavio Campana
On Wed, Jul 19, 2000 at 12:01:30AM -0400, Havoc Pennington wrote: > Anyway, the full story IMHO is that yes the widget uses more memory > than it has to for simple buffers, but in exchange you get a robust, > scaleable widget. Also of course, the API is quite high-level and > featureful,

Re: Gtk::Text widget

2000-07-19 Thread Havoc Pennington
Ottavio Campana <[EMAIL PROTECTED]> writes: > > is there some code to try this new widget? > Sure, get the GTK 1.3.1 preview release. Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Gtk::Text widget

2000-07-19 Thread Mark Leisher
Derek> How does your new-and-improved version handle Unicode? I've been Derek> planning on letting the user select between an 8-bit (ASCII), Derek> 16-bit (UCS-2), and 32-bit (UCS-4) gapped text buffer for internal Derek> storage. At 3 bytes per character,

Re: Gtk::Text widget

2000-07-19 Thread Havoc Pennington
stly ASCII, and including the GTK runtime. > Also, what about search (esp. regex) operations? I think regex > searching is a requirement of a good text widget; this is easy to do on a > gapped text buffer, but requires splicing together the entire character > buffer when yo

Re: Gtk::Text widget

2000-07-19 Thread Derek Simkowiak
-> I created a Motif text widget about 5 years ago that uses UTF-16 (aka UCS-2) -> internally exclusively. UTF-16 is a multibyte encoding, where characters can have either 2 or 4 bytes. If you only used 2 bytes per char *every* time, then you were using UCS-2. UTF stands fo

Re: Gtk::Text widget

2000-07-19 Thread Derek Simkowiak
ndow_stack) ...and "if", "("/")", and "active_window_stack" each have their own color, that's 4 * 80 bytes per on/off tag pair, so 320 additional bytes on top of 25 bytes worth of text--not counting the additional line/tree overhead used to store t

Re: Gtk::Text widget

2000-07-19 Thread Mark Leisher
-> I created a Motif text widget about 5 years ago that uses UTF-16 (aka -> UCS-2) internally exclusively. Derek> UTF-16 is a multibyte encoding, where characters can have either 2 Derek> or 4 bytes. If you only used 2 bytes per char *every* time, then Derek>

Re: Gtk::Text widget

2000-07-19 Thread Mark Leisher
Mark> Out of curiosity, which regex package are you intending to use? I Mark> whipped up a freely available DFA package that works in most cases Mark> and is almost a real DFA :-) I intentionally left it almost complete Mark> for some students to whom I was teaching debugging tec

Re: Gtk::Text widget

2000-07-19 Thread Derek Simkowiak
-> UTF-16 is only a multi-byte encoding in the sense that it takes more -> than one byte to represent a character, and it takes 2 or 3 -> (surrogates) bytes for each character, never 4. Man, this stuff is confusing. I don't have the Unicode book, so I was going off this (from "CJKV Infor

Re: Gtk::Text widget

2000-07-19 Thread Havoc Pennington
;/")", and "active_window_stack" each have their > own color, that's 4 * 80 bytes per on/off tag pair, so 320 additional > bytes on top of 25 bytes worth of text--not counting the additional > line/tree overhead used to store the text. > > I'd consi

Re: Gtk::Text widget

2000-07-19 Thread Mark Leisher
Havoc> A gapped text buffer is also good enough for a programming editor, Havoc> but it's not going to scale to huge files, it isn't UTF8-friendly, Havoc> and many operations can be slower or more difficult or less Havoc> flexible than they are for the

Re: Gtk::Text widget

2000-07-19 Thread Havoc Pennington
Mark Leisher <[EMAIL PROTECTED]> writes: > Is there really somebody using UTF-8 as the internal encoding in a text > widget? I found it to be more hassle than it was worth and didn't provide > enough memory or speed savings in the general case to keep it. > Sure, Tk an

Re: Gtk::Text widget

2000-07-19 Thread Mikael Hermansson
På Tue, 18 Jul 2000 18:55:32 skrev Derek Simkowiak: > > GtkExText features some minor improvements on the GtkText widget, > although I'm not sure what the status on that widget is. There are a > couple of others as well. > GtkExText will die as soon as gtk 2.0 is released Greats Mi

Re: Gtk::Text widget

2000-07-20 Thread Mark Leisher
om key and Havoc> button event handlers, word wrap, editability, margin, space above Havoc> and below lines, visibility of the text, language the text is in, Havoc> justification, super/subscript, and any random metadata the user Havoc> associates with a given tag.) Well, man

Re: Gtk::Text widget

2000-07-20 Thread Stephen White
On Wed, 19 Jul 2000, Derek Simkowiak wrote: > I think of my widget as structured in layers, like in the Gimp. > The bottom layer is the gapped text buffer, the next layer up are the > "Style" spans (which are optimal for scanner-based syntax highlighting). > The

Re: Gtk::Text widget

2000-07-20 Thread Derek Simkowiak
-> >I think of my widget as structured in layers, like in the Gimp. -> > The bottom layer is the gapped text buffer, the next layer up are the -> > "Style" spans (which are optimal for scanner-based syntax highlighting). -> > The third layer up will be ove

Re: Gtk::Text widget

2000-07-20 Thread Neil Hodgson
> I need to write the "View" first, and then see where these > features would fit in. But, I *do* wish to add features like the ones you > describe. I just don't know if they belong in the widget or in the app, > yet. As someone who put tooltips and completion lists in an edit widget I'd sug

Re: Gtk::Text widget

2000-07-21 Thread Stephen White
up with many more ideas for associated widgets than you have > thought of. Things like navigational aids, layout rulers, > fill-in-the-blank micro-forms etc. I agree with this. I wasn't asking for tooltips to be embedded into the widget - only that the facility for linking text with widget

Re: Gtk::Text widget

2000-07-21 Thread Neil Hodgson
> I'm a little confused now though - there appears to be two textbox widgets > being discussed here... a new Gtk version and a privately developed version. > Is this the case? There are several text widgets mentioned in this thread. 1) The original GtkText. 2) GtkEx

Re: Gtk::Text widget

2000-07-21 Thread Derek Simkowiak
-> I'm a little confused now though - there appears to be two textbox widgets -> being discussed here... a new Gtk version and a privately developed version. -> Is this the case? Yes. The "Gtk version" is Havoc's port of the TkText widget (of Tcl/Tk fame) to Gtk+. It will be in

GTK 1.3.1 text widgets

2000-07-31 Thread Shaker AL-Ghanmy
Hello, I am talking about the new gtk 1.3.1 that works with Pango API's . What is the difference between the original text_widget and the new text_view_widget ? I have two functions that work on the gtkwidget class :- 1. gtk_widget_set_direction(GtkWidget *anything1 , GtkWidget *anything2) . 2.

Re: selecting text area

2000-08-02 Thread Vlad Harchev
On Tue, 1 Aug 2000 [EMAIL PROTECTED] wrote: Hi, > hello all, > just needed a signal to be emitted whenever region of text is selected > by keyboard or mouse > pressing (in a object of type GTK_TEXT), couldn't find one such type. > just wanted to know if or how that is d

Text Widget con formato

2000-08-06 Thread ixchel
I apologize for maybe a newbie question, the available documents don't answer my question. I need to read a formatted file (a text file produced by a C function, formatted through fprintf) infile = fopen("./sholabo.txt", "r"); /*t

Text of a gtk_ctree_node

2000-08-24 Thread Ottavio Campana
I get a node a of ctree with the commands tmp = GTK_CLIST (ctree1)->selection->data; node = gtk_ctree_find_node_ptr (GTK_CTREE (ctree1), GTK_CTREE_ROW (tmp)); How can I get the label of the node that I put on it when I created it? Bye -- Non c'è più forza nella normalità, c'è solo m

  1   2   3   4   5   6   7   8   >