1
/* eel-ellipsizing-label.h: Subclass of GtkLabel that ellipsizes the text.
3
Copyright (C) 2001 Eazel, Inc.
5
The Gnome Library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public License as
7
published by the Free Software Foundation; either version 2 of the
8
License, or (at your option) any later version.
10
The Gnome Library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
15
You should have received a copy of the GNU Library General Public
16
License along with the Gnome Library; see the file COPYING.LIB. If not,
17
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
Boston, MA 02111-1307, USA.
20
Author: John Sullivan <sullivan@eazel.com>,
23
#ifndef EPHY_ELLIPSIZING_LABEL_H
24
#define EPHY_ELLIPSIZING_LABEL_H
26
#include <gtk/gtklabel.h>
28
#define EPHY_TYPE_ELLIPSIZING_LABEL (ephy_ellipsizing_label_get_type ())
29
#define EPHY_ELLIPSIZING_LABEL(obj) (GTK_CHECK_CAST ((obj), EPHY_TYPE_ELLIPSIZING_LABEL, EphyEllipsizingLabel))
30
#define EPHY_ELLIPSIZING_LABEL_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), EPHY_TYPE_ELLIPSIZING_LABEL, EphyEllipsizingLabelClass))
31
#define EPHY_IS_ELLIPSIZING_LABEL(obj) (GTK_CHECK_TYPE ((obj), EPHY_TYPE_ELLIPSIZING_LABEL))
32
#define EPHY_IS_ELLIPSIZING_LABEL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), EPHY_TYPE_ELLIPSIZING_LABEL))
34
typedef struct EphyEllipsizingLabelPrivate EphyEllipsizingLabelPrivate;
40
EPHY_ELLIPSIZE_MIDDLE,
48
EphyEllipsizingLabelPrivate *priv;
49
} EphyEllipsizingLabel;
53
GtkLabelClass parent_class;
54
} EphyEllipsizingLabelClass;
56
GType ephy_ellipsizing_label_get_type (void);
58
GtkWidget *ephy_ellipsizing_label_new (const char *string);
60
void ephy_ellipsizing_label_set_mode (EphyEllipsizingLabel *label,
61
EphyEllipsizeMode mode);
63
void ephy_ellipsizing_label_set_text (EphyEllipsizingLabel *label,
66
void ephy_ellipsizing_label_set_markup (EphyEllipsizingLabel *label,
71
#endif /* EPHY_ELLIPSIZING_LABEL_H */