~ubuntu-branches/ubuntu/warty/file-roller/warty

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2004-10-11 22:01:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011220133-nu4i31tvi82v0685
Tags: 2.8.2-0ubuntu1
* New upstream release:
  - void opening remote files in nautilus.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* eel-ellipsizing-label.h: Subclass of GtkLabel that ellipsizes the text.
 
2
 
 
3
   Copyright (C) 2001 Eazel, Inc.
 
4
 
 
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.
 
9
 
 
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.
 
14
 
 
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.
 
19
 
 
20
   Author: John Sullivan <sullivan@eazel.com>,
 
21
 */
 
22
 
 
23
#ifndef EPHY_ELLIPSIZING_LABEL_H
 
24
#define EPHY_ELLIPSIZING_LABEL_H
 
25
 
 
26
#include <gtk/gtklabel.h>
 
27
 
 
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))
 
33
 
 
34
typedef struct EphyEllipsizingLabelPrivate EphyEllipsizingLabelPrivate;
 
35
 
 
36
typedef enum
 
37
{
 
38
        EPHY_ELLIPSIZE_NONE,
 
39
        EPHY_ELLIPSIZE_START,
 
40
        EPHY_ELLIPSIZE_MIDDLE,
 
41
        EPHY_ELLIPSIZE_END
 
42
} EphyEllipsizeMode;
 
43
 
 
44
typedef struct
 
45
{
 
46
        GtkLabel parent;
 
47
 
 
48
        EphyEllipsizingLabelPrivate *priv;
 
49
} EphyEllipsizingLabel;
 
50
 
 
51
typedef struct
 
52
{
 
53
        GtkLabelClass parent_class;
 
54
} EphyEllipsizingLabelClass;
 
55
 
 
56
GType      ephy_ellipsizing_label_get_type      (void);
 
57
 
 
58
GtkWidget *ephy_ellipsizing_label_new           (const char *string);
 
59
 
 
60
void       ephy_ellipsizing_label_set_mode      (EphyEllipsizingLabel *label,
 
61
                                                 EphyEllipsizeMode mode);
 
62
 
 
63
void       ephy_ellipsizing_label_set_text      (EphyEllipsizingLabel *label,
 
64
                                                 const char *string);
 
65
 
 
66
void       ephy_ellipsizing_label_set_markup    (EphyEllipsizingLabel *label,
 
67
                                                 const char *string);
 
68
 
 
69
G_END_DECLS
 
70
 
 
71
#endif /* EPHY_ELLIPSIZING_LABEL_H */