Rename Pluma to Xedit
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
# ##(PLUGIN_NAME)
|
||||
|
||||
plugindir = $(PLUMA_PLUGINS_LIBS_DIR)
|
||||
plugindir = $(XEDIT_PLUGINS_LIBS_DIR)
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir) \
|
||||
$(PLUMA_CFLAGS) \
|
||||
$(XEDIT_CFLAGS) \
|
||||
$(WARN_CFLAGS) \
|
||||
$(DISABLE_DEPRECATED_CFLAGS) \
|
||||
-DPLUMA_LOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"
|
||||
-DXEDIT_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 = $(PLUMA_LIBS)
|
||||
lib##(PLUGIN_MODULE)_la_LIBADD = $(XEDIT_LIBS)
|
||||
|
||||
# UI files (if you use gtkbuilder for your plugin, list those files here)
|
||||
uidir = $(PLUMA_PLUGINS_DATA_DIR)/##(PLUGIN_MODULE)
|
||||
uidir = $(XEDIT_PLUGINS_DATA_DIR)/##(PLUGIN_MODULE)
|
||||
ui_DATA =
|
||||
|
||||
plugin_in_files = ##(PLUGIN_MODULE).pluma-plugin.desktop.in
|
||||
plugin_in_files = ##(PLUGIN_MODULE).xedit-plugin.desktop.in
|
||||
|
||||
%.pluma-plugin: %.pluma-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
|
||||
%.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
|
||||
|
||||
plugin_DATA = $(plugin_in_files:.pluma-plugin.desktop.in=.pluma-plugin)
|
||||
plugin_DATA = $(plugin_in_files:.xedit-plugin.desktop.in=.xedit-plugin)
|
||||
|
||||
EXTRA_DIST = $(plugin_in_files)
|
||||
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include "##(PLUGIN_MODULE)-plugin.h"
|
||||
|
||||
#include <glib/gi18n-lib.h>
|
||||
#include <pluma/pluma-debug.h>
|
||||
#include <xedit/xedit-debug.h>
|
||||
|
||||
#define WINDOW_DATA_KEY "##(PLUGIN_ID.camel)PluginWindowData"
|
||||
|
||||
@@ -36,10 +36,10 @@ struct _##(PLUGIN_ID.camel)PluginPrivate
|
||||
gpointer dummy;
|
||||
};
|
||||
|
||||
PLUMA_PLUGIN_REGISTER_TYPE (##(PLUGIN_ID.camel)Plugin, ##(PLUGIN_ID.lower)_plugin)
|
||||
XEDIT_PLUGIN_REGISTER_TYPE (##(PLUGIN_ID.camel)Plugin, ##(PLUGIN_ID.lower)_plugin)
|
||||
|
||||
##ifdef WITH_MENU
|
||||
/* UI string. See pluma-ui.xml for reference */
|
||||
/* UI string. See xedit-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);
|
||||
|
||||
pluma_debug_message (DEBUG_PLUGINS,
|
||||
xedit_debug_message (DEBUG_PLUGINS,
|
||||
"##(PLUGIN_ID.camel)Plugin initializing");
|
||||
}
|
||||
|
||||
static void
|
||||
##(PLUGIN_ID.lower)_plugin_finalize (GObject *object)
|
||||
{
|
||||
pluma_debug_message (DEBUG_PLUGINS,
|
||||
xedit_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 (PlumaPlugin *plugin,
|
||||
PlumaWindow *window)
|
||||
impl_activate (XeditPlugin *plugin,
|
||||
XeditWindow *window)
|
||||
{
|
||||
##ifdef WITH_MENU
|
||||
GtkUIManager *manager;
|
||||
WindowData *data;
|
||||
##endif
|
||||
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
|
||||
##ifdef WITH_MENU
|
||||
data = g_new (WindowData, 1);
|
||||
manager = pluma_window_get_ui_manager (window);
|
||||
manager = xedit_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 (PlumaPlugin *plugin,
|
||||
}
|
||||
|
||||
static void
|
||||
impl_deactivate (PlumaPlugin *plugin,
|
||||
PlumaWindow *window)
|
||||
impl_deactivate (XeditPlugin *plugin,
|
||||
XeditWindow *window)
|
||||
{
|
||||
##ifdef WITH_MENU
|
||||
GtkUIManager *manager;
|
||||
WindowData *data;
|
||||
##endif
|
||||
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
|
||||
##ifdef WITH_MENU
|
||||
manager = pluma_window_get_ui_manager (window);
|
||||
manager = xedit_window_get_ui_manager (window);
|
||||
|
||||
data = (WindowData *) g_object_get_data (G_OBJECT (window),
|
||||
WINDOW_DATA_KEY);
|
||||
@@ -150,17 +150,17 @@ impl_deactivate (PlumaPlugin *plugin,
|
||||
}
|
||||
|
||||
static void
|
||||
impl_update_ui (PlumaPlugin *plugin,
|
||||
PlumaWindow *window)
|
||||
impl_update_ui (XeditPlugin *plugin,
|
||||
XeditWindow *window)
|
||||
{
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
}
|
||||
|
||||
##ifdef WITH_CONFIGURE_DIALOG
|
||||
static GtkWidget *
|
||||
impl_create_configure_dialog (PlumaPlugin *plugin)
|
||||
impl_create_configure_dialog (XeditPlugin *plugin)
|
||||
{
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_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);
|
||||
PlumaPluginClass *plugin_class = PLUMA_PLUGIN_CLASS (klass);
|
||||
XeditPluginClass *plugin_class = XEDIT_PLUGIN_CLASS (klass);
|
||||
|
||||
object_class->finalize = ##(PLUGIN_ID.lower)_plugin_finalize;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[Pluma Plugin]
|
||||
[Xedit Plugin]
|
||||
##ifdef WITH_PYTHON
|
||||
Loader=python
|
||||
##endif
|
||||
@@ -6,7 +6,7 @@ Module=##(PLUGIN_MODULE)
|
||||
IAge=2
|
||||
_Name=##(PLUGIN_NAME)
|
||||
_Description=##(DESCRIPTION)
|
||||
Icon=pluma-plugin
|
||||
Icon=xedit-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 <pluma/pluma-plugin.h>
|
||||
#include <xedit/xedit-plugin.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
@@ -47,7 +47,7 @@ typedef struct _##(PLUGIN_ID.camel)Plugin ##(PLUGIN_ID.camel)Plugin;
|
||||
|
||||
struct _##(PLUGIN_ID.camel)Plugin
|
||||
{
|
||||
PlumaPlugin parent_instance;
|
||||
XeditPlugin 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
|
||||
{
|
||||
PlumaPluginClass parent_class;
|
||||
XeditPluginClass 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_pluma_plugin (GTypeModule *module);
|
||||
G_MODULE_EXPORT GType register_xedit_plugin (GTypeModule *module);
|
||||
|
||||
G_END_DECLS
|
||||
|
Reference in New Issue
Block a user