Renamed Xedit -> Xed (avoid name clash with x11-apps's xedit)

This commit is contained in:
Clement Lefebvre
2016-02-04 09:20:42 +00:00
parent c8dd785ea8
commit 16eacdc3f4
487 changed files with 104410 additions and 104432 deletions

View File

@@ -1,26 +1,26 @@
# trailsave plugin
plugindir = $(XEDIT_PLUGINS_LIBS_DIR)
plugindir = $(XED_PLUGINS_LIBS_DIR)
AM_CPPFLAGS = \
-I$(top_srcdir) \
$(XEDIT_CFLAGS) \
$(XED_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED_CFLAGS)
plugin_LTLIBRARIES = libtrailsave.la
libtrailsave_la_SOURCES = \
xedit-trail-save-plugin.h \
xedit-trail-save-plugin.c
xed-trail-save-plugin.h \
xed-trail-save-plugin.c
libtrailsave_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
libtrailsave_la_LIBADD = $(XEDIT_LIBS)
libtrailsave_la_LIBADD = $(XED_LIBS)
plugin_in_files = trailsave.xedit-plugin.desktop.in
plugin_in_files = trailsave.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)

View File

@@ -1,4 +1,4 @@
[Xedit Plugin]
[Xed Plugin]
Module=trailsave
IAge=2
_Name=Save Without Trailing Spaces

View File

@@ -1,5 +1,5 @@
/*
* xedit-trail-save-plugin.c
* xed-trail-save-plugin.c
*
* 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
@@ -22,9 +22,9 @@
#include <config.h>
#endif
#include "xedit-trail-save-plugin.h"
#include "xed-trail-save-plugin.h"
XEDIT_PLUGIN_REGISTER_TYPE(XeditTrailSavePlugin, xedit_trail_save_plugin)
XED_PLUGIN_REGISTER_TYPE(XedTrailSavePlugin, xed_trail_save_plugin)
static void
strip_trailing_spaces (GtkTextBuffer *text_buffer)
@@ -103,11 +103,11 @@ strip_trailing_spaces (GtkTextBuffer *text_buffer)
}
static void
on_save (XeditDocument *document,
on_save (XedDocument *document,
const gchar *uri,
XeditEncoding *encoding,
XeditDocumentSaveFlags save_flags,
XeditPlugin *plugin)
XedEncoding *encoding,
XedDocumentSaveFlags save_flags,
XedPlugin *plugin)
{
GtkTextBuffer *text_buffer = GTK_TEXT_BUFFER (document);
@@ -115,47 +115,47 @@ on_save (XeditDocument *document,
}
static void
on_tab_added (XeditWindow *window,
XeditTab *tab,
XeditPlugin *plugin)
on_tab_added (XedWindow *window,
XedTab *tab,
XedPlugin *plugin)
{
XeditDocument *document;
XedDocument *document;
document = xedit_tab_get_document (tab);
document = xed_tab_get_document (tab);
g_signal_connect (document, "save", G_CALLBACK (on_save), plugin);
}
static void
on_tab_removed (XeditWindow *window,
XeditTab *tab,
XeditPlugin *plugin)
on_tab_removed (XedWindow *window,
XedTab *tab,
XedPlugin *plugin)
{
XeditDocument *document;
XedDocument *document;
document = xedit_tab_get_document (tab);
document = xed_tab_get_document (tab);
g_signal_handlers_disconnect_by_data (document, plugin);
}
static void
impl_activate (XeditPlugin *plugin,
XeditWindow *window)
impl_activate (XedPlugin *plugin,
XedWindow *window)
{
GList *documents;
GList *documents_iter;
XeditDocument *document;
XedDocument *document;
xedit_debug (DEBUG_PLUGINS);
xed_debug (DEBUG_PLUGINS);
g_signal_connect (window, "tab_added", G_CALLBACK (on_tab_added), plugin);
g_signal_connect (window, "tab_removed", G_CALLBACK (on_tab_removed), plugin);
documents = xedit_window_get_documents (window);
documents = xed_window_get_documents (window);
for (documents_iter = documents;
documents_iter && documents_iter->data;
documents_iter = documents_iter->next)
{
document = (XeditDocument *) documents_iter->data;
document = (XedDocument *) documents_iter->data;
g_signal_connect (document, "save", G_CALLBACK (on_save), plugin);
}
@@ -163,24 +163,24 @@ impl_activate (XeditPlugin *plugin,
}
static void
impl_deactivate (XeditPlugin *plugin,
XeditWindow *window)
impl_deactivate (XedPlugin *plugin,
XedWindow *window)
{
GList *documents;
GList *documents_iter;
XeditDocument *document;
XedDocument *document;
xedit_debug (DEBUG_PLUGINS);
xed_debug (DEBUG_PLUGINS);
g_signal_handlers_disconnect_by_data (window, plugin);
documents = xedit_window_get_documents (window);
documents = xed_window_get_documents (window);
for (documents_iter = documents;
documents_iter && documents_iter->data;
documents_iter = documents_iter->next)
{
document = (XeditDocument *) documents_iter->data;
document = (XedDocument *) documents_iter->data;
g_signal_handlers_disconnect_by_data (document, plugin);
}
@@ -188,26 +188,26 @@ impl_deactivate (XeditPlugin *plugin,
}
static void
xedit_trail_save_plugin_init (XeditTrailSavePlugin *plugin)
xed_trail_save_plugin_init (XedTrailSavePlugin *plugin)
{
xedit_debug_message (DEBUG_PLUGINS, "XeditTrailSavePlugin initializing");
xed_debug_message (DEBUG_PLUGINS, "XedTrailSavePlugin initializing");
}
static void
xedit_trail_save_plugin_finalize (GObject *object)
xed_trail_save_plugin_finalize (GObject *object)
{
xedit_debug_message (DEBUG_PLUGINS, "XeditTrailSavePlugin finalizing");
xed_debug_message (DEBUG_PLUGINS, "XedTrailSavePlugin finalizing");
G_OBJECT_CLASS (xedit_trail_save_plugin_parent_class)->finalize (object);
G_OBJECT_CLASS (xed_trail_save_plugin_parent_class)->finalize (object);
}
static void
xedit_trail_save_plugin_class_init (XeditTrailSavePluginClass *klass)
xed_trail_save_plugin_class_init (XedTrailSavePluginClass *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 = xedit_trail_save_plugin_finalize;
object_class->finalize = xed_trail_save_plugin_finalize;
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;

View File

@@ -0,0 +1,70 @@
/*
* xed-trail-save-plugin.h
*
* 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, 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.
*
* $Id$
*/
#ifndef __XED_TRAIL_SAVE_PLUGIN_H__
#define __XED_TRAIL_SAVE_PLUGIN_H__
#include <glib.h>
#include <glib-object.h>
#include <xed/xed-plugin.h>
G_BEGIN_DECLS
/*
* Type checking and casting macros
*/
#define XED_TYPE_TRAIL_SAVE_PLUGIN (xed_trail_save_plugin_get_type ())
#define XED_TRAIL_SAVE_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XED_TYPE_TRAIL_SAVE_PLUGIN, XedTrailSavePlugin))
#define XED_TRAIL_SAVE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), XED_TYPE_TRAIL_SAVE_PLUGIN, XedTrailSavePluginClass))
#define XED_IS_TRAIL_SAVE_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XED_TYPE_TRAIL_SAVE_PLUGIN))
#define XED_IS_TRAIL_SAVE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), XED_TYPE_TRAIL_SAVE_PLUGIN))
#define XED_TRAIL_SAVE_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), XED_TYPE_TRAIL_SAVE_PLUGIN, XedTrailSavePluginClass))
/*
* Main object structure
*/
typedef struct _XedTrailSavePlugin XedTrailSavePlugin;
struct _XedTrailSavePlugin
{
XedPlugin parent_instance;
};
/*
* Class definition
*/
typedef struct _XedTrailSavePluginClass XedTrailSavePluginClass;
struct _XedTrailSavePluginClass
{
XedPluginClass parent_class;
};
/*
* Public methods
*/
GType xed_trail_save_plugin_get_type (void) G_GNUC_CONST;
/* All the plugins must implement this function */
G_MODULE_EXPORT GType register_xed_plugin (GTypeModule *module);
G_END_DECLS
#endif /* __XED_TRAIL_SAVE_PLUGIN_H__ */

View File

@@ -1,70 +0,0 @@
/*
* xedit-trail-save-plugin.h
*
* 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, 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.
*
* $Id$
*/
#ifndef __XEDIT_TRAIL_SAVE_PLUGIN_H__
#define __XEDIT_TRAIL_SAVE_PLUGIN_H__
#include <glib.h>
#include <glib-object.h>
#include <xedit/xedit-plugin.h>
G_BEGIN_DECLS
/*
* Type checking and casting macros
*/
#define XEDIT_TYPE_TRAIL_SAVE_PLUGIN (xedit_trail_save_plugin_get_type ())
#define XEDIT_TRAIL_SAVE_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XEDIT_TYPE_TRAIL_SAVE_PLUGIN, XeditTrailSavePlugin))
#define XEDIT_TRAIL_SAVE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), XEDIT_TYPE_TRAIL_SAVE_PLUGIN, XeditTrailSavePluginClass))
#define XEDIT_IS_TRAIL_SAVE_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XEDIT_TYPE_TRAIL_SAVE_PLUGIN))
#define XEDIT_IS_TRAIL_SAVE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), XEDIT_TYPE_TRAIL_SAVE_PLUGIN))
#define XEDIT_TRAIL_SAVE_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), XEDIT_TYPE_TRAIL_SAVE_PLUGIN, XeditTrailSavePluginClass))
/*
* Main object structure
*/
typedef struct _XeditTrailSavePlugin XeditTrailSavePlugin;
struct _XeditTrailSavePlugin
{
XeditPlugin parent_instance;
};
/*
* Class definition
*/
typedef struct _XeditTrailSavePluginClass XeditTrailSavePluginClass;
struct _XeditTrailSavePluginClass
{
XeditPluginClass parent_class;
};
/*
* Public methods
*/
GType xedit_trail_save_plugin_get_type (void) G_GNUC_CONST;
/* All the plugins must implement this function */
G_MODULE_EXPORT GType register_xedit_plugin (GTypeModule *module);
G_END_DECLS
#endif /* __XEDIT_TRAIL_SAVE_PLUGIN_H__ */