1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ 2 /* 3 * anjuta-cell-renderer-diff.h 4 * Copyright (C) 2013 James Liggett <jrliggett@cox.net> 5 * 6 * anjuta is free software: you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * anjuta is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 * See the GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License along 17 * with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef _ANJUTA_CELL_RENDERER_DIFF_H_ 21 #define _ANJUTA_CELL_RENDERER_DIFF_H_ 22 23 #include <glib-object.h> 24 #include <gtk/gtk.h> 25 #include <string.h> 26 27 G_BEGIN_DECLS 28 29 #define ANJUTA_TYPE_CELL_RENDERER_DIFF (anjuta_cell_renderer_diff_get_type ()) 30 #define ANJUTA_CELL_RENDERER_DIFF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_CELL_RENDERER_DIFF, AnjutaCellRendererDiff)) 31 #define ANJUTA_CELL_RENDERER_DIFF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ANJUTA_TYPE_CELL_RENDERER_DIFF, AnjutaCellRendererDiffClass)) 32 #define ANJUTA_IS_CELL_RENDERER_DIFF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ANJUTA_TYPE_CELL_RENDERER_DIFF)) 33 #define ANJUTA_IS_CELL_RENDERER_DIFF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_CELL_RENDERER_DIFF)) 34 #define ANJUTA_CELL_RENDERER_DIFF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ANJUTA_TYPE_CELL_RENDERER_DIFF, AnjutaCellRendererDiffClass)) 35 36 typedef struct _AnjutaCellRendererDiffClass AnjutaCellRendererDiffClass; 37 typedef struct _AnjutaCellRendererDiff AnjutaCellRendererDiff; 38 typedef struct _AnjutaCellRendererDiffPrivate AnjutaCellRendererDiffPrivate; 39 40 41 struct _AnjutaCellRendererDiffClass 42 { 43 GtkCellRendererClass parent_class; 44 }; 45 46 struct _AnjutaCellRendererDiff 47 { 48 GtkCellRenderer parent_instance; 49 50 AnjutaCellRendererDiffPrivate *priv; 51 }; 52 53 GType anjuta_cell_renderer_diff_get_type (void) G_GNUC_CONST; 54 void anjuta_cell_renderer_diff_set_diff (AnjutaCellRendererDiff *self, 55 const gchar *diff); 56 GtkCellRenderer *anjuta_cell_renderer_diff_new (void); 57 58 G_END_DECLS 59 60 #endif /* _ANJUTA_CELL_RENDERER_DIFF_H_ */ 61 62