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

2010-05-20 Thread Ken Resander
in a GTK textview? To: richard boaz ivor.b...@gmail.com Cc: Ken Resander kresan...@yahoo.com, gtk-list@gnome.org Date: Thursday, 20 May, 2010, 2:23 AM Hi. General flow is correct, but GTK+ does offer some functionality that may come handy in your case. (I'm commenting in a rather strange succession

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

2010-05-20 Thread Ken Resander
--- On Thu, 20/5/10, Tadej Borovšak tadeb...@gmail.com wrote: From: Tadej Borovšak tadeb...@gmail.com Subject: Re: How to bring up tooltip text for certain words in a GTK textview? To: richard boaz ivor.b...@gmail.com Cc: Ken Resander kresan...@yahoo.com, gtk-list@gnome.org Date: Thursday, 20 May, 2010

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 thinking about

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

2010-05-19 Thread richard boaz
i have had to do this and solved it just like you have proposed. if you do go with this method, some heads-ups: the extra issues one must handle when doing this are: - unless gtk is now providing direct access to tooltip style pop-ups, you must create it yourself - meaning that you must

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

2010-05-19 Thread Tadej Borovšak
Hi. General flow is correct, but GTK+ does offer some functionality that may come handy in your case. (I'm commenting in a rather strange succession because Richard top-posted his reply). unless gtk is now providing direct access to tooltip style pop-ups, you must create it yourself GTK+

How to change font of GTK textview?

2009-09-01 Thread Ken Resander
Here is my attempt: void changefont ( GtkWidget * widget , PangoFontDescription * tofd )    {    PangoContext * context = gtk_widget_get_pango_context ( widget );    PangoLayout * layout = pango_layout_new ( context );    pango_layout_set_font_description ( layout, tofd );    } Then at start of

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

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? Thank you

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 before?

Re: Drawing on gtk textview

2008-10-20 Thread Miroslav Rajcic
:43 PM Subject: Drawing on gtk textview I am trying to draw on a gtk textview's gdk window. I have set the textview as app paintable before initialization and done the drawing in a callback for the expose event of the textview as suggested herehttp://mail.gnome.org/archives/gtk-app-devel-list

Re: Gtk::TextView

2002-11-09 Thread Loban Amaan Rahman
On Fri, 2002-11-08 at 18:28, Havoc Pennington wrote: On Fri, Nov 08, 2002 at 04:58:52PM -0800, Loban Amaan Rahman wrote: The documentation for GtkTextView has me all muddled. How do I do the following tasks: Note that questions about using gtk should go to gtk-list or gtk-app-devel-list,

Gtk::TextView

2002-11-08 Thread Loban Amaan Rahman
The documentation for GtkTextView has be all muddled. How do I do the following tasks: (1) Append text to the end of the text buffer. This could be in 1 step or of not possible, the following two steps: (a) Move cursor to end of buffer (b) Insert text (2) Scroll the text view so