Revision 16767,
1.4 KB
checked in by ghudson, 23 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r16766,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* This file is part of the GtkHTML library. |
---|
3 | |
---|
4 | Copyright (C) 2000 Helix Code, Inc. |
---|
5 | Authors: Radek Doulik (rodo@helixcode.com) |
---|
6 | |
---|
7 | This library is free software; you can redistribute it and/or |
---|
8 | modify it under the terms of the GNU Library 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 | Library General Public License for more details. |
---|
16 | |
---|
17 | You should have received a copy of the GNU Library General Public License |
---|
18 | along with this library; see the file COPYING.LIB. If not, write to |
---|
19 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
20 | Boston, MA 02111-1307, USA. |
---|
21 | |
---|
22 | */ |
---|
23 | |
---|
24 | #include <config.h> |
---|
25 | #include "htmlreplace.h" |
---|
26 | |
---|
27 | HTMLReplace * |
---|
28 | html_replace_new (const gchar *text, void (*ask) (HTMLEngine *, gpointer), gpointer ask_data) |
---|
29 | { |
---|
30 | HTMLReplace *nr = g_new (HTMLReplace, 1); |
---|
31 | |
---|
32 | nr->text = g_strdup (text); |
---|
33 | nr->replaced = 0; |
---|
34 | nr->ask = ask; |
---|
35 | nr->ask_data = ask_data; |
---|
36 | |
---|
37 | return nr; |
---|
38 | } |
---|
39 | |
---|
40 | void |
---|
41 | html_replace_destroy (HTMLReplace *replace) |
---|
42 | { |
---|
43 | g_free (replace->text); |
---|
44 | g_free (replace); |
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.