Use util_clip_triangle() in pan_item_tri_new()
[geeqie.git] / src / cellrenderericon.h
index fca6889..4ed8378 100644 (file)
@@ -1,30 +1,35 @@
-/* cellrenderericon.h, based on:
+/*
+ * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com>
+ * Copyright (C) 2008 - 2016 The Geeqie Team
  *
- * gtkcellrendererpixbuf.h
- * Copyright (C) 2000  Red Hat, Inc.,  Jonathan Blandford <jrb@redhat.com>
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
+ * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #ifndef __GQV_CELL_RENDERER_ICON_H__
 #define __GQV_CELL_RENDERER_ICON_H__
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <glib-object.h>
+#include <glib.h>
+#include <gtk/gtk.h>
+#include <pango/pango.h>
+
+struct GQvCellRendererIcon;
+
+#define TOGGLE_WIDTH 13
+#define TOGGLE_SPACING 16
 
 
 #define GQV_TYPE_CELL_RENDERER_ICON            (gqv_cell_renderer_icon_get_type())
@@ -34,10 +39,7 @@ extern "C" {
 #define GQV_IS_CELL_RENDERER_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GQV_TYPE_CELL_RENDERER_ICON))
 #define GQV_CELL_RENDERER_ICON_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GQV_TYPE_CELL_RENDERER_ICON, GQvCellRendererIconClass))
 
-typedef struct _GQvCellRendererIcon GQvCellRendererIcon;
-typedef struct _GQvCellRendererIconClass GQvCellRendererIconClass;
-
-struct _GQvCellRendererIcon
+struct GQvCellRendererIcon
 {
        GtkCellRenderer parent;
 
@@ -64,25 +66,21 @@ struct _GQvCellRendererIcon
 
 };
 
-struct _GQvCellRendererIconClass
+struct GQvCellRendererIconClass
 {
        GtkCellRendererClass parent_class;
 
        void (*toggled)(GQvCellRendererIcon *cell_renderer, const gchar *path);
 
        /* Padding for future expansion */
-       void (*_gtk_reserved1)(void);
-       void (*_gtk_reserved2)(void);
-       void (*_gtk_reserved3)(void);
-       void (*_gtk_reserved4)(void);
+       void (*_gtk_reserved1)();
+       void (*_gtk_reserved2)();
+       void (*_gtk_reserved3)();
+       void (*_gtk_reserved4)();
 };
 
-GType            gqv_cell_renderer_icon_get_type(void);
-GtkCellRenderer *gqv_cell_renderer_icon_new(void);
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+GType            gqv_cell_renderer_icon_get_type();
+GtkCellRenderer *gqv_cell_renderer_icon_new();
 
 #endif /* __GQV_CELL_RENDERER_ICON_H__ */
 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */