renaming from gedit to pluma
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
# docinfo plugin
|
||||
plugindir = $(GEDIT_PLUGINS_LIBS_DIR)
|
||||
plugindir = $(PLUMA_PLUGINS_LIBS_DIR)
|
||||
|
||||
INCLUDES = \
|
||||
-I$(top_srcdir) \
|
||||
$(GEDIT_CFLAGS) \
|
||||
$(PLUMA_CFLAGS) \
|
||||
$(WARN_CFLAGS) \
|
||||
$(DISABLE_DEPRECATED_CFLAGS)
|
||||
|
||||
plugin_LTLIBRARIES = libdocinfo.la
|
||||
|
||||
libdocinfo_la_SOURCES = \
|
||||
gedit-docinfo-plugin.h \
|
||||
gedit-docinfo-plugin.c
|
||||
pluma-docinfo-plugin.h \
|
||||
pluma-docinfo-plugin.c
|
||||
|
||||
libdocinfo_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
|
||||
libdocinfo_la_LIBADD = $(GEDIT_LIBS)
|
||||
libdocinfo_la_LIBADD = $(PLUMA_LIBS)
|
||||
|
||||
uidir = $(GEDIT_PLUGINS_DATA_DIR)/docinfo
|
||||
uidir = $(PLUMA_PLUGINS_DATA_DIR)/docinfo
|
||||
ui_DATA = docinfo.ui
|
||||
|
||||
plugin_in_files = docinfo.gedit-plugin.desktop.in
|
||||
plugin_in_files = docinfo.pluma-plugin.desktop.in
|
||||
|
||||
%.gedit-plugin: %.gedit-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
|
||||
%.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
|
||||
|
||||
plugin_DATA = $(plugin_in_files:.gedit-plugin.desktop.in=.gedit-plugin)
|
||||
plugin_DATA = $(plugin_in_files:.pluma-plugin.desktop.in=.pluma-plugin)
|
||||
|
||||
EXTRA_DIST = $(ui_DATA) $(plugin_in_files)
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[Gedit Plugin]
|
||||
[Pluma Plugin]
|
||||
Module=docinfo
|
||||
IAge=2
|
||||
_Name=Document Statistics
|
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* gedit-docinfo-plugin.h
|
||||
*
|
||||
* Copyright (C) 2002-2005 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, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef __GEDIT_DOCINFO_PLUGIN_H__
|
||||
#define __GEDIT_DOCINFO_PLUGIN_H__
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib-object.h>
|
||||
#include <gedit/gedit-plugin.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/*
|
||||
* Type checking and casting macros
|
||||
*/
|
||||
#define GEDIT_TYPE_DOCINFO_PLUGIN (gedit_docinfo_plugin_get_type ())
|
||||
#define GEDIT_DOCINFO_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GEDIT_TYPE_DOCINFO_PLUGIN, GeditDocInfoPlugin))
|
||||
#define GEDIT_DOCINFO_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GEDIT_TYPE_DOCINFO_PLUGIN, GeditDocInfoPluginClass))
|
||||
#define GEDIT_IS_DOCINFO_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GEDIT_TYPE_DOCINFO_PLUGIN))
|
||||
#define GEDIT_IS_DOCINFO_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GEDIT_TYPE_DOCINFO_PLUGIN))
|
||||
#define GEDIT_DOCINFO_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GEDIT_TYPE_DOCINFO_PLUGIN, GeditDocInfoPluginClass))
|
||||
|
||||
/* Private structure type */
|
||||
typedef struct _GeditDocInfoPluginPrivate GeditDocInfoPluginPrivate;
|
||||
|
||||
/*
|
||||
* Main object structure
|
||||
*/
|
||||
typedef struct _GeditDocInfoPlugin GeditDocInfoPlugin;
|
||||
|
||||
struct _GeditDocInfoPlugin
|
||||
{
|
||||
GeditPlugin parent_instance;
|
||||
};
|
||||
|
||||
/*
|
||||
* Class definition
|
||||
*/
|
||||
typedef struct _GeditDocInfoPluginClass GeditDocInfoPluginClass;
|
||||
|
||||
struct _GeditDocInfoPluginClass
|
||||
{
|
||||
GeditPluginClass parent_class;
|
||||
};
|
||||
|
||||
/*
|
||||
* Public methods
|
||||
*/
|
||||
GType gedit_docinfo_plugin_get_type (void) G_GNUC_CONST;
|
||||
|
||||
/* All the plugins must implement this function */
|
||||
G_MODULE_EXPORT GType register_gedit_plugin (GTypeModule *module);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GEDIT_DOCINFO_PLUGIN_H__ */
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* gedit-docinfo-plugin.c
|
||||
* pluma-docinfo-plugin.c
|
||||
*
|
||||
* Copyright (C) 2002-2005 Paolo Maggi
|
||||
*
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include "gedit-docinfo-plugin.h"
|
||||
#include "pluma-docinfo-plugin.h"
|
||||
|
||||
#include <string.h> /* For strlen (...) */
|
||||
|
||||
@@ -32,13 +32,13 @@
|
||||
#include <pango/pango-break.h>
|
||||
#include <gmodule.h>
|
||||
|
||||
#include <gedit/gedit-debug.h>
|
||||
#include <gedit/gedit-utils.h>
|
||||
#include <pluma/pluma-debug.h>
|
||||
#include <pluma/pluma-utils.h>
|
||||
|
||||
#define WINDOW_DATA_KEY "GeditDocInfoWindowData"
|
||||
#define WINDOW_DATA_KEY "PlumaDocInfoWindowData"
|
||||
#define MENU_PATH "/MenuBar/ToolsMenu/ToolsOps_2"
|
||||
|
||||
GEDIT_PLUGIN_REGISTER_TYPE(GeditDocInfoPlugin, gedit_docinfo_plugin)
|
||||
PLUMA_PLUGIN_REGISTER_TYPE(PlumaDocInfoPlugin, pluma_docinfo_plugin)
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -59,7 +59,7 @@ typedef struct
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GeditPlugin *plugin;
|
||||
PlumaPlugin *plugin;
|
||||
|
||||
GtkActionGroup *ui_action_group;
|
||||
guint ui_id;
|
||||
@@ -69,13 +69,13 @@ typedef struct
|
||||
|
||||
static void docinfo_dialog_response_cb (GtkDialog *widget,
|
||||
gint res_id,
|
||||
GeditWindow *window);
|
||||
PlumaWindow *window);
|
||||
|
||||
static void
|
||||
docinfo_dialog_destroy_cb (GtkObject *obj,
|
||||
WindowData *data)
|
||||
{
|
||||
gedit_debug (DEBUG_PLUGINS);
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
|
||||
if (data != NULL)
|
||||
{
|
||||
@@ -85,7 +85,7 @@ docinfo_dialog_destroy_cb (GtkObject *obj,
|
||||
}
|
||||
|
||||
static DocInfoDialog *
|
||||
get_docinfo_dialog (GeditWindow *window,
|
||||
get_docinfo_dialog (PlumaWindow *window,
|
||||
WindowData *data)
|
||||
{
|
||||
DocInfoDialog *dialog;
|
||||
@@ -95,13 +95,13 @@ get_docinfo_dialog (GeditWindow *window,
|
||||
GtkWidget *error_widget;
|
||||
gboolean ret;
|
||||
|
||||
gedit_debug (DEBUG_PLUGINS);
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
|
||||
dialog = g_new (DocInfoDialog, 1);
|
||||
|
||||
data_dir = gedit_plugin_get_data_dir (data->plugin);
|
||||
data_dir = pluma_plugin_get_data_dir (data->plugin);
|
||||
ui_file = g_build_filename (data_dir, "docinfo.ui", NULL);
|
||||
ret = gedit_utils_get_ui_objects (ui_file,
|
||||
ret = pluma_utils_get_ui_objects (ui_file,
|
||||
NULL,
|
||||
&error_widget,
|
||||
"dialog", &dialog->dialog,
|
||||
@@ -128,7 +128,7 @@ get_docinfo_dialog (GeditWindow *window,
|
||||
const gchar *err_message;
|
||||
|
||||
err_message = gtk_label_get_label (GTK_LABEL (error_widget));
|
||||
gedit_warning (GTK_WINDOW (window), "%s", err_message);
|
||||
pluma_warning (GTK_WINDOW (window), "%s", err_message);
|
||||
|
||||
g_free (dialog);
|
||||
gtk_widget_destroy (error_widget);
|
||||
@@ -154,7 +154,7 @@ get_docinfo_dialog (GeditWindow *window,
|
||||
}
|
||||
|
||||
static void
|
||||
calculate_info (GeditDocument *doc,
|
||||
calculate_info (PlumaDocument *doc,
|
||||
GtkTextIter *start,
|
||||
GtkTextIter *end,
|
||||
gint *chars,
|
||||
@@ -164,7 +164,7 @@ calculate_info (GeditDocument *doc,
|
||||
{
|
||||
gchar *text;
|
||||
|
||||
gedit_debug (DEBUG_PLUGINS);
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
|
||||
text = gtk_text_buffer_get_slice (GTK_TEXT_BUFFER (doc),
|
||||
start,
|
||||
@@ -209,7 +209,7 @@ calculate_info (GeditDocument *doc,
|
||||
}
|
||||
|
||||
static void
|
||||
docinfo_real (GeditDocument *doc,
|
||||
docinfo_real (PlumaDocument *doc,
|
||||
DocInfoDialog *dialog)
|
||||
{
|
||||
GtkTextIter start, end;
|
||||
@@ -221,7 +221,7 @@ docinfo_real (GeditDocument *doc,
|
||||
gchar *tmp_str;
|
||||
gchar *doc_name;
|
||||
|
||||
gedit_debug (DEBUG_PLUGINS);
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
|
||||
gtk_text_buffer_get_bounds (GTK_TEXT_BUFFER (doc),
|
||||
&start,
|
||||
@@ -236,13 +236,13 @@ docinfo_real (GeditDocument *doc,
|
||||
if (chars == 0)
|
||||
lines = 0;
|
||||
|
||||
gedit_debug_message (DEBUG_PLUGINS, "Chars: %d", chars);
|
||||
gedit_debug_message (DEBUG_PLUGINS, "Lines: %d", lines);
|
||||
gedit_debug_message (DEBUG_PLUGINS, "Words: %d", words);
|
||||
gedit_debug_message (DEBUG_PLUGINS, "Chars non-space: %d", chars - white_chars);
|
||||
gedit_debug_message (DEBUG_PLUGINS, "Bytes: %d", bytes);
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Chars: %d", chars);
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Lines: %d", lines);
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Words: %d", words);
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Chars non-space: %d", chars - white_chars);
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Bytes: %d", bytes);
|
||||
|
||||
doc_name = gedit_document_get_short_name_for_display (doc);
|
||||
doc_name = pluma_document_get_short_name_for_display (doc);
|
||||
tmp_str = g_strdup_printf ("<span weight=\"bold\">%s</span>", doc_name);
|
||||
gtk_label_set_markup (GTK_LABEL (dialog->file_name_label), tmp_str);
|
||||
g_free (doc_name);
|
||||
@@ -270,7 +270,7 @@ docinfo_real (GeditDocument *doc,
|
||||
}
|
||||
|
||||
static void
|
||||
selectioninfo_real (GeditDocument *doc,
|
||||
selectioninfo_real (PlumaDocument *doc,
|
||||
DocInfoDialog *dialog)
|
||||
{
|
||||
gboolean sel;
|
||||
@@ -282,7 +282,7 @@ selectioninfo_real (GeditDocument *doc,
|
||||
gint bytes = 0;
|
||||
gchar *tmp_str;
|
||||
|
||||
gedit_debug (DEBUG_PLUGINS);
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
|
||||
sel = gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (doc),
|
||||
&start,
|
||||
@@ -296,11 +296,11 @@ selectioninfo_real (GeditDocument *doc,
|
||||
&start, &end,
|
||||
&chars, &words, &white_chars, &bytes);
|
||||
|
||||
gedit_debug_message (DEBUG_PLUGINS, "Selected chars: %d", chars);
|
||||
gedit_debug_message (DEBUG_PLUGINS, "Selected lines: %d", lines);
|
||||
gedit_debug_message (DEBUG_PLUGINS, "Selected words: %d", words);
|
||||
gedit_debug_message (DEBUG_PLUGINS, "Selected chars non-space: %d", chars - white_chars);
|
||||
gedit_debug_message (DEBUG_PLUGINS, "Selected bytes: %d", bytes);
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Selected chars: %d", chars);
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Selected lines: %d", lines);
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Selected words: %d", words);
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Selected chars non-space: %d", chars - white_chars);
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Selected bytes: %d", bytes);
|
||||
|
||||
gtk_widget_set_sensitive (dialog->selection_vbox, TRUE);
|
||||
}
|
||||
@@ -308,7 +308,7 @@ selectioninfo_real (GeditDocument *doc,
|
||||
{
|
||||
gtk_widget_set_sensitive (dialog->selection_vbox, FALSE);
|
||||
|
||||
gedit_debug_message (DEBUG_PLUGINS, "Selection empty");
|
||||
pluma_debug_message (DEBUG_PLUGINS, "Selection empty");
|
||||
}
|
||||
|
||||
if (chars == 0)
|
||||
@@ -337,17 +337,17 @@ selectioninfo_real (GeditDocument *doc,
|
||||
|
||||
static void
|
||||
docinfo_cb (GtkAction *action,
|
||||
GeditWindow *window)
|
||||
PlumaWindow *window)
|
||||
{
|
||||
GeditDocument *doc;
|
||||
PlumaDocument *doc;
|
||||
WindowData *data;
|
||||
|
||||
gedit_debug (DEBUG_PLUGINS);
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
|
||||
data = (WindowData *) g_object_get_data (G_OBJECT (window),
|
||||
WINDOW_DATA_KEY);
|
||||
|
||||
doc = gedit_window_get_active_document (window);
|
||||
doc = pluma_window_get_active_document (window);
|
||||
g_return_if_fail (doc != NULL);
|
||||
|
||||
if (data->dialog != NULL)
|
||||
@@ -376,11 +376,11 @@ docinfo_cb (GtkAction *action,
|
||||
static void
|
||||
docinfo_dialog_response_cb (GtkDialog *widget,
|
||||
gint res_id,
|
||||
GeditWindow *window)
|
||||
PlumaWindow *window)
|
||||
{
|
||||
WindowData *data;
|
||||
|
||||
gedit_debug (DEBUG_PLUGINS);
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
|
||||
data = (WindowData *) g_object_get_data (G_OBJECT (window),
|
||||
WINDOW_DATA_KEY);
|
||||
@@ -389,7 +389,7 @@ docinfo_dialog_response_cb (GtkDialog *widget,
|
||||
{
|
||||
case GTK_RESPONSE_CLOSE:
|
||||
{
|
||||
gedit_debug_message (DEBUG_PLUGINS, "GTK_RESPONSE_CLOSE");
|
||||
pluma_debug_message (DEBUG_PLUGINS, "GTK_RESPONSE_CLOSE");
|
||||
gtk_widget_destroy (data->dialog->dialog);
|
||||
|
||||
break;
|
||||
@@ -397,11 +397,11 @@ docinfo_dialog_response_cb (GtkDialog *widget,
|
||||
|
||||
case GTK_RESPONSE_OK:
|
||||
{
|
||||
GeditDocument *doc;
|
||||
PlumaDocument *doc;
|
||||
|
||||
gedit_debug_message (DEBUG_PLUGINS, "GTK_RESPONSE_OK");
|
||||
pluma_debug_message (DEBUG_PLUGINS, "GTK_RESPONSE_OK");
|
||||
|
||||
doc = gedit_window_get_active_document (window);
|
||||
doc = pluma_window_get_active_document (window);
|
||||
g_return_if_fail (doc != NULL);
|
||||
|
||||
docinfo_real (doc,
|
||||
@@ -430,7 +430,7 @@ free_window_data (WindowData *data)
|
||||
{
|
||||
g_return_if_fail (data != NULL);
|
||||
|
||||
gedit_debug (DEBUG_PLUGINS);
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
|
||||
g_object_unref (data->plugin);
|
||||
|
||||
@@ -445,14 +445,14 @@ free_window_data (WindowData *data)
|
||||
}
|
||||
|
||||
static void
|
||||
update_ui_real (GeditWindow *window,
|
||||
update_ui_real (PlumaWindow *window,
|
||||
WindowData *data)
|
||||
{
|
||||
GeditView *view;
|
||||
PlumaView *view;
|
||||
|
||||
gedit_debug (DEBUG_PLUGINS);
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
|
||||
view = gedit_window_get_active_view (window);
|
||||
view = pluma_window_get_active_view (window);
|
||||
|
||||
gtk_action_group_set_sensitive (data->ui_action_group,
|
||||
(view != NULL));
|
||||
@@ -466,33 +466,33 @@ update_ui_real (GeditWindow *window,
|
||||
}
|
||||
|
||||
static void
|
||||
gedit_docinfo_plugin_init (GeditDocInfoPlugin *plugin)
|
||||
pluma_docinfo_plugin_init (PlumaDocInfoPlugin *plugin)
|
||||
{
|
||||
gedit_debug_message (DEBUG_PLUGINS, "GeditDocInfoPlugin initializing");
|
||||
pluma_debug_message (DEBUG_PLUGINS, "PlumaDocInfoPlugin initializing");
|
||||
}
|
||||
|
||||
static void
|
||||
gedit_docinfo_plugin_finalize (GObject *object)
|
||||
pluma_docinfo_plugin_finalize (GObject *object)
|
||||
{
|
||||
gedit_debug_message (DEBUG_PLUGINS, "GeditDocInfoPlugin finalizing");
|
||||
pluma_debug_message (DEBUG_PLUGINS, "PlumaDocInfoPlugin finalizing");
|
||||
|
||||
G_OBJECT_CLASS (gedit_docinfo_plugin_parent_class)->finalize (object);
|
||||
G_OBJECT_CLASS (pluma_docinfo_plugin_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static void
|
||||
impl_activate (GeditPlugin *plugin,
|
||||
GeditWindow *window)
|
||||
impl_activate (PlumaPlugin *plugin,
|
||||
PlumaWindow *window)
|
||||
{
|
||||
GtkUIManager *manager;
|
||||
WindowData *data;
|
||||
|
||||
gedit_debug (DEBUG_PLUGINS);
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
|
||||
data = g_new (WindowData, 1);
|
||||
|
||||
data->plugin = g_object_ref (plugin);
|
||||
data->dialog = NULL;
|
||||
data->ui_action_group = gtk_action_group_new ("GeditDocInfoPluginActions");
|
||||
data->ui_action_group = gtk_action_group_new ("PlumaDocInfoPluginActions");
|
||||
|
||||
gtk_action_group_set_translation_domain (data->ui_action_group,
|
||||
GETTEXT_PACKAGE);
|
||||
@@ -501,7 +501,7 @@ impl_activate (GeditPlugin *plugin,
|
||||
G_N_ELEMENTS (action_entries),
|
||||
window);
|
||||
|
||||
manager = gedit_window_get_ui_manager (window);
|
||||
manager = pluma_window_get_ui_manager (window);
|
||||
gtk_ui_manager_insert_action_group (manager,
|
||||
data->ui_action_group,
|
||||
-1);
|
||||
@@ -526,15 +526,15 @@ impl_activate (GeditPlugin *plugin,
|
||||
}
|
||||
|
||||
static void
|
||||
impl_deactivate (GeditPlugin *plugin,
|
||||
GeditWindow *window)
|
||||
impl_deactivate (PlumaPlugin *plugin,
|
||||
PlumaWindow *window)
|
||||
{
|
||||
GtkUIManager *manager;
|
||||
WindowData *data;
|
||||
|
||||
gedit_debug (DEBUG_PLUGINS);
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
|
||||
manager = gedit_window_get_ui_manager (window);
|
||||
manager = pluma_window_get_ui_manager (window);
|
||||
|
||||
data = (WindowData *) g_object_get_data (G_OBJECT (window),
|
||||
WINDOW_DATA_KEY);
|
||||
@@ -551,12 +551,12 @@ impl_deactivate (GeditPlugin *plugin,
|
||||
}
|
||||
|
||||
static void
|
||||
impl_update_ui (GeditPlugin *plugin,
|
||||
GeditWindow *window)
|
||||
impl_update_ui (PlumaPlugin *plugin,
|
||||
PlumaWindow *window)
|
||||
{
|
||||
WindowData *data;
|
||||
|
||||
gedit_debug (DEBUG_PLUGINS);
|
||||
pluma_debug (DEBUG_PLUGINS);
|
||||
|
||||
data = (WindowData *) g_object_get_data (G_OBJECT (window),
|
||||
WINDOW_DATA_KEY);
|
||||
@@ -567,12 +567,12 @@ impl_update_ui (GeditPlugin *plugin,
|
||||
}
|
||||
|
||||
static void
|
||||
gedit_docinfo_plugin_class_init (GeditDocInfoPluginClass *klass)
|
||||
pluma_docinfo_plugin_class_init (PlumaDocInfoPluginClass *klass)
|
||||
{
|
||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||
GeditPluginClass *plugin_class = GEDIT_PLUGIN_CLASS (klass);
|
||||
PlumaPluginClass *plugin_class = PLUMA_PLUGIN_CLASS (klass);
|
||||
|
||||
object_class->finalize = gedit_docinfo_plugin_finalize;
|
||||
object_class->finalize = pluma_docinfo_plugin_finalize;
|
||||
|
||||
plugin_class->activate = impl_activate;
|
||||
plugin_class->deactivate = impl_deactivate;
|
75
plugins/docinfo/pluma-docinfo-plugin.h
Executable file
75
plugins/docinfo/pluma-docinfo-plugin.h
Executable file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* pluma-docinfo-plugin.h
|
||||
*
|
||||
* Copyright (C) 2002-2005 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, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef __PLUMA_DOCINFO_PLUGIN_H__
|
||||
#define __PLUMA_DOCINFO_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_DOCINFO_PLUGIN (pluma_docinfo_plugin_get_type ())
|
||||
#define PLUMA_DOCINFO_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PLUMA_TYPE_DOCINFO_PLUGIN, PlumaDocInfoPlugin))
|
||||
#define PLUMA_DOCINFO_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), PLUMA_TYPE_DOCINFO_PLUGIN, PlumaDocInfoPluginClass))
|
||||
#define PLUMA_IS_DOCINFO_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PLUMA_TYPE_DOCINFO_PLUGIN))
|
||||
#define PLUMA_IS_DOCINFO_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PLUMA_TYPE_DOCINFO_PLUGIN))
|
||||
#define PLUMA_DOCINFO_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PLUMA_TYPE_DOCINFO_PLUGIN, PlumaDocInfoPluginClass))
|
||||
|
||||
/* Private structure type */
|
||||
typedef struct _PlumaDocInfoPluginPrivate PlumaDocInfoPluginPrivate;
|
||||
|
||||
/*
|
||||
* Main object structure
|
||||
*/
|
||||
typedef struct _PlumaDocInfoPlugin PlumaDocInfoPlugin;
|
||||
|
||||
struct _PlumaDocInfoPlugin
|
||||
{
|
||||
PlumaPlugin parent_instance;
|
||||
};
|
||||
|
||||
/*
|
||||
* Class definition
|
||||
*/
|
||||
typedef struct _PlumaDocInfoPluginClass PlumaDocInfoPluginClass;
|
||||
|
||||
struct _PlumaDocInfoPluginClass
|
||||
{
|
||||
PlumaPluginClass parent_class;
|
||||
};
|
||||
|
||||
/*
|
||||
* Public methods
|
||||
*/
|
||||
GType pluma_docinfo_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_DOCINFO_PLUGIN_H__ */
|
Reference in New Issue
Block a user