2
* Copyright (C) 2004 Jorn Baayen <jorn@nl.linux.org>
2
* Copyright (C) 2004, 2005 Jorn Baayen <jbaayen@gnome.org>
4
4
* This program is free software; you can redistribute it and/or
5
5
* modify it under the terms of the GNU General Public License as
21
21
using System.Collections;
22
22
using System.Runtime.InteropServices;
24
// FIXME: Ditch this whole thing once we use Gtk+ 2.6
26
public class EllipsizingLabel : Label
28
[DllImport ("libmuine")]
29
private static extern IntPtr rb_ellipsizing_label_new (string text);
31
public EllipsizingLabel (string text) : base (text)
33
Raw = rb_ellipsizing_label_new (text);
41
[DllImport ("libmuine")]
42
private static extern void rb_ellipsizing_label_set_text (IntPtr label,
45
public new string Text {
47
rb_ellipsizing_label_set_text (Raw, value);
51
return ((Label) this).Text;
28
public class EllipsizingLabel : Gtk.Label
31
[DllImport ("libmuine")]
32
private static extern IntPtr rb_ellipsizing_label_new (string text);
35
/// Create a new <see cref="EllipsizingLabel" />.
37
public EllipsizingLabel () : base ("")
39
Raw = rb_ellipsizing_label_new ("");
49
// Properties :: Text (set; get;) (Gtk.Label)
50
[DllImport ("libmuine")]
51
private static extern void rb_ellipsizing_label_set_text (IntPtr label, string text);
54
/// The text within the <see cref="EllipsizingLabel" /> widget.
56
/// <param name="value">
60
/// A <see cref="String" />.
62
public new string Text {
63
set { rb_ellipsizing_label_set_text (Raw, value); }
64
get { return base.Text; }
67
// Properties :: Markup (set; get;) (Gtk.Label)
68
[DllImport ("libmuine")]
69
private static extern void rb_ellipsizing_label_set_markup (IntPtr label, string markup);
72
/// A markup string to be parsed with Pango and shown in the
73
/// <see cref="EllipsizingLabel" />.
75
/// <param name="value">
76
/// A markup string (see Pango markup format).
78
public new string Markup {
79
set { rb_ellipsizing_label_set_markup (Raw, value); }