2007-12-11 A. Walton <awalton@svn.gnome.org>
[nautilus.git] / libnautilus-private / nautilus-cell-renderer-text-ellipsized.h
blob7c4004f92266210d380e3f05423a94f2c5519063
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
3 nautilus-cell-renderer-text-ellipsized.c: Cell renderer for text which
4 will use pango ellipsization but deactivate it temporarily for the size
5 calculation to get the size based on the actual text length.
7 Copyright (C) 2007 Martin Wehner
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 General Public License for more details.
19 You should have received a copy of the GNU General Public
20 License along with this program; if not, write to the
21 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA.
24 Author: Martin Wehner <martin.wehner@gmail.com>
27 #ifndef NAUTILUS_CELL_RENDERER_TEXT_ELLIPSIZED_H
28 #define NAUTILUS_CELL_RENDERER_TEXT_ELLIPSIZED_H
30 #include <gtk/gtkcellrenderer.h>
31 #include <gtk/gtkcellrenderertext.h>
33 #define NAUTILUS_TYPE_CELL_RENDERER_TEXT_ELLIPSIZED \
34 (nautilus_cell_renderer_text_ellipsized_get_type ())
35 #define NAUTILUS_CELL_RENDERER_TEXT_ELLIPSIZED(obj) \
36 (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_CELL_RENDERER_TEXT_ELLIPSIZED, NautilusCellRendererTextEllipsized))
37 #define NAUTILUS_CELL_RENDERER_TEXT_ELLIPSIZED_CLASS(klass) \
38 (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_CELL_RENDERER_TEXT_ELLIPSIZED, NautilusCellRendererTextEllipsizedClass))
39 #define NAUTILUS_IS_CELL_RENDERER_TEXT_ELLIPSIZED(obj) \
40 (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_CELL_RENDERER_TEXT_ELLIPSIZED))
41 #define NAUTILUS_IS_CELL_RENDERER_TEXT_ELLIPSIZED_CLASS(klass) \
42 (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_CELL_RENDERER_TEXT_ELLIPSIZED))
44 typedef struct _NautilusCellRendererTextEllipsized NautilusCellRendererTextEllipsized;
45 typedef struct _NautilusCellRendererTextEllipsizedClass NautilusCellRendererTextEllipsizedClass;
47 struct _NautilusCellRendererTextEllipsized {
48 GtkCellRendererText parent;
51 struct _NautilusCellRendererTextEllipsizedClass {
52 GtkCellRendererTextClass parent_class;
55 GType nautilus_cell_renderer_text_ellipsized_get_type (void);
56 GtkCellRenderer *nautilus_cell_renderer_text_ellipsized_new (void);
58 #endif /* NAUTILUS_CELL_RENDERER_TEXT_ELLIPSIZED_H */