Added SILC Thread Queue API
[crypto.git] / apps / silcer / src / gtkurl.h
1 /* GtkUrl - A addon for GtkText that enables colored and clickable URLs
2  * Copyright (C) 2001 Benedikt Roth <Benedikt.Roth@bratislav.de>  
3  *   Based on code from 
4  *   gtkspell - a spell-checking addon for GtkText
5  *   Copyright (c) 2000 Evan Martin.
6  * 
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  * 
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
20  */
21
22 #ifndef __GTKSPELL_h__
23 #define __GTKSPELL_h__
24
25 BEGIN_GNOME_DECLS
26
27 #define GTKURL_VERSION "0.1"
28
29 /* Attach GtkURL to a GtkText Widget.
30  * This enables URL-checking as you type and the popup menu.
31  *
32  * Arguments:
33  *  - "text" is the widget to which GtkURL should attach.
34  *
35  * Example:
36  *  GtkWidget *text;
37  *  text = gtk_text_new(NULL, NULL); 
38  *  gtk_text_set_editable(GTK_TEXT(text), TRUE);
39  *  gtkurl_attach(GTK_TEXT(text));
40  */  
41 void gtkurl_attach(GtkText *text);
42
43
44 /* Detach GtkUrl from a GtkText widget.
45  * 
46  * Arguments:
47  *  - "text" is the widget from which GtkUrl should detach.
48  */ 
49 void gtkurl_detach(GtkText *text);
50
51
52 /* Highlight all urls
53  * Note that the popup menu will not work unless you gtkurl_attach().
54  *
55  * Arguments:
56  *  - "text" is the widget to check.
57  */
58 void gtkurl_check_all(GtkText *text);
59
60 /* Remove all of the highlighting from the widget.
61  *
62  * Arguments:
63  *  - "text" is the widget to check.
64  */
65 void gtkurl_uncheck_all(GtkText *gtktext);
66
67 END_GNOME_DECLS
68
69 #endif /* __GTKURL_H__ */