Yeah, I see. So I will do it this way. But now I stumbled on the next
problem for me. For this to implement I need to switch from a GtkEntry
to a GtkText. How can I generate a GtkText widget with exactly one
line? What I want to do, is to build a subclass of GtkText named
GtkRichEntry, with the same basic behaviour as GtkEntry.
I can set the size with set_usize in pixels. So I looked for the size
of the current font. but font.height give me only 9 (9 what, really
pixels?) I saw in some examples the use of -1 as the second argument
so set_usize() what does it mean.
If these are stupid questions, please tell me the location of more
documentation.
Thanks for any info,
__Janko
Fred L. Drake writes:
>
> [EMAIL PROTECTED] writes:
> > I build a brace matcher and want to show the expression of the closed
> > braces. This is working, but after the next key the selected chars are
> > deleted from the GtkText widget. I have tried to disclaim it, but this
> > does not prevent the deletion. How do I deselect something, or should
>
> I would expect brace-matching to not interfere with selection. (Of
> course, I'd also expect emacs. ;)
> Consider this: a user is using shift-arrows to create a selection;
> do you turn off brace matching, destroy the users work by resetting
> the selection, or jump through hoops to get the highlighting to work
> just right with the selection? (I'm not sure just how selection works
> with colorized text yet, but I know what my answer would be. ;-)
>
>
> -Fred
>
> --
> Fred L. Drake, Jr. <[EMAIL PROTECTED]>
> Corporation for National Research Initiatives
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]