~ubuntu-branches/ubuntu/maverick/gnome-terminal/maverick-proposed

« back to all changes in this revision

Viewing changes to src/eel/eel-ellipsizing-label.h

Tags: upstream-2.12.0
ImportĀ upstreamĀ versionĀ 2.12.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
 
 
3
 
/* eel-ellipsizing-label.h: Subclass of GtkLabel that ellipsizes the text.
4
 
 
5
 
   Copyright (C) 2001 Eazel, Inc.
6
 
 
7
 
   The Gnome Library is free software; you can redistribute it and/or
8
 
   modify it under the terms of the GNU Library General Public License as
9
 
   published by the Free Software Foundation; either version 2 of the
10
 
   License, or (at your option) any later version.
11
 
 
12
 
   The Gnome 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
18
 
   License along with the Gnome Library; see the file COPYING.LIB.  If not,
19
 
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
 
   Boston, MA 02111-1307, USA.
21
 
 
22
 
   Author: John Sullivan <sullivan@eazel.com>,
23
 
 */
24
 
 
25
 
#ifndef EEL_ELLIPSIZING_LABEL_H
26
 
#define EEL_ELLIPSIZING_LABEL_H
27
 
 
28
 
#include <gtk/gtklabel.h>
29
 
 
30
 
#define EEL_TYPE_ELLIPSIZING_LABEL            (eel_ellipsizing_label_get_type ())
31
 
#define EEL_ELLIPSIZING_LABEL(obj)            (GTK_CHECK_CAST ((obj), EEL_TYPE_ELLIPSIZING_LABEL, EelEllipsizingLabel))
32
 
#define EEL_ELLIPSIZING_LABEL_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), EEL_TYPE_ELLIPSIZING_LABEL, EelEllipsizingLabelClass))
33
 
#define EEL_IS_ELLIPSIZING_LABEL(obj)         (GTK_CHECK_TYPE ((obj), EEL_TYPE_ELLIPSIZING_LABEL))
34
 
#define EEL_IS_ELLIPSIZING_LABEL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), EEL_TYPE_ELLIPSIZING_LABEL))
35
 
 
36
 
typedef struct EelEllipsizingLabel            EelEllipsizingLabel;
37
 
typedef struct EelEllipsizingLabelClass       EelEllipsizingLabelClass;
38
 
typedef struct EelEllipsizingLabelDetails     EelEllipsizingLabelDetails;
39
 
 
40
 
struct EelEllipsizingLabel {
41
 
        GtkLabel parent;
42
 
        EelEllipsizingLabelDetails *details;
43
 
};
44
 
 
45
 
struct EelEllipsizingLabelClass {
46
 
        GtkLabelClass parent_class;
47
 
};
48
 
 
49
 
GtkType    eel_ellipsizing_label_get_type (void);
50
 
GtkWidget *eel_ellipsizing_label_new      (const char          *string);
51
 
void       eel_ellipsizing_label_set_text (EelEllipsizingLabel *label,
52
 
                                           const char          *string);
53
 
 
54
 
#endif /* EEL_ELLIPSIZING_LABEL_H */