|
Packit |
1e8aac |
/*
|
|
Packit |
1e8aac |
* Copyright (C) 2010 Tristan Van Berkom.
|
|
Packit |
1e8aac |
*
|
|
Packit |
1e8aac |
* This library is free software; you can redistribute it and/or modify it
|
|
Packit |
1e8aac |
* under the terms of the GNU Lesser General Public License as
|
|
Packit |
1e8aac |
* published by the Free Software Foundation; either version 2.1 of
|
|
Packit |
1e8aac |
* the License, or (at your option) any later version.
|
|
Packit |
1e8aac |
*
|
|
Packit |
1e8aac |
* This library is distributed in the hope that it will be useful, but
|
|
Packit |
1e8aac |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
1e8aac |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
1e8aac |
* Lesser General Public License for more details.
|
|
Packit |
1e8aac |
*
|
|
Packit |
1e8aac |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
1e8aac |
* License along with this program; if not, write to the Free Software
|
|
Packit |
1e8aac |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
Packit |
1e8aac |
*
|
|
Packit |
1e8aac |
* Authors:
|
|
Packit |
1e8aac |
* Tristan Van Berkom <tvb@gnome.org>
|
|
Packit |
1e8aac |
*/
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
#ifndef __GLADE_CELL_RENDERER_ICON_H__
|
|
Packit |
1e8aac |
#define __GLADE_CELL_RENDERER_ICON_H__
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
#include <gtk/gtk.h>
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
G_BEGIN_DECLS
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
#define GLADE_TYPE_CELL_RENDERER_ICON (glade_cell_renderer_icon_get_type ())
|
|
Packit |
1e8aac |
#define GLADE_CELL_RENDERER_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_CELL_RENDERER_ICON, GladeCellRendererIcon))
|
|
Packit |
1e8aac |
#define GLADE_CELL_RENDERER_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GLADE_TYPE_CELL_RENDERER_ICON, GladeCellRendererIconClass))
|
|
Packit |
1e8aac |
#define GLADE_IS_CELL_RENDERER_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_CELL_RENDERER_ICON))
|
|
Packit |
1e8aac |
#define GLADE_IS_CELL_RENDERER_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_CELL_RENDERER_ICON))
|
|
Packit |
1e8aac |
#define GLADE_CELL_RENDERER_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GLADE_TYPE_CELL_RENDERER_ICON, GladeCellRendererIconClass))
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
typedef struct _GladeCellRendererIcon GladeCellRendererIcon;
|
|
Packit |
1e8aac |
typedef struct _GladeCellRendererIconClass GladeCellRendererIconClass;
|
|
Packit |
1e8aac |
typedef struct _GladeCellRendererIconPrivate GladeCellRendererIconPrivate;
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
struct _GladeCellRendererIcon
|
|
Packit |
1e8aac |
{
|
|
Packit |
1e8aac |
GtkCellRendererPixbuf parent;
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
GladeCellRendererIconPrivate *priv;
|
|
Packit |
1e8aac |
};
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
struct _GladeCellRendererIconClass
|
|
Packit |
1e8aac |
{
|
|
Packit |
1e8aac |
GtkCellRendererPixbufClass parent_class;
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
void (* activate) (GladeCellRendererIcon *cell_renderer_icon,
|
|
Packit |
1e8aac |
const gchar *path);
|
|
Packit |
1e8aac |
};
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
GType glade_cell_renderer_icon_get_type (void) G_GNUC_CONST;
|
|
Packit |
1e8aac |
GtkCellRenderer *glade_cell_renderer_icon_new (void);
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
gboolean glade_cell_renderer_icon_get_active (GladeCellRendererIcon *icon);
|
|
Packit |
1e8aac |
void glade_cell_renderer_icon_set_active (GladeCellRendererIcon *icon,
|
|
Packit |
1e8aac |
gboolean setting);
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
gboolean glade_cell_renderer_icon_get_activatable (GladeCellRendererIcon *icon);
|
|
Packit |
1e8aac |
void glade_cell_renderer_icon_set_activatable (GladeCellRendererIcon *icon,
|
|
Packit |
1e8aac |
gboolean setting);
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
G_END_DECLS
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
#endif /* __GLADE_CELL_RENDERER_ICON_H__ */
|