This example code does it. You may want to make some changes, but it works.
#include
#include
GtkTextTag *tag1;
static void print_coords(GtkWidget *w, int x, int y) {
gint bx,by;
GtkTextIter iter;
gint trail;
gtk_text_view_window_to_buffer_coords(GTK_TEXT_VIEW(w),GTK_TEXT_WINDOW_WIDGET
- Original Message
From: Paul Drynoff <[EMAIL PROTECTED]>
To: Lance Dillon <[EMAIL PROTECTED]>
Cc: gtk-app-devel-list@gnome.org
Sent: Wednesday, September 6, 2006 2:52:00 PM
Subject: Re: text with links
>I would have to test this. I think the gtk example does some
, anchor);
gtk_widget_show_all(topLevelWindow);
gtk_main();
return EXIT_SUCCESS;
}
On 9/6/06, Lance Dillon <[EMAIL PROTECTED]> wrote:
>
>
> - Original Message
> From: Paul Drynoff <[EMAIL PROTECTED]>
> To: Lance Dillon <[EMAIL PROTECTED]>
- Original Message
From: Paul Drynoff <[EMAIL PROTECTED]>
To: Lance Dillon <[EMAIL PROTECTED]>
Cc: gtk-app-devel-list@gnome.org
Sent: Wednesday, September 6, 2006 12:31:20 PM
Subject: Re: text with links
On 9/6/06, Lance Dillon <[EMAIL PROTECTED]> wrote:
> The eas
On 9/6/06, Lance Dillon <[EMAIL PROTECTED]> wrote:
> The easiest and quickest way I can think of is create a TextView, add some
> TextAnchors, define some LinkButtons, and anchor the LinkButtons to the
> TextAnchors.
>
Thanks, without your help I never catch this feature of GtkTextView,
but there i
- Original Message
From: Paul Drynoff <[EMAIL PROTECTED]>
To: gtk-app-devel-list@gnome.org
Sent: Wednesday, September 6, 2006 11:40:20 AM
Subject: text with links
Hello.
I need component like GtkTextView,
but with abbilities handle click on some words (links),
with interface lik
Hello.
I need component like GtkTextView,
but with abbilities handle click on some words (links),
with interface like this:
component_name_mark_text_as_link(position)
on_click(gchar *link_value, gpointer arg)
is it possible implement with GtkTextView(exists any examples?),
or there is around an