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:
| gtk_text_buffer_create_t
tains 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/listin
BUFFERPIXBDATA-00. .. .
and here is the secondary 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
r further
> 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:
> >
>
>
> > g_object_get(your_text_buffer,
> > "text", &your_text,
> > NULL);
> >
> > if(your_text[strlen(your_text) - 1] == '\n' &&
> > YOUR_DATA(your_data)->last_newline_position <
> > &
et_line(&iter);
> if(s_line!=line)
> {
> g_print("Scroll Line\n");
> s_line=line;
> }
> }
>
> Eric
>
>
> -Original Message-
> From: Doug McCasland
> To: cecashon
> Sent: Tue, Sep 25, 2018
ild-scroll, 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
ve never
reported a bug to GTK. What is the basic procedure?
On Tue, Aug 15, 2017 at 2:38 PM, Doug McCasland 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 tag to
> an iter, then whenever
ot;indent2\n",
> -1, "indent2", NULL);
> gtk_text_buffer_get_end_iter(buffer, &iter);
> gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, "indent2\n",
> -1, "indent2", NULL);
> //Check left-margin in the same line.
>
("p %p %s\n", p, string);
> g_free(string);
> }
>
> g_print("List %p\n", tlist);
> if(tlist!=NULL) g_slist_free(tlist);
>
--
Doug McCasland
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
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 paste
ss
> 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 gets
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 wan
13 matches
Mail list logo