2
* Copyright (C) 2004 Jorn Baayen <jorn@nl.linux.org>
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; either version 2 of the
7
* License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* General Public License for more details.
14
* You should have received a copy of the GNU General Public
15
* License along with this program; if not, write to the
16
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
* Boston, MA 02111-1307, USA.
22
using System.Runtime.InteropServices;
24
public class MarkupUtils
26
[DllImport ("libmuine")]
27
private static extern void label_set_markup (IntPtr label,
34
public static void LabelSetMarkup (Label label,
41
label_set_markup (label.Handle, start_index, end_index,
45
[DllImport ("libmuine")]
46
private static extern void cell_set_markup (IntPtr label,
53
public static void CellSetMarkup (CellRendererText cell,
60
cell_set_markup (cell.Handle, start_index, end_index,