Rename Pluma to Xedit
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
# sort plugin
|
||||
plugindir = $(PLUMA_PLUGINS_LIBS_DIR)
|
||||
plugindir = $(XEDIT_PLUGINS_LIBS_DIR)
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir) \
|
||||
$(PLUMA_CFLAGS) \
|
||||
$(XEDIT_CFLAGS) \
|
||||
$(WARN_CFLAGS) \
|
||||
$(DISABLE_DEPRECATED_CFLAGS)
|
||||
|
||||
plugin_LTLIBRARIES = libsort.la
|
||||
|
||||
libsort_la_SOURCES = \
|
||||
pluma-sort-plugin.h \
|
||||
pluma-sort-plugin.c
|
||||
xedit-sort-plugin.h \
|
||||
xedit-sort-plugin.c
|
||||
|
||||
libsort_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
|
||||
libsort_la_LIBADD = $(PLUMA_LIBS)
|
||||
libsort_la_LIBADD = $(XEDIT_LIBS)
|
||||
|
||||
uidir = $(PLUMA_PLUGINS_DATA_DIR)/sort
|
||||
uidir = $(XEDIT_PLUGINS_DATA_DIR)/sort
|
||||
ui_DATA = sort.ui
|
||||
|
||||
plugin_in_files = sort.pluma-plugin.desktop.in
|
||||
plugin_in_files = sort.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 = $(ui_DATA) $(plugin_in_files)
|
||||
|
||||
|
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* pluma-sort-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 __PLUMA_SORT_PLUGIN_H__
|
||||
#define __PLUMA_SORT_PLUGIN_H__
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib-object.h>
|
||||
#include <pluma/pluma-plugin.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/*
|
||||
* Type checking and casting macros
|
||||
*/
|
||||
#define PLUMA_TYPE_SORT_PLUGIN (pluma_sort_plugin_get_type ())
|
||||
#define PLUMA_SORT_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PLUMA_TYPE_SORT_PLUGIN, PlumaSortPlugin))
|
||||
#define PLUMA_SORT_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), PLUMA_TYPE_SORT_PLUGIN, PlumaSortPluginClass))
|
||||
#define PLUMA_IS_SORT_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PLUMA_TYPE_SORT_PLUGIN))
|
||||
#define PLUMA_IS_SORT_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PLUMA_TYPE_SORT_PLUGIN))
|
||||
#define PLUMA_SORT_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PLUMA_TYPE_SORT_PLUGIN, PlumaSortPluginClass))
|
||||
|
||||
/* Private structure type */
|
||||
typedef struct _PlumaSortPluginPrivate PlumaSortPluginPrivate;
|
||||
|
||||
/*
|
||||
* Main object structure
|
||||
*/
|
||||
typedef struct _PlumaSortPlugin PlumaSortPlugin;
|
||||
|
||||
struct _PlumaSortPlugin
|
||||
{
|
||||
PlumaPlugin parent_instance;
|
||||
};
|
||||
|
||||
/*
|
||||
* Class definition
|
||||
*/
|
||||
typedef struct _PlumaSortPluginClass PlumaSortPluginClass;
|
||||
|
||||
struct _PlumaSortPluginClass
|
||||
{
|
||||
PlumaPluginClass parent_class;
|
||||
};
|
||||
|
||||
/*
|
||||
* Public methods
|
||||
*/
|
||||
GType pluma_sort_plugin_get_type (void) G_GNUC_CONST;
|
||||
|
||||
/* All the plugins must implement this function */
|
||||
G_MODULE_EXPORT GType register_pluma_plugin (GTypeModule *module);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __PLUMA_SORT_PLUGIN_H__ */
|
@@ -1,4 +1,4 @@
|
||||
[Pluma Plugin]
|
||||
[Xedit Plugin]
|
||||
Module=sort
|
||||
IAge=2
|
||||
_Name=Sort
|
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
* pluma-sort-plugin.c
|
||||
* xedit-sort-plugin.c
|
||||
*
|
||||
* Original author: Carlo Borreo <borreo@softhome.net>
|
||||
* Ported to Pluma2 by Lee Mallabone <mate@fonicmonkey.net>
|
||||
* Ported to Xedit2 by Lee Mallabone <mate@fonicmonkey.net>
|
||||
*
|
||||
* 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
|
||||
@@ -25,25 +25,25 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include "pluma-sort-plugin.h"
|
||||
#include "xedit-sort-plugin.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <glib/gi18n-lib.h>
|
||||
#include <gmodule.h>
|
||||
|
||||
#include <pluma/pluma-debug.h>
|
||||
#include <pluma/pluma-utils.h>
|
||||
#include <pluma/pluma-help.h>
|
||||
#include <xedit/xedit-debug.h>
|
||||
#include <xedit/xedit-utils.h>
|
||||
#include <xedit/xedit-help.h>
|
||||
|
||||
#define PLUMA_SORT_PLUGIN_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), PLUMA_TYPE_SORT_PLUGIN, PlumaSortPluginPrivate))
|
||||
#define XEDIT_SORT_PLUGIN_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), XEDIT_TYPE_SORT_PLUGIN, XeditSortPluginPrivate))
|
||||
|
||||
/* Key in case the plugin ever needs any settings. */
|
||||
#define SORT_BASE_KEY "/apps/pluma/plugins/sort"
|
||||
#define SORT_BASE_KEY "/apps/xedit/plugins/sort"
|
||||
|
||||
#define WINDOW_DATA_KEY "PlumaSortPluginWindowData"
|
||||
#define WINDOW_DATA_KEY "XeditSortPluginWindowData"
|
||||
#define MENU_PATH "/MenuBar/EditMenu/EditOps_6"
|
||||
|
||||
PLUMA_PLUGIN_REGISTER_TYPE(PlumaSortPlugin, pluma_sort_plugin)
|
||||
XEDIT_PLUGIN_REGISTER_TYPE(XeditSortPlugin, xedit_sort_plugin)
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -53,7 +53,7 @@ typedef struct
|
||||
GtkWidget *ignore_case_checkbutton;
|
||||
GtkWidget *remove_dups_checkbutton;
|
||||
|
||||
PlumaDocument *doc;
|
||||
XeditDocument *doc;
|
||||
|
||||
GtkTextIter start, end; /* selection */
|
||||
} SortDialog;
|
||||
@@ -66,8 +66,8 @@ typedef struct
|
||||
|
||||
typedef struct
|
||||
{
|
||||
PlumaPlugin *plugin;
|
||||
PlumaWindow *window;
|
||||
XeditPlugin *plugin;
|
||||
XeditWindow *window;
|
||||
} ActionData;
|
||||
|
||||
typedef struct
|
||||
@@ -95,7 +95,7 @@ static void
|
||||
sort_dialog_dispose (GObject *obj,
|
||||
gpointer dialog_pointer)
|
||||
{
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
|
||||
g_slice_free (SortDialog, dialog_pointer);
|
||||
}
|
||||
@@ -105,7 +105,7 @@ sort_dialog_response_handler (GtkDialog *widget,
|
||||
gint res_id,
|
||||
SortDialog *dialog)
|
||||
{
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
|
||||
switch (res_id)
|
||||
{
|
||||
@@ -115,9 +115,9 @@ sort_dialog_response_handler (GtkDialog *widget,
|
||||
break;
|
||||
|
||||
case GTK_RESPONSE_HELP:
|
||||
pluma_help_display (GTK_WINDOW (widget),
|
||||
xedit_help_display (GTK_WINDOW (widget),
|
||||
NULL,
|
||||
"pluma-sort-plugin");
|
||||
"xedit-sort-plugin");
|
||||
break;
|
||||
|
||||
case GTK_RESPONSE_CANCEL:
|
||||
@@ -130,13 +130,13 @@ sort_dialog_response_handler (GtkDialog *widget,
|
||||
* the text field (like the combo box) looses the documnent selection.
|
||||
* Storing the selection ONLY works because the dialog is modal */
|
||||
static void
|
||||
get_current_selection (PlumaWindow *window, SortDialog *dialog)
|
||||
get_current_selection (XeditWindow *window, SortDialog *dialog)
|
||||
{
|
||||
PlumaDocument *doc;
|
||||
XeditDocument *doc;
|
||||
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
|
||||
doc = pluma_window_get_active_document (window);
|
||||
doc = xedit_window_get_active_document (window);
|
||||
|
||||
if (!gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (doc),
|
||||
&dialog->start,
|
||||
@@ -158,14 +158,14 @@ get_sort_dialog (ActionData *action_data)
|
||||
gchar *data_dir;
|
||||
gchar *ui_file;
|
||||
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
|
||||
dialog = g_slice_new (SortDialog);
|
||||
|
||||
data_dir = pluma_plugin_get_data_dir (action_data->plugin);
|
||||
data_dir = xedit_plugin_get_data_dir (action_data->plugin);
|
||||
ui_file = g_build_filename (data_dir, "sort.ui", NULL);
|
||||
g_free (data_dir);
|
||||
ret = pluma_utils_get_ui_objects (ui_file,
|
||||
ret = xedit_utils_get_ui_objects (ui_file,
|
||||
NULL,
|
||||
&error_widget,
|
||||
"sort_dialog", &dialog->dialog,
|
||||
@@ -181,7 +181,7 @@ get_sort_dialog (ActionData *action_data)
|
||||
const gchar *err_message;
|
||||
|
||||
err_message = gtk_label_get_label (GTK_LABEL (error_widget));
|
||||
pluma_warning (GTK_WINDOW (action_data->window),
|
||||
xedit_warning (GTK_WINDOW (action_data->window),
|
||||
"%s", err_message);
|
||||
|
||||
g_slice_free (SortDialog, dialog);
|
||||
@@ -212,19 +212,19 @@ static void
|
||||
sort_cb (GtkAction *action,
|
||||
ActionData *action_data)
|
||||
{
|
||||
PlumaDocument *doc;
|
||||
XeditDocument *doc;
|
||||
GtkWindowGroup *wg;
|
||||
SortDialog *dialog;
|
||||
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
|
||||
doc = pluma_window_get_active_document (action_data->window);
|
||||
doc = xedit_window_get_active_document (action_data->window);
|
||||
g_return_if_fail (doc != NULL);
|
||||
|
||||
dialog = get_sort_dialog (action_data);
|
||||
g_return_if_fail (dialog != NULL);
|
||||
|
||||
wg = pluma_window_get_group (action_data->window);
|
||||
wg = xedit_window_get_group (action_data->window);
|
||||
gtk_window_group_add_window (wg,
|
||||
GTK_WINDOW (dialog->dialog));
|
||||
|
||||
@@ -253,7 +253,7 @@ compare_algorithm (gconstpointer s1,
|
||||
gchar *key1, *key2;
|
||||
SortInfo *sort_info;
|
||||
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
|
||||
sort_info = (SortInfo *) data;
|
||||
g_return_val_if_fail (sort_info != NULL, -1);
|
||||
@@ -350,7 +350,7 @@ get_line_slice (GtkTextBuffer *buf,
|
||||
static void
|
||||
sort_real (SortDialog *dialog)
|
||||
{
|
||||
PlumaDocument *doc;
|
||||
XeditDocument *doc;
|
||||
GtkTextIter start, end;
|
||||
gint start_line, end_line;
|
||||
gint i;
|
||||
@@ -359,7 +359,7 @@ sort_real (SortDialog *dialog)
|
||||
gchar **lines;
|
||||
SortInfo *sort_info;
|
||||
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
|
||||
doc = dialog->doc;
|
||||
g_return_if_fail (doc != NULL);
|
||||
@@ -386,7 +386,7 @@ sort_real (SortDialog *dialog)
|
||||
num_lines = end_line - start_line + 1;
|
||||
lines = g_new0 (gchar *, num_lines + 1);
|
||||
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Building list...");
|
||||
xedit_debug_message (DEBUG_PLUGINS, "Building list...");
|
||||
|
||||
for (i = 0; i < num_lines; i++)
|
||||
{
|
||||
@@ -395,7 +395,7 @@ sort_real (SortDialog *dialog)
|
||||
|
||||
lines[num_lines] = NULL;
|
||||
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Sort list...");
|
||||
xedit_debug_message (DEBUG_PLUGINS, "Sort list...");
|
||||
|
||||
g_qsort_with_data (lines,
|
||||
num_lines,
|
||||
@@ -403,7 +403,7 @@ sort_real (SortDialog *dialog)
|
||||
compare_algorithm,
|
||||
sort_info);
|
||||
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Rebuilding document...");
|
||||
xedit_debug_message (DEBUG_PLUGINS, "Rebuilding document...");
|
||||
|
||||
gtk_source_buffer_begin_not_undoable_action (GTK_SOURCE_BUFFER (doc));
|
||||
|
||||
@@ -435,7 +435,7 @@ sort_real (SortDialog *dialog)
|
||||
g_strfreev (lines);
|
||||
g_free (sort_info);
|
||||
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Done.");
|
||||
xedit_debug_message (DEBUG_PLUGINS, "Done.");
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -456,14 +456,14 @@ free_action_data (ActionData *data)
|
||||
}
|
||||
|
||||
static void
|
||||
update_ui_real (PlumaWindow *window,
|
||||
update_ui_real (XeditWindow *window,
|
||||
WindowData *data)
|
||||
{
|
||||
PlumaView *view;
|
||||
XeditView *view;
|
||||
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
|
||||
view = pluma_window_get_active_view (window);
|
||||
view = xedit_window_get_active_view (window);
|
||||
|
||||
gtk_action_group_set_sensitive (data->ui_action_group,
|
||||
(view != NULL) &&
|
||||
@@ -471,23 +471,23 @@ update_ui_real (PlumaWindow *window,
|
||||
}
|
||||
|
||||
static void
|
||||
impl_activate (PlumaPlugin *plugin,
|
||||
PlumaWindow *window)
|
||||
impl_activate (XeditPlugin *plugin,
|
||||
XeditWindow *window)
|
||||
{
|
||||
GtkUIManager *manager;
|
||||
WindowData *data;
|
||||
ActionData *action_data;
|
||||
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
|
||||
data = g_slice_new (WindowData);
|
||||
action_data = g_slice_new (ActionData);
|
||||
action_data->window = window;
|
||||
action_data->plugin = plugin;
|
||||
|
||||
manager = pluma_window_get_ui_manager (window);
|
||||
manager = xedit_window_get_ui_manager (window);
|
||||
|
||||
data->ui_action_group = gtk_action_group_new ("PlumaSortPluginActions");
|
||||
data->ui_action_group = gtk_action_group_new ("XeditSortPluginActions");
|
||||
gtk_action_group_set_translation_domain (data->ui_action_group,
|
||||
GETTEXT_PACKAGE);
|
||||
gtk_action_group_add_actions_full (data->ui_action_group,
|
||||
@@ -520,15 +520,15 @@ impl_activate (PlumaPlugin *plugin,
|
||||
}
|
||||
|
||||
static void
|
||||
impl_deactivate (PlumaPlugin *plugin,
|
||||
PlumaWindow *window)
|
||||
impl_deactivate (XeditPlugin *plugin,
|
||||
XeditWindow *window)
|
||||
{
|
||||
GtkUIManager *manager;
|
||||
WindowData *data;
|
||||
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
|
||||
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);
|
||||
@@ -545,12 +545,12 @@ impl_deactivate (PlumaPlugin *plugin,
|
||||
}
|
||||
|
||||
static void
|
||||
impl_update_ui (PlumaPlugin *plugin,
|
||||
PlumaWindow *window)
|
||||
impl_update_ui (XeditPlugin *plugin,
|
||||
XeditWindow *window)
|
||||
{
|
||||
WindowData *data;
|
||||
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
xedit_debug (DEBUG_PLUGINS);
|
||||
|
||||
data = (WindowData *) g_object_get_data (G_OBJECT (window),
|
||||
WINDOW_DATA_KEY);
|
||||
@@ -561,26 +561,26 @@ impl_update_ui (PlumaPlugin *plugin,
|
||||
}
|
||||
|
||||
static void
|
||||
pluma_sort_plugin_init (PlumaSortPlugin *plugin)
|
||||
xedit_sort_plugin_init (XeditSortPlugin *plugin)
|
||||
{
|
||||
pluma_debug_message (DEBUG_PLUGINS, "PlumaSortPlugin initializing");
|
||||
xedit_debug_message (DEBUG_PLUGINS, "XeditSortPlugin initializing");
|
||||
}
|
||||
|
||||
static void
|
||||
pluma_sort_plugin_finalize (GObject *object)
|
||||
xedit_sort_plugin_finalize (GObject *object)
|
||||
{
|
||||
pluma_debug_message (DEBUG_PLUGINS, "PlumaSortPlugin finalizing");
|
||||
xedit_debug_message (DEBUG_PLUGINS, "XeditSortPlugin finalizing");
|
||||
|
||||
G_OBJECT_CLASS (pluma_sort_plugin_parent_class)->finalize (object);
|
||||
G_OBJECT_CLASS (xedit_sort_plugin_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static void
|
||||
pluma_sort_plugin_class_init (PlumaSortPluginClass *klass)
|
||||
xedit_sort_plugin_class_init (XeditSortPluginClass *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 = pluma_sort_plugin_finalize;
|
||||
object_class->finalize = xedit_sort_plugin_finalize;
|
||||
|
||||
plugin_class->activate = impl_activate;
|
||||
plugin_class->deactivate = impl_deactivate;
|
73
plugins/sort/xedit-sort-plugin.h
Normal file
73
plugins/sort/xedit-sort-plugin.h
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* xedit-sort-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_SORT_PLUGIN_H__
|
||||
#define __XEDIT_SORT_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_SORT_PLUGIN (xedit_sort_plugin_get_type ())
|
||||
#define XEDIT_SORT_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XEDIT_TYPE_SORT_PLUGIN, XeditSortPlugin))
|
||||
#define XEDIT_SORT_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), XEDIT_TYPE_SORT_PLUGIN, XeditSortPluginClass))
|
||||
#define XEDIT_IS_SORT_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XEDIT_TYPE_SORT_PLUGIN))
|
||||
#define XEDIT_IS_SORT_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), XEDIT_TYPE_SORT_PLUGIN))
|
||||
#define XEDIT_SORT_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), XEDIT_TYPE_SORT_PLUGIN, XeditSortPluginClass))
|
||||
|
||||
/* Private structure type */
|
||||
typedef struct _XeditSortPluginPrivate XeditSortPluginPrivate;
|
||||
|
||||
/*
|
||||
* Main object structure
|
||||
*/
|
||||
typedef struct _XeditSortPlugin XeditSortPlugin;
|
||||
|
||||
struct _XeditSortPlugin
|
||||
{
|
||||
XeditPlugin parent_instance;
|
||||
};
|
||||
|
||||
/*
|
||||
* Class definition
|
||||
*/
|
||||
typedef struct _XeditSortPluginClass XeditSortPluginClass;
|
||||
|
||||
struct _XeditSortPluginClass
|
||||
{
|
||||
XeditPluginClass parent_class;
|
||||
};
|
||||
|
||||
/*
|
||||
* Public methods
|
||||
*/
|
||||
GType xedit_sort_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_SORT_PLUGIN_H__ */
|
Reference in New Issue
Block a user