Renamed Xedit -> Xed (avoid name clash with x11-apps's xedit)
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# generate-plugin.py - xedit plugin skeletton generator
|
||||
# This file is part of xedit
|
||||
# generate-plugin.py - xed plugin skeletton generator
|
||||
# This file is part of xed
|
||||
#
|
||||
# Copyright (C) 2006 - Steve Frécinaux
|
||||
#
|
||||
# xedit is free software; you can redistribute it and/or modify
|
||||
# xed 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.
|
||||
#
|
||||
# xedit is distributed in the hope that it will be useful,
|
||||
# xed 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 xedit; if not, write to the Free Software
|
||||
# along with xed; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||
# Boston, MA 02110-1301 USA
|
||||
|
||||
@@ -45,7 +45,7 @@ USAGE = """Usage:
|
||||
%s [OPTIONS...] pluginname
|
||||
""" % os.path.basename(sys.argv[0])
|
||||
HELP = USAGE + """
|
||||
generate skeleton source tree for a new xedit plugin.
|
||||
generate skeleton source tree for a new xed plugin.
|
||||
|
||||
Options:
|
||||
--author Set the author name
|
||||
@@ -128,12 +128,12 @@ directives = {
|
||||
# Files to be generated by the preprocessor, in the form "template : outfile"
|
||||
output_files = {
|
||||
'Makefile.am': '%s/Makefile.am' % plugin_module,
|
||||
'xedit-plugin.desktop.in': '%s/%s.xedit-plugin.desktop.in' % (plugin_module, plugin_module)
|
||||
'xed-plugin.desktop.in': '%s/%s.xed-plugin.desktop.in' % (plugin_module, plugin_module)
|
||||
}
|
||||
|
||||
if options['language'] == 'c':
|
||||
output_files['xedit-plugin.c'] = '%s/%s-plugin.c' % (plugin_module, plugin_module)
|
||||
output_files['xedit-plugin.h'] = '%s/%s-plugin.h' % (plugin_module, plugin_module)
|
||||
output_files['xed-plugin.c'] = '%s/%s-plugin.c' % (plugin_module, plugin_module)
|
||||
output_files['xed-plugin.h'] = '%s/%s-plugin.h' % (plugin_module, plugin_module)
|
||||
else:
|
||||
print >>sys.stderr, 'Value of --language should be C'
|
||||
print >>sys.stderr, USAGE
|
||||
|
@@ -1,13 +1,13 @@
|
||||
# ##(PLUGIN_NAME)
|
||||
|
||||
plugindir = $(XEDIT_PLUGINS_LIBS_DIR)
|
||||
plugindir = $(XED_PLUGINS_LIBS_DIR)
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir) \
|
||||
$(XEDIT_CFLAGS) \
|
||||
$(XED_CFLAGS) \
|
||||
$(WARN_CFLAGS) \
|
||||
$(DISABLE_DEPRECATED_CFLAGS) \
|
||||
-DXEDIT_LOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"
|
||||
-DXED_LOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"
|
||||
|
||||
plugin_LTLIBRARIES = lib##(PLUGIN_MODULE).la
|
||||
|
||||
@@ -16,17 +16,17 @@ lib##(PLUGIN_MODULE)_la_SOURCES = \
|
||||
##(PLUGIN_MODULE)-plugin.c
|
||||
|
||||
lib##(PLUGIN_MODULE)_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
|
||||
lib##(PLUGIN_MODULE)_la_LIBADD = $(XEDIT_LIBS)
|
||||
lib##(PLUGIN_MODULE)_la_LIBADD = $(XED_LIBS)
|
||||
|
||||
# UI files (if you use gtkbuilder for your plugin, list those files here)
|
||||
uidir = $(XEDIT_PLUGINS_DATA_DIR)/##(PLUGIN_MODULE)
|
||||
uidir = $(XED_PLUGINS_DATA_DIR)/##(PLUGIN_MODULE)
|
||||
ui_DATA =
|
||||
|
||||
plugin_in_files = ##(PLUGIN_MODULE).xedit-plugin.desktop.in
|
||||
plugin_in_files = ##(PLUGIN_MODULE).xed-plugin.desktop.in
|
||||
|
||||
%.xedit-plugin: %.xedit-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
|
||||
%.xed-plugin: %.xed-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
|
||||
|
||||
plugin_DATA = $(plugin_in_files:.xedit-plugin.desktop.in=.xedit-plugin)
|
||||
plugin_DATA = $(plugin_in_files:.xed-plugin.desktop.in=.xed-plugin)
|
||||
|
||||
EXTRA_DIST = $(plugin_in_files)
|
||||
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include "##(PLUGIN_MODULE)-plugin.h"
|
||||
|
||||
#include <glib/gi18n-lib.h>
|
||||
#include <xedit/xedit-debug.h>
|
||||
#include <xed/xed-debug.h>
|
||||
|
||||
#define WINDOW_DATA_KEY "##(PLUGIN_ID.camel)PluginWindowData"
|
||||
|
||||
@@ -36,10 +36,10 @@ struct _##(PLUGIN_ID.camel)PluginPrivate
|
||||
gpointer dummy;
|
||||
};
|
||||
|
||||
XEDIT_PLUGIN_REGISTER_TYPE (##(PLUGIN_ID.camel)Plugin, ##(PLUGIN_ID.lower)_plugin)
|
||||
XED_PLUGIN_REGISTER_TYPE (##(PLUGIN_ID.camel)Plugin, ##(PLUGIN_ID.lower)_plugin)
|
||||
|
||||
##ifdef WITH_MENU
|
||||
/* UI string. See xedit-ui.xml for reference */
|
||||
/* UI string. See xed-ui.xml for reference */
|
||||
static const gchar ui_str =
|
||||
"<ui>"
|
||||
" <menubar name='MenuBar'>"
|
||||
@@ -65,14 +65,14 @@ static void
|
||||
{
|
||||
plugin->priv = ##(PLUGIN_ID.upper)_PLUGIN_GET_PRIVATE (plugin);
|
||||
|
||||
xedit_debug_message (DEBUG_PLUGINS,
|
||||
xed_debug_message (DEBUG_PLUGINS,
|
||||
"##(PLUGIN_ID.camel)Plugin initializing");
|
||||
}
|
||||
|
||||
static void
|
||||
##(PLUGIN_ID.lower)_plugin_finalize (GObject *object)
|
||||
{
|
||||
xedit_debug_message (DEBUG_PLUGINS,
|
||||
xed_debug_message (DEBUG_PLUGINS,
|
||||
"##(PLUGIN_ID.camel)Plugin finalizing");
|
||||
|
||||
G_OBJECT_CLASS (##(PLUGIN_ID.lower)_plugin_parent_class)->finalize (object);
|
||||
@@ -90,19 +90,19 @@ free_window_data (WindowData *data)
|
||||
##endif
|
||||
|
||||
static void
|
||||
impl_activate (XeditPlugin *plugin,
|
||||
XeditWindow *window)
|
||||
impl_activate (XedPlugin *plugin,
|
||||
XedWindow *window)
|
||||
{
|
||||
##ifdef WITH_MENU
|
||||
GtkUIManager *manager;
|
||||
WindowData *data;
|
||||
##endif
|
||||
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
xed_debug (DEBUG_PLUGINS);
|
||||
|
||||
##ifdef WITH_MENU
|
||||
data = g_new (WindowData, 1);
|
||||
manager = xedit_window_get_ui_manager (window);
|
||||
manager = xed_window_get_ui_manager (window);
|
||||
|
||||
data->action_group = gtk_action_group_new ("##(PLUGIN_ID.camel)PluginActions");
|
||||
gtk_action_group_set_translation_domain (data->action_group,
|
||||
@@ -125,18 +125,18 @@ impl_activate (XeditPlugin *plugin,
|
||||
}
|
||||
|
||||
static void
|
||||
impl_deactivate (XeditPlugin *plugin,
|
||||
XeditWindow *window)
|
||||
impl_deactivate (XedPlugin *plugin,
|
||||
XedWindow *window)
|
||||
{
|
||||
##ifdef WITH_MENU
|
||||
GtkUIManager *manager;
|
||||
WindowData *data;
|
||||
##endif
|
||||
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
xed_debug (DEBUG_PLUGINS);
|
||||
|
||||
##ifdef WITH_MENU
|
||||
manager = xedit_window_get_ui_manager (window);
|
||||
manager = xed_window_get_ui_manager (window);
|
||||
|
||||
data = (WindowData *) g_object_get_data (G_OBJECT (window),
|
||||
WINDOW_DATA_KEY);
|
||||
@@ -150,17 +150,17 @@ impl_deactivate (XeditPlugin *plugin,
|
||||
}
|
||||
|
||||
static void
|
||||
impl_update_ui (XeditPlugin *plugin,
|
||||
XeditWindow *window)
|
||||
impl_update_ui (XedPlugin *plugin,
|
||||
XedWindow *window)
|
||||
{
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
xed_debug (DEBUG_PLUGINS);
|
||||
}
|
||||
|
||||
##ifdef WITH_CONFIGURE_DIALOG
|
||||
static GtkWidget *
|
||||
impl_create_configure_dialog (XeditPlugin *plugin)
|
||||
impl_create_configure_dialog (XedPlugin *plugin)
|
||||
{
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
xed_debug (DEBUG_PLUGINS);
|
||||
}
|
||||
##endif
|
||||
|
||||
@@ -168,7 +168,7 @@ static void
|
||||
##(PLUGIN_ID.lower)_plugin_class_init (##(PLUGIN_ID.camel)PluginClass *klass)
|
||||
{
|
||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||
XeditPluginClass *plugin_class = XEDIT_PLUGIN_CLASS (klass);
|
||||
XedPluginClass *plugin_class = XED_PLUGIN_CLASS (klass);
|
||||
|
||||
object_class->finalize = ##(PLUGIN_ID.lower)_plugin_finalize;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[Xedit Plugin]
|
||||
[Xed Plugin]
|
||||
##ifdef WITH_PYTHON
|
||||
Loader=python
|
||||
##endif
|
||||
@@ -6,7 +6,7 @@ Module=##(PLUGIN_MODULE)
|
||||
IAge=2
|
||||
_Name=##(PLUGIN_NAME)
|
||||
_Description=##(DESCRIPTION)
|
||||
Icon=xedit-plugin
|
||||
Icon=xed-plugin
|
||||
Authors=##(AUTHOR_FULLNAME) <##(AUTHOR_EMAIL.lower)>
|
||||
Copyright=Copyright © ##(DATE_YEAR) ##(AUTHOR_FULLNAME)
|
||||
Website=http://www.mate-desktop.org
|
@@ -23,7 +23,7 @@
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib-object.h>
|
||||
#include <xedit/xedit-plugin.h>
|
||||
#include <xed/xed-plugin.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
@@ -47,7 +47,7 @@ typedef struct _##(PLUGIN_ID.camel)Plugin ##(PLUGIN_ID.camel)Plugin;
|
||||
|
||||
struct _##(PLUGIN_ID.camel)Plugin
|
||||
{
|
||||
XeditPlugin parent_instance;
|
||||
XedPlugin parent_instance;
|
||||
|
||||
/*< private >*/
|
||||
##(PLUGIN_ID.camel)PluginPrivate *priv;
|
||||
@@ -60,7 +60,7 @@ typedef struct _##(PLUGIN_ID.camel)PluginClass ##(PLUGIN_ID.camel)PluginClass;
|
||||
|
||||
struct _##(PLUGIN_ID.camel)PluginClass
|
||||
{
|
||||
XeditPluginClass parent_class;
|
||||
XedPluginClass parent_class;
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -69,7 +69,7 @@ struct _##(PLUGIN_ID.camel)PluginClass
|
||||
GType ##(PLUGIN_ID.lower)_plugin_get_type (void) G_GNUC_CONST;
|
||||
|
||||
/* All the plugins must implement this function */
|
||||
G_MODULE_EXPORT GType register_xedit_plugin (GTypeModule *module);
|
||||
G_MODULE_EXPORT GType register_xed_plugin (GTypeModule *module);
|
||||
|
||||
G_END_DECLS
|
||||
|
@@ -1,22 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# preprocessor.py - simple preprocessor for plugin template files
|
||||
# This file is part of xedit
|
||||
# This file is part of xed
|
||||
#
|
||||
# Copyright (C) 2006 - Steve Frécinaux
|
||||
#
|
||||
# xedit is free software; you can redistribute it and/or modify
|
||||
# xed 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.
|
||||
#
|
||||
# xedit is distributed in the hope that it will be useful,
|
||||
# xed 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 xedit; if not, write to the Free Software
|
||||
# along with xed; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||
# Boston, MA 02110-1301 USA
|
||||
|
||||
|
Reference in New Issue
Block a user