Re: textview buffers and primary clipboard issue

2019-02-25 Thread Doug McCasland
Well I played with some tag table calls and now things work correctly. Previously I was using: | gtk_text_view_new() which creates a TextView and a buffer, then | buf[i] = gtk_text_view_get_buffer() to get the buffer object. Then for each new tag in each buffer: |

Re: textview buffers and primary clipboard issue

2019-02-21 Thread Doug McCasland
non-selected image data, TextView is not pasting all of what's on the Primary clipboard, apparently. -- Doug McCasland, San Francisco ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app

textview buffers and primary clipboard issue

2019-02-19 Thread Doug McCasland
ry clipboard when using Ctrl-C on the same mouse selection: | clipboard contents | GTKTEXTBUFFERCONTENTS-0001J | | | baz | Any ideas on what I'm doing wrong and how to make middle-click paste work between buffers, when there is a pixbuf in the source buffer? --

Re: is there a signal for typing at bottom of window?

2018-09-27 Thread Doug McCasland
ther > information: > > https://developer.gnome.org/gdk2/stable/gdk2-Events.html#GdkEventMask > https://developer.gnome.org/gdk3/stable/gdk3-Events.html#GdkEventMask > > > Bests, > Joël > > On Wed, Sep 26, 2018 at 8:21 PM Doug McCasland > wrote: > > >

Re: is there a signal for typing at bottom of window?

2018-09-26 Thread Doug McCasland
; g_object_get(your_text_buffer, > > "text", _text, > > NULL); > > > > if(your_text[strlen(your_text) - 1] == '\n' && > > YOUR_DATA(your_data)->last_newline_position < > > &(your_text[strlen(your_text) - 1]) - your_tex

Re: is there a signal for typing at bottom of window?

2018-09-25 Thread Doug McCasland
f(s_line!=line) > { > g_print("Scroll Line\n"); > s_line=line; > } > } > > Eric > > > -Original Message- > From: Doug McCasland > To: cecashon > Sent: Tue, Sep 25, 2018 2:10 pm > Subject

is there a signal for typing at bottom of window?

2018-09-24 Thread Doug McCasland
, but those are for other things.) How can I set a signal for this? thanks! -- Doug McCasland, San Francisco ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: turn on italics in TextView

2017-08-29 Thread Doug McCasland
ver reported a bug to GTK. What is the basic procedure? On Tue, Aug 15, 2017 at 2:38 PM, Doug McCasland <do...@bravoecho.net> wrote: > Indeed, gtk_text_buffer_insert_with_tags_by_name() does what it says. > What I was talking about was (in some future Textview) applying the t

Re: turn on italics in TextView

2017-08-15 Thread Doug McCasland
s_by_name(buffer, , "indent2\n", > -1, "indent2", NULL); > //Check left-margin in the same line. > gtk_text_buffer_get_end_iter(buffer, ); > gtk_text_buffer_insert_with_tags_by_name(buffer, , "left-margin > ", -1, "left-margin", NULL);

Re: turn on italics in TextView

2017-08-15 Thread Doug McCasland
%s\n", p, string); > g_free(string); > } > > g_print("List %p\n", tlist); > if(tlist!=NULL) g_slist_free(tlist); > -- Doug McCasland <do...@bravoecho.net> ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: turn on italics in TextView

2017-08-15 Thread Doug McCasland
Eric, thanks again. I ended up using g_signal_connect() on "key-press-event" (instead of "insert-text"). This makes it easier IMO to handle specific cases, since the callback fn can return TRUE if it did anything or FALSE to get GTK default behavior, unlike void insert-text fn. Plus if you

Re: turn on italics in TextView

2017-06-19 Thread Doug McCasland
the toggle button pointer to the "insert-text" callback. Then you can just > use > > if(gtk_toggle_button_get_active(user_data)) > > For the sequence of events it is my understanding that the text changes > will be made during the event cycle before the window

turn on italics in TextView

2017-06-12 Thread Doug McCasland
Hi, I am trying GTK3 TextView, in C. I know how to apply tags, such as italics, bold, etc., to a region of text. But how do I "turn on" a style (italics, bold, etc) while typing in the buffer? For example, suppose I am typing text and there are no styles set. Then I want to type in italics. I