1 /* 2 * gedit-view-activatable.h 3 * This file is part of gedit 4 * 5 * Copyright (C) 2010 - Steve Frécinaux 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU Library General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU Library General Public License for more details. 16 * 17 * You should have received a copy of the GNU Library General Public License 18 * along with this program; if not, see <http://www.gnu.org/licenses/>. 19 */ 20 21 #ifndef GEDIT_VIEW_ACTIVATABLE_H 22 #define GEDIT_VIEW_ACTIVATABLE_H 23 24 #include <glib-object.h> 25 26 G_BEGIN_DECLS 27 28 #define GEDIT_TYPE_VIEW_ACTIVATABLE (gedit_view_activatable_get_type ()) 29 30 G_DECLARE_INTERFACE (GeditViewActivatable, gedit_view_activatable, GEDIT, VIEW_ACTIVATABLE, GObject) 31 32 struct _GeditViewActivatableInterface 33 { 34 GTypeInterface g_iface; 35 36 /* Virtual public methods */ 37 void (*activate) (GeditViewActivatable *activatable); 38 void (*deactivate) (GeditViewActivatable *activatable); 39 }; 40 41 void gedit_view_activatable_activate (GeditViewActivatable *activatable); 42 void gedit_view_activatable_deactivate (GeditViewActivatable *activatable); 43 44 G_END_DECLS 45 46 #endif /* GEDIT_VIEW_ACTIVATABLE_H */ 47 /* ex:set ts=8 noet: */ 48