From 8e447af3d0e5fc7d3912620031b97fa78ee4beb4 Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 30 Nov 2016 22:11:02 +0300 Subject: remove old plugin system and docs for it --- src/eom-plugin.c | 108 ------------------------------------------------------- 1 file changed, 108 deletions(-) delete mode 100644 src/eom-plugin.c (limited to 'src/eom-plugin.c') diff --git a/src/eom-plugin.c b/src/eom-plugin.c deleted file mode 100644 index 0985cc0..0000000 --- a/src/eom-plugin.c +++ /dev/null @@ -1,108 +0,0 @@ -/* Eye Of Mate - EOM Plugin - * - * Copyright (C) 2007 The Free Software Foundation - * - * Author: Lucas Rocha - * - * Based on gedit code (gedit/gedit-module.c) by: - * - Paolo Maggi - * - * 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 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 General Public License for more details. - * - * 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 St, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include "eom-plugin.h" - -G_DEFINE_TYPE (EomPlugin, eom_plugin, G_TYPE_OBJECT) - -static void -dummy (EomPlugin *plugin, EomWindow *window) -{ -} - -static GtkWidget * -create_configure_dialog (EomPlugin *plugin) -{ - return NULL; -} - -static gboolean -is_configurable (EomPlugin *plugin) -{ - return (EOM_PLUGIN_GET_CLASS (plugin)->create_configure_dialog != - create_configure_dialog); -} - -static void -eom_plugin_class_init (EomPluginClass *klass) -{ - klass->activate = dummy; - klass->deactivate = dummy; - klass->update_ui = dummy; - - klass->create_configure_dialog = create_configure_dialog; - klass->is_configurable = is_configurable; -} - -static void -eom_plugin_init (EomPlugin *plugin) -{ -} - -void -eom_plugin_activate (EomPlugin *plugin, EomWindow *window) -{ - g_return_if_fail (EOM_IS_PLUGIN (plugin)); - g_return_if_fail (EOM_IS_WINDOW (window)); - - EOM_PLUGIN_GET_CLASS (plugin)->activate (plugin, window); -} - -void -eom_plugin_deactivate (EomPlugin *plugin, EomWindow *window) -{ - g_return_if_fail (EOM_IS_PLUGIN (plugin)); - g_return_if_fail (EOM_IS_WINDOW (window)); - - EOM_PLUGIN_GET_CLASS (plugin)->deactivate (plugin, window); -} - -void -eom_plugin_update_ui (EomPlugin *plugin, EomWindow *window) -{ - g_return_if_fail (EOM_IS_PLUGIN (plugin)); - g_return_if_fail (EOM_IS_WINDOW (window)); - - EOM_PLUGIN_GET_CLASS (plugin)->update_ui (plugin, window); -} - -gboolean -eom_plugin_is_configurable (EomPlugin *plugin) -{ - g_return_val_if_fail (EOM_IS_PLUGIN (plugin), FALSE); - - return EOM_PLUGIN_GET_CLASS (plugin)->is_configurable (plugin); -} - -GtkWidget * -eom_plugin_create_configure_dialog (EomPlugin *plugin) -{ - g_return_val_if_fail (EOM_IS_PLUGIN (plugin), NULL); - - return EOM_PLUGIN_GET_CLASS (plugin)->create_configure_dialog (plugin); -} -- cgit v1.2.1