Re: text with links

2006-09-11 Thread Lance Dillon
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

Re: text with links

2006-09-06 Thread Lance Dillon
- 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

Re: text with links

2006-09-06 Thread Paul Drynoff
, 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]>

Re: text with links

2006-09-06 Thread Lance Dillon
- 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

Re: text with links

2006-09-06 Thread Paul Drynoff
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

Re: text with links

2006-09-06 Thread Lance Dillon
- 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

text with links

2006-09-06 Thread Paul Drynoff
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