Re: Extra space after textview (cross-posted from gtk-app-devel-list)

2018-10-25 Thread Matthew A. Postiff via gtk-list
win.add(scrolledwindow) #scrolledwindow.show() vbox = Gtk.VBox() scrolledwindow.add(vbox) #vbox.show() def AddTextView(i):     global vbox;     textview = Gtk.TextView

Re: Extra space after textview (cross-posted from gtk-app-devel-list)

2018-10-25 Thread Phil Clayton
(10) scrolledwindow.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.ALWAYS) win.add(scrolledwindow) #scrolledwindow.show() vbox = Gtk.VBox() scrolledwindow.add(vbox) #vbox.show() def AddTextView(i): global vbox; textview = Gtk.TextView() textbuffer = textview.get_buffer() textbuffer.set_text(

Extra space after textview (cross-posted from gtk-app-devel-list)

2018-10-25 Thread Matthew A. Postiff via gtk-list
Hi, I have a scrolledwindow+vbox with multiple textviews one after the other strung together. Built against gtk2, things appear fine. I'm trying to upgrade to gtk3, and have a problem. In GTK3, extra blank space appears after each textview when it is initially cr

Re: Changing background of TextView makes selection invisible

2015-06-14 Thread Bálint Réczey
kground color. > > There is 'gtk_override_background_color' (also deprecated since 3.16) > but that exhibits the same problem as the CSS-based solution: while the > color of the background indeed changes, it also sets the color of the > selection highlight to the same color.

Re: Changing background of TextView makes selection invisible

2015-06-14 Thread Kasper Peeters
so deprecated since 3.16) but that exhibits the same problem as the CSS-based solution: while the color of the background indeed changes, it also sets the color of the selection highlight to the same color. As a result, when you select text in this TextView, you cannot see how much you have select

Re: Changing background of TextView makes selection invisible

2015-06-14 Thread Yann Leboulanger
On 06/14/2015 11:33 PM, Bálint Réczey wrote: > Hi, > > 2015-06-13 18:34 GMT+02:00 Stefan Salewski : >> On Sat, 2015-06-13 at 11:03 +0100, Kasper Peeters wrote: >>> I am trying to make the background colour of all TextViews white, >> Have you followed this page: >> >> https://developer.gnome.org/gtk

Re: Changing background of TextView makes selection invisible

2015-06-14 Thread Bálint Réczey
Hi, 2015-06-13 18:34 GMT+02:00 Stefan Salewski : > On Sat, 2015-06-13 at 11:03 +0100, Kasper Peeters wrote: >> I am trying to make the background colour of all TextViews white, > > Have you followed this page: > > https://developer.gnome.org/gtk3/stable/TextWidget.html Before you start following t

Re: Changing background of TextView makes selection invisible

2015-06-13 Thread Stefan Salewski
On Sat, 2015-06-13 at 11:03 +0100, Kasper Peeters wrote: > I am trying to make the background colour of all TextViews white, Have you followed this page: https://developer.gnome.org/gtk3/stable/TextWidget.html ___ gtk-list mailing list gtk-list@gnome.

Changing background of TextView makes selection invisible

2015-06-13 Thread Kasper Peeters
I am trying to make the background colour of all TextViews white, using something along the lines of (this is gtkmm, but the problem is the same in pure gtk): Glib::ustring data = "GtkTextView { background: white; }"; auto css = Gtk::CssProvider::create(); css->load_from_data(data); auto s

Re: [GTK3] get background color of a textview

2013-08-12 Thread Andrés G. Aragoneses
On 12/08/13 18:48, Yann Leboulanger wrote: On 08/12/2013 04:39 PM, "Andrés G. Aragoneses" wrote: On 11/08/13 14:56, Yann Leboulanger wrote: On 08/10/2013 11:42 AM, "Andrés G. Aragoneses" wrote: On 31/07/13 22:09, Yann Leboulanger wrote: ... Any idea how to get it? Thanks in advance, Here

Re: [GTK3] get background color of a textview

2013-08-12 Thread Yann Leboulanger
On 08/12/2013 04:39 PM, "Andrés G. Aragoneses" wrote: On 11/08/13 14:56, Yann Leboulanger wrote: On 08/10/2013 11:42 AM, "Andrés G. Aragoneses" wrote: On 31/07/13 22:09, Yann Leboulanger wrote: ... Any idea how to get it? Thanks in advance, Here is a very simple test script that shows the

Re: [GTK3] get background color of a textview

2013-08-12 Thread Andrés G. Aragoneses
On 11/08/13 14:56, Yann Leboulanger wrote: On 08/10/2013 11:42 AM, "Andrés G. Aragoneses" wrote: On 31/07/13 22:09, Yann Leboulanger wrote: ... Any idea how to get it? Thanks in advance, Here is a very simple test script that shows the problem. For me it always prints: Oh, I think I just

Re: [GTK3] get background color of a textview

2013-08-11 Thread Yann Leboulanger
On 08/10/2013 11:42 AM, "Andrés G. Aragoneses" wrote: On 31/07/13 22:09, Yann Leboulanger wrote: ... Any idea how to get it? Thanks in advance, Here is a very simple test script that shows the problem. For me it always prints: Oh, I think I just realised what your problem might be: you ar

Re: [GTK3] get background color of a textview

2013-08-10 Thread Andrés G. Aragoneses
On 31/07/13 22:09, Yann Leboulanger wrote: ... Any idea how to get it? Thanks in advance, Here is a very simple test script that shows the problem. For me it always prints: Oh, I think I just realised what your problem might be: you are using Gtk.StateType.NORMAL instead of Gtk.StateFlags

Re: [GTK3] get background color of a textview

2013-08-09 Thread Andrés G. Aragoneses
On 31/07/13 22:09, Yann Leboulanger wrote: On 07/31/2013 02:23 PM, Yann Leboulanger wrote: Hi, I'm trying to get the background color of a textview. I use python / pygobject, but I don't think it's related to the language. I tried doing that: context = textview.get_style_

Re: [GTK3] get background color of a textview

2013-07-31 Thread Yann Leboulanger
On 07/31/2013 02:23 PM, Yann Leboulanger wrote: Hi, I'm trying to get the background color of a textview. I use python / pygobject, but I don't think it's related to the language. I tried doing that: context = textview.get_style_context() state = Gtk.StateFla

[GTK3] get background color of a textview

2013-07-31 Thread Yann Leboulanger
Hi, I'm trying to get the background color of a textview. I use python / pygobject, but I don't think it's related to the language. I tried doing that: context = textview.get_style_context() state = Gtk.StateFlags.NORMAL color = context.get_background_color(state) I tri

Re: Textview

2012-05-27 Thread David Buchan
uchan Sent: Saturday, May 26, 2012 3:23 AM Subject: Re: Textview Hi David, On Fri, 25 May 2012 18:24:59 -0700 (PDT) you wrote: > Hi guys, > > This might be a really dumb one... > It's certainly a very common "failure to grasp a basic concept" issue.

Re: Textview

2012-05-26 Thread Robert Pearce
Hi David, On Fri, 25 May 2012 18:24:59 -0700 (PDT) you wrote: > Hi guys, > > This might be a really dumb one... > It's certainly a very common "failure to grasp a basic concept" issue. > --- code tidbits --- > > Loop: > >     memset (text, 0, 100); >     sprintf (text, "some

Textview

2012-05-25 Thread David Buchan
Hi guys, This might be a really dumb one... I would like to print a line of text periodically to a textview, which is inside a scrolled window. The trouble is, my program waits until all the data has been printed to the buffer before showing it, instead of printing line by line as the data

Space used by textview in scrolled window

2010-12-07 Thread José Romildo Malaquias
ments", contains a vbox with two childs (packed at the end): another notebook and an hbox for some buttons. This notebook contains a table with some rows and two columns. The first column is a label and the second column is an entry, except for the last row, which has a textview in a scrolled window

Re: How to bring up tooltip text for certain words in a GTK textview?

2010-05-20 Thread Ken Resander
;    gtk_window_set_title (GTK_WINDOW (window), text );   counter++;    return TRUE ;    } Ken --- On Thu, 20/5/10, Tadej Borovšak wrote: From: Tadej Borovšak Subject: Re: How to bring up tooltip text for certain words in a GTK textview? To: "richard boaz" Cc: "Ken Resander&

Re: How to bring up tooltip text for certain words in a GTK textview?

2010-05-20 Thread Ken Resander
, the codeblocks IDE behaves like this when I let the cursor hover in the source text. Finally, is there a way to change background colour of a tooltip area? Regards Ken --- On Thu, 20/5/10, Tadej Borovšak wrote: From: Tadej Borovšak Subject: Re: How to bring up tooltip text for certain word

Re: How to bring up tooltip text for certain words in a GTK textview?

2010-05-19 Thread Tadej Borovšak
ders on the root > window, a little "guessing" as to the WM's size must be taken into account If you connect to GtkWidget::query-tooltip signal, coordinates are already provided, so I think most of this stuff is not needed now. >> A textview shows help text with many '

Re: How to bring up tooltip text for certain words in a GTK textview?

2010-05-19 Thread richard boaz
oblem, let me know, happy to forward. cheers, richard On Wed, May 19, 2010 at 7:50 PM, Ken Resander wrote: > A textview shows help text with many 'technical' words that users may not > know or remember. I would like a tooltip text with a short explanation to > pop up w

How to bring up tooltip text for certain words in a GTK textview?

2010-05-19 Thread Ken Resander
A textview shows help text with many 'technical' words that users may not know or remember. I would like a tooltip text with a short explanation to pop up when a user hovers the cursor over a technical phrase. There is a lookup table from technical phrases to explanations. I am thin

Use "space" for PageDown in TextView

2010-02-17 Thread Dov Grobgeld
Hi, I'm trying to write a simple text reading application with the TextView widget. As I am only doing reading I would like to rebind the space bar to do page down. But I can't get it to work. Here's what I did (in Python): # The following code is taken from # http://lib

Re: Undo stack for GTK+ (was: Re: undo in textview)

2009-12-31 Thread Paul Davis
On Wed, Dec 30, 2009 at 6:32 PM, Tristan Van Berkom wrote: > Particularly point 5, nested transactions; I banged my head around that one > for a while and finally did not implement this; my interpretation of > nested transactions > was something like this: >  o User initiates action >  o action g

Re: Undo stack for GTK+ (was: Re: undo in textview)

2009-12-30 Thread Tristan Van Berkom
On Wed, Dec 30, 2009 at 12:48 AM, Paul Davis wrote: > On Mon, Dec 28, 2009 at 12:02 PM, Holger Berndt wrote: >> Cross-posting to move the discussion to gtk-devel-list. Anybody interested >> in the topic, please follow up there. >> >> On Do, 24.09.2009 19:23, A. Walton wrote: >> >>>It's definitely

Re: Undo stack for GTK+ (was: Re: undo in textview)

2009-12-29 Thread Paul Davis
On Mon, Dec 28, 2009 at 12:02 PM, Holger Berndt wrote: > Cross-posting to move the discussion to gtk-devel-list. Anybody interested > in the topic, please follow up there. > > On Do, 24.09.2009 19:23, A. Walton wrote: > >>It's definitely something many developers would love to see in Gtk+, >>but o

Undo stack for GTK+ (was: Re: undo in textview)

2009-12-28 Thread Holger Berndt
Cross-posting to move the discussion to gtk-devel-list. Anybody interested in the topic, please follow up there. On Do, 24.09.2009 19:23, A. Walton wrote: >It's definitely something many developers would love to see in Gtk+, >but only a few have stepped up to the bat with patches and actually >di

Re: undo in textview

2009-09-24 Thread A. Walton
2009/9/24 Javier Jardón : > 2009/9/24 Holger Berndt : >> Anyways, given that undo is a very important user interaction component, >> and it's nasty to have library dependancies for one or two classes, I >> think it would be nice to have a "standard" class and a corresponding >> viewer in GTK+. It m

Re: undo in textview

2009-09-24 Thread Javier Jardón
2009/9/24 Holger Berndt : > Anyways, given that undo is a very important user interaction component, > and it's nasty to have library dependancies for one or two classes, I > think it would be nice to have a "standard" class and a corresponding > viewer in GTK+. It might motivate people to include

Re: undo in textview

2009-09-24 Thread Holger Berndt
>there is also a more general undo framework, http://www.nongnu.org/gtkundo/ That website seems dead (no code available etc). However, I recently updated my own little undo class and corresponding viewer widget (code at http://github.com/hb/undo_stack , I blogged about it at http://berndth.blogspo

Re: undo in textview

2009-09-24 Thread Yann Leboulanger
Mike Massonnet wrote: > [Replying again but on-list this time] > > 2009/9/23 Emmanuel Rodriguez : >> >> On Wed, Sep 23, 2009 at 10:39 PM, Yann Leboulanger >> wrote: >>> Hi, >>> >>> It seems GTK have no feature to undo in a gtkTextview / gtTextBuffer. Am >>> I wrong? >> It doesn't but gtksourcevie

Re: undo in textview

2009-09-24 Thread Mike Massonnet
[Replying again but on-list this time] 2009/9/23 Emmanuel Rodriguez : > > > On Wed, Sep 23, 2009 at 10:39 PM, Yann Leboulanger > wrote: >> >> Hi, >> >> It seems GTK have no feature to undo in a gtkTextview / gtTextBuffer. Am >> I wrong? > > It doesn't but gtksourceview does. You can download it f

Re: undo in textview

2009-09-24 Thread Holger Berndt
On Do, 24.09.2009 09:43, Yann Leboulanger wrote: >I don't need a so complexe widget, would be nice to have something in >GTK itself. Independant of the textview, it would be nice if glib contained a GObject based general-purpose undo stack that integrates well with GObject-based a

Re: undo in textview

2009-09-24 Thread Yann Leboulanger
Emmanuel Rodriguez wrote: > > > On Wed, Sep 23, 2009 at 10:39 PM, Yann Leboulanger > wrote: > > Hi, > > It seems GTK have no feature to undo in a gtkTextview / gtTextBuffer. Am > I wrong? > > It doesn't but gtksourceview does. You can download it from h

Re: undo in textview

2009-09-23 Thread Emmanuel Rodriguez
On Wed, Sep 23, 2009 at 10:39 PM, Yann Leboulanger wrote: > Hi, > > It seems GTK have no feature to undo in a gtkTextview / gtTextBuffer. Am > I wrong? > It doesn't but gtksourceview does. You can download it from here: http://projects.gnome.org/gtksourceview/ -- Emmanuel Rodriguez _

undo in textview

2009-09-23 Thread Yann Leboulanger
Hi, It seems GTK have no feature to undo in a gtkTextview / gtTextBuffer. Am I wrong? Are there any plan about that? Thanks for the information -- Yann ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: How to change font of GTK textview?

2009-09-01 Thread Tadej Borovšak
Hi. Have you tried to use gtk_widget_modify_font on your text view? I think this should do the trick. Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com ___ gtk-list mailing list gtk-list@gnome.org http://mail.gn

How to change font of GTK textview?

2009-09-01 Thread Ken Resander
textview:    GtkWidget * e = gtk_text_view_new ( ) ;    GtkTextBuffer * buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW (e));    changefont ( e , fixedfontfd ) ; // fixed font previously defined in my code    gtk_text_buffer_set_text (buf, inittext, -1); The font does not change. Is the above wrong

insert text in textview without moving selection

2009-08-28 Thread Yann Leboulanger
Hi, Here is a scenario: I have a textview with text in it. I select all the text with mouse. Then, in my code, I insert text at the end of the text view. What happens is that selection moves and includes the newly inserted char. I understand that because after text is inserted, the iter of the

Gtk textview issue with scrollbar (gtk2.14.7+directfb1.3)

2009-05-25 Thread Wang, Pengzhuo
Hi all, I'm running gtk-demo (gtk2.14.7+DirectFB 1.3), and found textview backgound color turn into black color,instead of orginial white color when scrolling bar. After that I can see the text content of textview only by clicking the area of textview. Did anybody meet such issue b

Gtk textview issue with scrollbar

2009-05-25 Thread Wang, Pengzhuo
Hi all, I'm running gtk-demo (gtk2.14.7+DirectFB 1.3), and found sometimes textview backgound color turn into black color,instead of orginial white color when scrolling bar. So I can see the text content of textview except for clicking the area of textview. Can anybody help me out? Than

Catching keyboard meessages/input to a GTK(sharp) textview widget

2008-07-15 Thread True_Friend
Hi I am trying to create a custom widget based on gtk textview (the gtk# bindings for C#). The purpose is to enable writing my local language Urdu in textview instead of English. I am unable to find how can I hack the keyboard input before it appears on screen (so I change the key values like a

Problem in setting background image to textview

2008-02-06 Thread Dharmosoth Seetharam
Hi all, I have an issue with setting background image to the textview widget. I am using C interface. rc_style = gtk_rc_style_new (); rc_style->bg_pixmap_name[GTK_STATE_NORMAL] = filename; textview = gtk_text_view_new(); buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW(textv

'watermark' background for textview

2008-01-17 Thread mick
I would like to set a 'watermark' as a background in a textview. Is this possible, if so can anyone point me to a reference on how to do it. /]/]ik ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Automatic scrolling of textview widget?

2006-09-19 Thread Tristan Van Berkom
Preben Randhol wrote: > Hi > > I have a textview widget in which I have put text and entry widgets. I > use a scrolledwindow widget as the textview widget becomes long. I > fill in the first entry widget and then press TAB to jump to the next. > The problem is that if the next e

Automatic scrolling of textview widget?

2006-09-19 Thread Preben Randhol
Hi I have a textview widget in which I have put text and entry widgets. I use a scrolledwindow widget as the textview widget becomes long. I fill in the first entry widget and then press TAB to jump to the next. The problem is that if the next entry widget is not visible then I would like that

Re: textview

2006-08-31 Thread Anna
On Thu, Aug 31, 2006 at 02:57:26AM -0700, cnu_sree wrote: > > how we can restrict tha num of chars iin each line of a tree view > is there any special function > please tell me you mean restrict the length of the line that's rendered in each line in the treeview? You probably want to read about

textview

2006-08-31 Thread cnu_sree
how we can restrict tha num of chars iin each line of a tree view is there any special function please tell me sree. -- View this message in context: http://www.nabble.com/textview-tf2195712.html#a6076423 Sent from the Gtk+ - General forum at Nabble.com

textview: how to scroll like page up/ page down?

2006-05-01 Thread kyanh
hi all, i want to implement a function that can scroll the text view so that the result is similar to the case when user presses Page Up/ Page Down. I found that there's no any (single) function in Gtk2.4+ could help me do that. is there any alternative? thank you very much for replies. re

Re: text in margin of textview

2006-04-18 Thread Scott Dattalo
On Tue, 2006-04-18 at 09:34 +0200, Kasper Peeters wrote: > Hi, > > I am looking for a way to write text in the margin of a TextView > widget, something along the lines of > > a line of text > another line of text > margin n

text in margin of textview

2006-04-18 Thread Kasper Peeters
Hi, I am looking for a way to write text in the margin of a TextView widget, something along the lines of a line of text another line of text margin note third line of text more text even more text another note text text text

Re: textview force refresh

2006-04-09 Thread David Necas (Yeti)
On Sun, Apr 09, 2006 at 07:05:38PM +0200, Nagy Zoltán Márk wrote: > howto force refresh textview widget? my problem is: > { > write text to textwiew (text); > //textview NOT shown my text > big_cpu_use_commands(); > } > > but the textview refreshed afte

textview force refresh

2006-04-09 Thread Nagy Zoltán Márk
Hi! howto force refresh textview widget? my problem is: { write text to textwiew (text); //textview NOT shown my text big_cpu_use_commands(); } but the textview refreshed after the program finish the big_cpu_use_commands() funtion. king regards, mark

Re: TextView problem on Win32

2006-03-13 Thread Andrew E. Makeev
own local branch of it and build it yourself. that I was giong to do - make our own patch > Have you tried my test case on Win32 platform using Gtk+-2.8 and > got textview area drawn properly? Sure. That's why I said it works better with 2.8. > Is there Gtk+-2.8 Win3

Re: TextView problem on Win32

2006-03-13 Thread Tor Lillqvist
for some reason desperately need to run GTK+ 2.4 and need this problem fixed, you will have to maintain an own local branch of it and build it yourself. > Have you tried my test case on Win32 platform using Gtk+-2.8 and > got textview area drawn properly? Sure. That's why I said it w

Re: TextView problem on Win32

2006-03-13 Thread Jernej Simončič
On Mon, 13 Mar 2006 10:27:30 +0300, Andrew E. Makeev wrote: > 3rd. Is there Gtk+-2.8 Win32 binary packages built for MinGW I could > download and check the issue? -- < Jernej Simončič >< http://deepthought.ena.si/ > < Contact address: >< jernej simoncic

Re: TextView problem on Win32

2006-03-12 Thread Sven Neumann
Hi, "Andrew E. Makeev" <[EMAIL PROTECTED]> writes: > Is there Gtk+-2.8 Win32 binary packages built for MinGW I could > download and check the issue? >From the usual place (http://gimp.org/win32/) ?! Sven ___ gtk-list mailing list gtk-list@gnome.org h

Re: TextView problem on Win32

2006-03-12 Thread Andrew E. Makeev
ktextview.c/h files versions Gtk+-2.8 and Gtk+-2.4, but nothing changed. 1st. Could you, please, point on other changes (files) I should use to patch Gtk+-2.4 to fix that problem. 2nd. Have you tried my test case on Win32 platform using Gtk+-2.8 and got textview area drawn properly? 3rd. Is t

TextView problem on Win32

2006-03-10 Thread Tor Lillqvist
Andrew E. Makeev writes: > Gtk+-2.4.14 That's rather old. Your program behaves better when running against a current GTK+ 2.8. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

TextView problem on Win32

2006-03-10 Thread Andrew E. Makeev
escription. TextView packed in ScrolledWindow. Button - click to add anchored child in textview (GtkEntry). If you scroll textview you see that entry widgets drawn not fully. Regards, -andrew #include GtkTextBuffer* buff; GtkWidget* text; static void add_widget_cb() { GtkTex

TextView

2006-02-02 Thread oleksandr . shepetko
Hi! I have gtk+-2.8.9 for Win32. TextView widget works slow when scrolling. This is a bug or not?___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Signal for a button-2 paste event in a TextView

2005-11-09 Thread Douglas Vechinski
I have a GtkTextView with an associated GtkTextBuffer. I want to act on the condition when text is pasted into the textview or textbuffer when the middle mouse button is pressed. That is, suppose I have some text selected in another application (like a gnome-terminal, evolution, etc.) or when

GtkTextTag behaviour of TextView Widget

2005-09-16 Thread Hans Oesterholt
L.S., Using gtk+ 2.6.8 on WIN32, I noticed following using the textview widget and applied tags. Microsoft Word does following: When I move the cursor to a point just after applied markup A, when I type a character it will take the same markup A. When I use backspace, it takes over the

textview copy/paste and GtkTextTags

2005-09-15 Thread Hans Oesterholt
Hi, I'm writing a gtk binding for mzscheme, and noticed that when using drag/drop and copying text, the text markup that has been applied with a GtkTextTag is copied along with the copied text. When using copy/paste, it isn't. I'm running on WIN32. Is this specific to WIN32. Can it be done dif

textview copy/paste and GtkTextTags

2005-09-14 Thread Hans Oesterholt
Hi, I'm writing a gtk binding for mzscheme, and noticed that when using drag/drop and copying text, the text markup that has been applied with a GtkTextTag is copied along with the copied text. When using copy/paste, it isn't. I'm running on WIN32. Is this specific to WIN32. Can it be done dif

Re: Help Newbie cause updates of Notebook with textview

2005-04-08 Thread stian
> but got the complaint (DUH) "GLIB-WARNING: g_main_context_prepare(): main > loop already active in another thread" > which makes sense, since this call of UpdateDisplay() is on the thread of > my external application. Please read the thread section of the gtk api spec / documentation and the usa

Help Newbie cause updates of Notebook with textview

2005-04-08 Thread Ansell, Larry
Hi All, For my first use of GTK ( I have GTK 2.0 on RedHat 9) I'm building a GUI that uses a notebook widget, where each page of the notebook has a textview. I build up my window, do gtk_widget_show() and run gtk_main() and everything looks fine. I'm trying to cause an update of t

Two problems with TextView

2005-04-07 Thread Zoltan Boszormenyi
1. How can I set the maximum length of a TextBuffer/TextView? 2. Under WinMe and GTK 2.6.4 runtime, my TextView does not display the text until I click into it. In Linux (FC3, gtk-2.4.14-3.fc3), it does not have this problem. I simply called gtk_text_buffer_set_text(), the application is

Getting the Coords of TextView cursor

2005-02-14 Thread Pramod Patangay
Hi, I am using a GtkTextView which is added to a GtkScrolledWindow. Now whenever the GtkTextView gets focus, I want the scrolled window to scroll in such a manner so that the cursor is visible. How can I achieve this? One way I thought of is that, I get the location of iterator where the cursor

Re: [Glade-users] how i click and open a file into textview?

2004-10-26 Thread Damon Chaplin
On Mon, 2004-10-25 at 06:40, Aaron Yang wrote: > hi, > > after i insert a textview widget inside a window, > does anyone know what i should do to display the > contents of any file inside the widget? You can look at the example text editor code included with Glade to get an ide

Re: how i click and open a file into textview?

2004-10-25 Thread Olaf Frączyk
On Mon, 2004-10-25 at 07:40, Aaron Yang wrote: > hi, > > after i insert a textview widget inside a window, > does anyone know what i should do to display the > contents of any file inside the widget? Open file, and copy its content into TextBuffer associated with this TextView.

how i click and open a file into textview?

2004-10-24 Thread Aaron Yang
hi, after i insert a textview widget inside a window, does anyone know what i should do to display the contents of any file inside the widget? thanks in advance. regards, aaron ___ Do you Yahoo!? Declare Yourself - Register online to vote today

displaying contents in textview

2004-10-07 Thread Niow Kim Chwee
hi, I've created a textview window using glade 1.1.3. When I click a file from filedialog, how do I display the contents of the file inside that textview window? thanks for your help aaron ___ gtk-list mailing list [EMAIL PROTECTED]

Drag and Drop problem with TextView

2004-05-10 Thread Dave Richards
Hello, I'm trying to implement DnD on a TextView in pygtk. It works, but every time something is dropped, the callback gets called twice, so the text gets added to the TextView twice. Can anyone point me in the right direction? Thanks, Dave __

Re: textview vs textbuffer

2004-03-19 Thread Havoc Pennington
On Fri, 2004-03-19 at 17:53, Terje Eggestad wrote: > I'm curious about one thing, tags are applied per textbuffer (which > make sense to me) but changes to the defaults are done per textview, > which to don't make sense, the same buffer is connected to two views > can have

textview vs textbuffer

2004-03-19 Thread Terje Eggestad
I'm curious about one thing, tags are applied per textbuffer (which make sense to me) but changes to the defaults are done per textview, which to don't make sense, the same buffer is connected to two views can have different appearances... Is this deliberate? -- Terje Eggest

Re: Scroll to the end of a TextView

2004-03-04 Thread Matthias Clasen
This is covered in the GTK+ documentation: http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html#id2517993 -- +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz ___

Re: Scroll to the end of a TextView

2004-03-04 Thread Terje Eggestad
It wasn't intuitive, but scroll to mark doe the trick, the following func append to a textview (a log actually) and scrolls: void scacpg_append_runlog(char * msg, ...) { GtkTextView * eview; GtkTextBuffer * ebuf; GtkTextIter start, end; va_list ap; char * buffer = NULL; int

Scroll to the end of a TextView

2004-03-04 Thread Felipe Weckx
Hi everyone, Here's the deal: the program receives a string and show it on a TextView , that's OK, but I have to scroll the view to end of the text, I tried using gtk_text_buffer_get_end_iter and gtk_text_view_scroll_to_iter, but it only scrolls to beginning of the text I've ju

Ctrl+Enter in a TextView

2004-02-26 Thread Felipe Weckx
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 How do I handle a Ctrl+Enter in a TextView, I tried using an Accelerator Group, but I don't which signal to attach. - -- []'s Felipe Weckx -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Using GnuPG with Thunderb

RE: [gtkmm] "Autoscrolling" TextView

2003-11-18 Thread Murray . Cumming
Morten Brix Pedersen wrote: > Den 18/11-2003, kl. 2:52, skrev Christer Palm: > > > Hi! > > > > Does anyone have a smart way to make a scrolled TextView > scroll along > > as text is inserted - if, and only if the TextView is showing the > > bottom part

Re: [gtkmm] "Autoscrolling" TextView

2003-11-17 Thread Morten Brix Pedersen
Den 18/11-2003, kl. 2:52, skrev Christer Palm: Hi! Does anyone have a smart way to make a scrolled TextView scroll along as text is inserted - if, and only if the TextView is showing the bottom part of the buffer? I can't find an elegant way to determine whether the TextView is &qu

"Autoscrolling" TextView

2003-11-17 Thread Christer Palm
Hi! Does anyone have a smart way to make a scrolled TextView scroll along as text is inserted - if, and only if the TextView is showing the bottom part of the buffer? I can't find an elegant way to determine whether the TextView is "at the bottom" of the buffer, and to handl

Re: [TextView issues]

2003-09-14 Thread Murray Cumming
"Andrew E. Makeev" <[EMAIL PROTECTED]> wrote: > First of all, > sorry, I've not submitted it on bugzilla. I found those issues in our > Application and had no time to check if it is GTKMM or GTK issue. > > The problems for widget packed into TextView are:

TextView issues

2003-09-12 Thread Andrew E. Makeev
First of all, sorry, I've not submitted it on bugzilla. I found those issues in our Application and had no time to check if it is GTKMM or GTK issue. The problems for widget packed into TextView are: 1. Button label is not shown when 've been chaned with same size text. 2. Incorrect fr

How to remove child_anchor from TextView?

2003-07-10 Thread Andrew E. Makeev
Hi all, How could I remove child_anchor from TextView buffer? I've tried that way: Gtk::TextIter iter = textBuffer->get_iter_at_child_anchor (myAnchor); textBuffer->erase (iter, iter); Any suggestion? Hopefully, I will get answer from GTKMM list... thanks in advan

Re: Decoration of TextView?

2003-02-28 Thread Lars Clausen
On Fri, 28 Feb 2003, Diego Zuccato wrote: > Lars Clausen wrote: >> I'm switching an old GtkText widget to GtkTextView, but notice that the >> GtkTextView has no pretty bevelled border around it. I fail to see a >> decoration widget that adds this, and gtk_text_view_set_window_size() >> only create

Re: Decoration of TextView?

2003-02-28 Thread Diego Zuccato
Lars Clausen wrote: > I'm switching an old GtkText widget to GtkTextView, but notice that the > GtkTextView has no pretty bevelled border around it. I fail to see a > decoration widget that adds this, and gtk_text_view_set_window_size() only > creates the gray flat border. Did I miss something?

Re: Decoration of TextView?

2003-02-28 Thread Soeren Sandmann
Lars Clausen <[EMAIL PROTECTED]> writes: > I'm switching an old GtkText widget to GtkTextView, but notice that the > GtkTextView has no pretty bevelled border around it. I fail to see a > decoration widget that adds this, and gtk_text_view_set_window_size() only > creates the gray flat border. D

Decoration of TextView?

2003-02-28 Thread Lars Clausen
I'm switching an old GtkText widget to GtkTextView, but notice that the GtkTextView has no pretty bevelled border around it. I fail to see a decoration widget that adds this, and gtk_text_view_set_window_size() only creates the gray flat border. Did I miss something? How do I give it a nice bor

TextView scrolling problem

2003-01-30 Thread Bernhard Rumpler
Hi, I use a GtkTextView to display some text, so I write the text into the GtkTextBuffer used for the View. When the whole text does not fit into the View, the view automatically scrolls. So when I show the widget, it is displayed with the text scrolled to the end, but I would like to have it dis

Textview/scrollbar problem when maximising window

2003-01-01 Thread Mike McEwan
case below (this is with gtk+-2.2). Running the program, when the window appears, manually scroll the right-hand vertical scroll bar to the bottom so that the last line of text is visible (the 100th line). Now maximise the window. The last line of text is now some way up within the textview. This m

Textview/scrollbar problem when maximising window

2003-01-01 Thread Mike McEwan
(the 100th line). Now maximise the window. The last line of text is now some way up within the textview. This may be working as designed, however it's not what I'd expect. More importantly, the vertical scrollbar thumb appears to have overshot the trough - a single left mouse-click rectifie

Re: How to catch a control-key press in a textview widget ?

2002-12-02 Thread Paul Davis
>I would like to "catch" when a user press a control- (where is >any key of the keyboard) >while is typing in a "textview" widget... the press of the control key is just the same as the press of any other key. so you could just keep track of the state yourself. h

How to catch a control-key press in a textview widget ?

2002-12-02 Thread lorenzo . zampese
I would like to "catch" when a user press a control- (where is any key of the keyboard) while is typing in a "textview" widget... Any idea ? Thank you :) ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Gtk::TextView

2002-11-09 Thread Loban Amaan Rahman
gtk-list or > gtk-app-devel-list, rather than gtk-devel-list. That's right! My bad. I did manage to figure it out after digging through the API reference for an hour or two, but thanks! The main issue was that TextView was missing from the Gtk2.0 tutorial. Plus, I was using GtkMM, which, for som

  1   2   >