~ubuntu-branches/debian/squeeze/muine/squeeze

« back to all changes in this revision

Viewing changes to src/EllipsizingLabel.cs

  • Committer: Bazaar Package Importer
  • Author(s): Dave Beckett
  • Date: 2007-02-13 00:07:32 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070213000732-te83ms9n1ou7ek12
Tags: 0.8.7-1
* New upstream release
  - Require Gtk# 2.6 or newer
  - Build-depend on mono-gmcs, gtk# 2.6
  - Build-depend on libmono-cairo2.0-cil
* muine.install
   - Drop debian/tmp/usr/lib/mono/gac/*
   - Drop debian/tmp/usr/lib/mono/muine/*
   - Add debian/tmp/usr/lib/muine/*dll*
* Build-depend on mono-gmcs, gtk# 2.6
* Urgency high to get rid of gstreamer 0.8 at
  the request of the security team (Closes: #410442)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2004 Jorn Baayen <jorn@nl.linux.org>
3
 
 *
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.
8
 
 *
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.
13
 
 *
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.
18
 
 */
19
 
 
20
 
using System;
21
 
using System.Collections;
22
 
using System.Runtime.InteropServices;
23
 
 
24
 
using Gtk;
25
 
 
26
 
public class EllipsizingLabel : Label
27
 
{
28
 
        [DllImport ("libmuine")]
29
 
        private static extern IntPtr rb_ellipsizing_label_new (string text);
30
 
        
31
 
        public EllipsizingLabel (string text) : base (text)
32
 
        {
33
 
                Raw = rb_ellipsizing_label_new (text);
34
 
        }
35
 
 
36
 
        ~EllipsizingLabel ()
37
 
        {
38
 
                Dispose ();
39
 
        }
40
 
 
41
 
        [DllImport ("libmuine")]
42
 
        private static extern void rb_ellipsizing_label_set_text (IntPtr label,
43
 
                                                                  string text);
44
 
 
45
 
        public new string Text {
46
 
                set {
47
 
                        rb_ellipsizing_label_set_text (Raw, value);
48
 
                }
49
 
                
50
 
                get {
51
 
                        return ((Label) this).Text;
52
 
                }
53
 
        }
54
 
}