summaryrefslogtreecommitdiff
path: root/plugins/checkupdate
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/checkupdate')
-rwxr-xr-xplugins/checkupdate/Makefile.am20
-rwxr-xr-xplugins/checkupdate/checkupdate.pluma-plugin.desktop.in (renamed from plugins/checkupdate/checkupdate.gedit-plugin.desktop.in)8
-rwxr-xr-xplugins/checkupdate/gedit-check-update-plugin.h74
-rwxr-xr-xplugins/checkupdate/pluma-check-update-plugin.c (renamed from plugins/checkupdate/gedit-check-update-plugin.c)124
-rwxr-xr-xplugins/checkupdate/pluma-check-update-plugin.h74
-rwxr-xr-xplugins/checkupdate/pluma-check-update.schemas.in (renamed from plugins/checkupdate/gedit-check-update.schemas.in)6
6 files changed, 153 insertions, 153 deletions
diff --git a/plugins/checkupdate/Makefile.am b/plugins/checkupdate/Makefile.am
index 551b7eee..a49666ca 100755
--- a/plugins/checkupdate/Makefile.am
+++ b/plugins/checkupdate/Makefile.am
@@ -1,10 +1,10 @@
-# gedit win32 updater
+# pluma win32 updater
-plugindir = $(GEDIT_PLUGINS_LIBS_DIR)
+plugindir = $(PLUMA_PLUGINS_LIBS_DIR)
INCLUDES = \
-I$(top_srcdir) \
- $(GEDIT_CFLAGS) \
+ $(PLUMA_CFLAGS) \
$(LIBSOUP_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED_CFLAGS)
@@ -12,20 +12,20 @@ INCLUDES = \
plugin_LTLIBRARIES = libcheckupdate.la
libcheckupdate_la_SOURCES = \
- gedit-check-update-plugin.h \
- gedit-check-update-plugin.c
+ pluma-check-update-plugin.h \
+ pluma-check-update-plugin.c
libcheckupdate_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
-libcheckupdate_la_LIBADD = $(GEDIT_LIBS) $(LIBSOUP_LIBS)
+libcheckupdate_la_LIBADD = $(PLUMA_LIBS) $(LIBSOUP_LIBS)
-plugin_in_files = checkupdate.gedit-plugin.desktop.in
+plugin_in_files = checkupdate.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)
schemasdir = $(MATECONF_SCHEMA_FILE_DIR)
-schemas_in_files = gedit-check-update.schemas.in
+schemas_in_files = pluma-check-update.schemas.in
schemas_DATA = $(schemas_in_files:.schemas.in=.schemas)
@INTLTOOL_SCHEMAS_RULE@
diff --git a/plugins/checkupdate/checkupdate.gedit-plugin.desktop.in b/plugins/checkupdate/checkupdate.pluma-plugin.desktop.in
index 4699b6a2..9373ee47 100755
--- a/plugins/checkupdate/checkupdate.gedit-plugin.desktop.in
+++ b/plugins/checkupdate/checkupdate.pluma-plugin.desktop.in
@@ -1,9 +1,9 @@
-[Gedit Plugin]
+[Pluma Plugin]
Module=checkupdate
IAge=2
_Name=Check update
-_Description=Check for latest version of gedit
-Icon=gedit-plugin
+_Description=Check for latest version of pluma
+Icon=pluma-plugin
Authors=Ignacio Casal Quinteiro <[email protected]>
Copyright=Copyright © 2009 Ignacio Casal Quinteiro
-Website=http://www.gedit.org
+Website=http://www.pluma.org
diff --git a/plugins/checkupdate/gedit-check-update-plugin.h b/plugins/checkupdate/gedit-check-update-plugin.h
deleted file mode 100755
index 68dc7f97..00000000
--- a/plugins/checkupdate/gedit-check-update-plugin.h
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright (C) 2009 - Ignacio Casal Quinteiro <[email protected]>
- *
- * 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.
- */
-
-#ifndef __GEDIT_CHECK_UPDATE_PLUGIN_H__
-#define __GEDIT_CHECK_UPDATE_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_CHECK_UPDATE_PLUGIN (gedit_check_update_plugin_get_type ())
-#define GEDIT_CHECK_UPDATE_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GEDIT_TYPE_CHECK_UPDATE_PLUGIN, GeditCheckUpdatePlugin))
-#define GEDIT_CHECK_UPDATE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GEDIT_TYPE_CHECK_UPDATE_PLUGIN, GeditCheckUpdatePluginClass))
-#define IS_GEDIT_CHECK_UPDATE_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GEDIT_TYPE_CHECK_UPDATE_PLUGIN))
-#define IS_GEDIT_CHECK_UPDATE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GEDIT_TYPE_CHECK_UPDATE_PLUGIN))
-#define GEDIT_CHECK_UPDATE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GEDIT_TYPE_CHECK_UPDATE_PLUGIN, GeditCheckUpdatePluginClass))
-
-/* Private structure type */
-typedef struct _GeditCheckUpdatePluginPrivate GeditCheckUpdatePluginPrivate;
-
-/*
- * Main object structure
- */
-typedef struct _GeditCheckUpdatePlugin GeditCheckUpdatePlugin;
-
-struct _GeditCheckUpdatePlugin
-{
- GeditPlugin parent_instance;
-
- /*< private >*/
- GeditCheckUpdatePluginPrivate *priv;
-};
-
-/*
- * Class definition
- */
-typedef struct _GeditCheckUpdatePluginClass GeditCheckUpdatePluginClass;
-
-struct _GeditCheckUpdatePluginClass
-{
- GeditPluginClass parent_class;
-};
-
-/*
- * Public methods
- */
-GType gedit_check_update_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_CHECK_UPDATE_PLUGIN_H__ */
diff --git a/plugins/checkupdate/gedit-check-update-plugin.c b/plugins/checkupdate/pluma-check-update-plugin.c
index aa9f7a5e..bf30181c 100755
--- a/plugins/checkupdate/gedit-check-update-plugin.c
+++ b/plugins/checkupdate/pluma-check-update-plugin.c
@@ -20,11 +20,11 @@
#include <config.h>
#endif
-#include "gedit-check-update-plugin.h"
+#include "pluma-check-update-plugin.h"
#include <glib/gi18n-lib.h>
-#include <gedit/gedit-debug.h>
-#include <gedit/gedit-utils.h>
+#include <pluma/pluma-debug.h>
+#include <pluma/pluma-utils.h>
#include <libsoup/soup.h>
#include <gtk/gtk.h>
#include <stdlib.h>
@@ -32,36 +32,36 @@
#include <mateconf/mateconf-client.h>
#if !GTK_CHECK_VERSION(2, 17, 1)
-#include <gedit/gedit-message-area.h>
+#include <pluma/pluma-message-area.h>
#endif
-#define MATECONF_KEY_BASE "/apps/gedit-2/plugins/checkupdate"
+#define MATECONF_KEY_BASE "/apps/pluma-2/plugins/checkupdate"
#define MATECONF_KEY_IGNORE_VERSION MATECONF_KEY_BASE "/ignore_version"
-#define WINDOW_DATA_KEY "GeditCheckUpdatePluginWindowData"
+#define WINDOW_DATA_KEY "PlumaCheckUpdatePluginWindowData"
#define VERSION_PLACE "<a href=\"[0-9]\\.[0-9]+/\">"
#ifdef G_OS_WIN32
-#define GEDIT_URL "http://ftp.acc.umu.se/pub/mate/binaries/win32/gedit/"
-#define FILE_REGEX "gedit\\-setup\\-[0-9]+\\.[0-9]+\\.[0-9]+(\\-[0-9]+)?\\.exe"
+#define PLUMA_URL "http://ftp.acc.umu.se/pub/mate/binaries/win32/pluma/"
+#define FILE_REGEX "pluma\\-setup\\-[0-9]+\\.[0-9]+\\.[0-9]+(\\-[0-9]+)?\\.exe"
#else
-#define GEDIT_URL "http://ftp.acc.umu.se/pub/mate/binaries/mac/gedit/"
-#define FILE_REGEX "gedit\\-[0-9]+\\.[0-9]+\\.[0-9]+(\\-[0-9]+)?\\.dmg"
+#define PLUMA_URL "http://ftp.acc.umu.se/pub/mate/binaries/mac/pluma/"
+#define FILE_REGEX "pluma\\-[0-9]+\\.[0-9]+\\.[0-9]+(\\-[0-9]+)?\\.dmg"
#endif
#ifdef OS_OSX
-#include "gedit/osx/gedit-osx.h"
+#include "pluma/osx/pluma-osx.h"
#endif
-#define GEDIT_CHECK_UPDATE_PLUGIN_GET_PRIVATE(object) \
+#define PLUMA_CHECK_UPDATE_PLUGIN_GET_PRIVATE(object) \
(G_TYPE_INSTANCE_GET_PRIVATE ((object), \
- GEDIT_TYPE_CHECK_UPDATE_PLUGIN, \
- GeditCheckUpdatePluginPrivate))
+ PLUMA_TYPE_CHECK_UPDATE_PLUGIN, \
+ PlumaCheckUpdatePluginPrivate))
-GEDIT_PLUGIN_REGISTER_TYPE (GeditCheckUpdatePlugin, gedit_check_update_plugin)
+PLUMA_PLUGIN_REGISTER_TYPE (PlumaCheckUpdatePlugin, pluma_check_update_plugin)
-struct _GeditCheckUpdatePluginPrivate
+struct _PlumaCheckUpdatePluginPrivate
{
SoupSession *session;
@@ -70,7 +70,7 @@ struct _GeditCheckUpdatePluginPrivate
typedef struct
{
- GeditCheckUpdatePlugin *plugin;
+ PlumaCheckUpdatePlugin *plugin;
gchar *url;
gchar *version;
@@ -92,12 +92,12 @@ free_window_data (gpointer data)
}
static void
-gedit_check_update_plugin_init (GeditCheckUpdatePlugin *plugin)
+pluma_check_update_plugin_init (PlumaCheckUpdatePlugin *plugin)
{
- plugin->priv = GEDIT_CHECK_UPDATE_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = PLUMA_CHECK_UPDATE_PLUGIN_GET_PRIVATE (plugin);
- gedit_debug_message (DEBUG_PLUGINS,
- "GeditCheckUpdatePlugin initializing");
+ pluma_debug_message (DEBUG_PLUGINS,
+ "PlumaCheckUpdatePlugin initializing");
plugin->priv->session = soup_session_async_new ();
@@ -110,9 +110,9 @@ gedit_check_update_plugin_init (GeditCheckUpdatePlugin *plugin)
}
static void
-gedit_check_update_plugin_dispose (GObject *object)
+pluma_check_update_plugin_dispose (GObject *object)
{
- GeditCheckUpdatePlugin *plugin = GEDIT_CHECK_UPDATE_PLUGIN (object);
+ PlumaCheckUpdatePlugin *plugin = PLUMA_CHECK_UPDATE_PLUGIN (object);
if (plugin->priv->session != NULL)
{
@@ -129,19 +129,19 @@ gedit_check_update_plugin_dispose (GObject *object)
plugin->priv->mateconf_client = NULL;
}
- gedit_debug_message (DEBUG_PLUGINS,
- "GeditCheckUpdatePlugin disposing");
+ pluma_debug_message (DEBUG_PLUGINS,
+ "PlumaCheckUpdatePlugin disposing");
- G_OBJECT_CLASS (gedit_check_update_plugin_parent_class)->dispose (object);
+ G_OBJECT_CLASS (pluma_check_update_plugin_parent_class)->dispose (object);
}
static void
-gedit_check_update_plugin_finalize (GObject *object)
+pluma_check_update_plugin_finalize (GObject *object)
{
- gedit_debug_message (DEBUG_PLUGINS,
- "GeditCheckUpdatePlugin finalizing");
+ pluma_debug_message (DEBUG_PLUGINS,
+ "PlumaCheckUpdatePlugin finalizing");
- G_OBJECT_CLASS (gedit_check_update_plugin_parent_class)->finalize (object);
+ G_OBJECT_CLASS (pluma_check_update_plugin_parent_class)->finalize (object);
}
static void
@@ -149,7 +149,7 @@ set_contents (GtkWidget *infobar,
GtkWidget *contents)
{
#if !GTK_CHECK_VERSION (2, 17, 1)
- gedit_message_area_set_contents (GEDIT_MESSAGE_AREA (infobar),
+ pluma_message_area_set_contents (PLUMA_MESSAGE_AREA (infobar),
contents);
#else
GtkWidget *content_area;
@@ -217,7 +217,7 @@ set_message_area_text_and_icon (GtkWidget *message_area,
static void
on_response_cb (GtkWidget *infobar,
gint response_id,
- GeditWindow *window)
+ PlumaWindow *window)
{
if (response_id == GTK_RESPONSE_YES)
{
@@ -228,7 +228,7 @@ on_response_cb (GtkWidget *infobar,
WINDOW_DATA_KEY);
#ifdef OS_OSX
- gedit_osx_show_url (data->url);
+ pluma_osx_show_url (data->url);
#else
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (window)),
data->url,
@@ -280,24 +280,24 @@ on_response_cb (GtkWidget *infobar,
}
static GtkWidget *
-create_infobar (GeditWindow *window,
+create_infobar (PlumaWindow *window,
const gchar *version)
{
GtkWidget *infobar;
gchar *message;
#if !GTK_CHECK_VERSION (2, 17, 1)
- infobar = gedit_message_area_new ();
+ infobar = pluma_message_area_new ();
- gedit_message_area_add_stock_button_with_text (GEDIT_MESSAGE_AREA (infobar),
+ pluma_message_area_add_stock_button_with_text (PLUMA_MESSAGE_AREA (infobar),
_("_Download"),
GTK_STOCK_SAVE,
GTK_RESPONSE_YES);
- gedit_message_area_add_stock_button_with_text (GEDIT_MESSAGE_AREA (infobar),
+ pluma_message_area_add_stock_button_with_text (PLUMA_MESSAGE_AREA (infobar),
_("_Ignore Version"),
GTK_STOCK_DISCARD,
GTK_RESPONSE_NO);
- gedit_message_area_add_button (GEDIT_MESSAGE_AREA (infobar),
+ pluma_message_area_add_button (PLUMA_MESSAGE_AREA (infobar),
GTK_STOCK_CANCEL,
GTK_RESPONSE_CANCEL);
#else
@@ -305,7 +305,7 @@ create_infobar (GeditWindow *window,
infobar = gtk_info_bar_new ();
- button = gedit_gtk_button_new_with_stock_icon (_("_Download"),
+ button = pluma_gtk_button_new_with_stock_icon (_("_Download"),
GTK_STOCK_SAVE);
gtk_widget_show (button);
@@ -313,7 +313,7 @@ create_infobar (GeditWindow *window,
button,
GTK_RESPONSE_YES);
- button = gedit_gtk_button_new_with_stock_icon (_("_Ignore Version"),
+ button = pluma_gtk_button_new_with_stock_icon (_("_Ignore Version"),
GTK_STOCK_DISCARD);
gtk_widget_show (button);
@@ -329,11 +329,11 @@ create_infobar (GeditWindow *window,
GTK_MESSAGE_INFO);
#endif
- message = g_strdup_printf ("%s (%s)", _("There is a new version of gedit"), version);
+ message = g_strdup_printf ("%s (%s)", _("There is a new version of pluma"), version);
set_message_area_text_and_icon (infobar,
"gtk-dialog-info",
message,
- _("You can download the new version of gedit"
+ _("You can download the new version of pluma"
" by clicking on the download button or"
" ignore that version and wait for a new one"));
@@ -465,7 +465,7 @@ parse_file_version (const gchar *file)
}
static gchar *
-get_ignore_version (GeditCheckUpdatePlugin *plugin)
+get_ignore_version (PlumaCheckUpdatePlugin *plugin)
{
return mateconf_client_get_string (plugin->priv->mateconf_client,
MATECONF_KEY_IGNORE_VERSION,
@@ -475,7 +475,7 @@ get_ignore_version (GeditCheckUpdatePlugin *plugin)
static void
parse_page_file (SoupSession *session,
SoupMessage *msg,
- GeditWindow *window)
+ PlumaWindow *window)
{
if (msg->status_code == SOUP_STATUS_OK)
{
@@ -585,7 +585,7 @@ get_file_page_version (const gchar *text,
g_match_info_free (match_info);
g_regex_unref (regex);
- if ((GEDIT_MINOR_VERSION % 2) == 0)
+ if ((PLUMA_MINOR_VERSION % 2) == 0)
{
g_free (unstable);
@@ -612,7 +612,7 @@ get_file_page_version (const gchar *text,
static void
parse_page_version (SoupSession *session,
SoupMessage *msg,
- GeditWindow *window)
+ PlumaWindow *window)
{
if (msg->status_code == SOUP_STATUS_OK)
{
@@ -625,7 +625,7 @@ parse_page_version (SoupSession *session,
version = get_file_page_version (msg->response_body->data,
VERSION_PLACE);
- data->url = g_strconcat (GEDIT_URL, version, "/", NULL);
+ data->url = g_strconcat (PLUMA_URL, version, "/", NULL);
g_free (version);
msg2 = soup_message_new ("GET", data->url);
@@ -642,16 +642,16 @@ parse_page_version (SoupSession *session,
}
static void
-impl_activate (GeditPlugin *plugin,
- GeditWindow *window)
+impl_activate (PlumaPlugin *plugin,
+ PlumaWindow *window)
{
SoupMessage *msg;
WindowData *data;
- gedit_debug (DEBUG_PLUGINS);
+ pluma_debug (DEBUG_PLUGINS);
data = g_slice_new (WindowData);
- data->plugin = GEDIT_CHECK_UPDATE_PLUGIN (plugin);
+ data->plugin = PLUMA_CHECK_UPDATE_PLUGIN (plugin);
data->url = NULL;
data->version = NULL;
@@ -660,21 +660,21 @@ impl_activate (GeditPlugin *plugin,
data,
free_window_data);
- msg = soup_message_new ("GET", GEDIT_URL);
+ msg = soup_message_new ("GET", PLUMA_URL);
- soup_session_queue_message (GEDIT_CHECK_UPDATE_PLUGIN (plugin)->priv->session, msg,
+ soup_session_queue_message (PLUMA_CHECK_UPDATE_PLUGIN (plugin)->priv->session, msg,
(SoupSessionCallback)parse_page_version,
window);
}
static void
-impl_deactivate (GeditPlugin *plugin,
- GeditWindow *window)
+impl_deactivate (PlumaPlugin *plugin,
+ PlumaWindow *window)
{
- gedit_debug (DEBUG_PLUGINS);
+ pluma_debug (DEBUG_PLUGINS);
- soup_session_abort (GEDIT_CHECK_UPDATE_PLUGIN (plugin)->priv->session);
+ soup_session_abort (PLUMA_CHECK_UPDATE_PLUGIN (plugin)->priv->session);
g_object_set_data (G_OBJECT (window),
WINDOW_DATA_KEY,
@@ -682,15 +682,15 @@ impl_deactivate (GeditPlugin *plugin,
}
static void
-gedit_check_update_plugin_class_init (GeditCheckUpdatePluginClass *klass)
+pluma_check_update_plugin_class_init (PlumaCheckUpdatePluginClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- GeditPluginClass *plugin_class = GEDIT_PLUGIN_CLASS (klass);
+ PlumaPluginClass *plugin_class = PLUMA_PLUGIN_CLASS (klass);
- g_type_class_add_private (object_class, sizeof (GeditCheckUpdatePluginPrivate));
+ g_type_class_add_private (object_class, sizeof (PlumaCheckUpdatePluginPrivate));
- object_class->finalize = gedit_check_update_plugin_finalize;
- object_class->dispose = gedit_check_update_plugin_dispose;
+ object_class->finalize = pluma_check_update_plugin_finalize;
+ object_class->dispose = pluma_check_update_plugin_dispose;
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
diff --git a/plugins/checkupdate/pluma-check-update-plugin.h b/plugins/checkupdate/pluma-check-update-plugin.h
new file mode 100755
index 00000000..6742d2d4
--- /dev/null
+++ b/plugins/checkupdate/pluma-check-update-plugin.h
@@ -0,0 +1,74 @@
+/*
+ * Copyright (C) 2009 - Ignacio Casal Quinteiro <[email protected]>
+ *
+ * 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.
+ */
+
+#ifndef __PLUMA_CHECK_UPDATE_PLUGIN_H__
+#define __PLUMA_CHECK_UPDATE_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_CHECK_UPDATE_PLUGIN (pluma_check_update_plugin_get_type ())
+#define PLUMA_CHECK_UPDATE_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PLUMA_TYPE_CHECK_UPDATE_PLUGIN, PlumaCheckUpdatePlugin))
+#define PLUMA_CHECK_UPDATE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), PLUMA_TYPE_CHECK_UPDATE_PLUGIN, PlumaCheckUpdatePluginClass))
+#define IS_PLUMA_CHECK_UPDATE_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PLUMA_TYPE_CHECK_UPDATE_PLUGIN))
+#define IS_PLUMA_CHECK_UPDATE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PLUMA_TYPE_CHECK_UPDATE_PLUGIN))
+#define PLUMA_CHECK_UPDATE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PLUMA_TYPE_CHECK_UPDATE_PLUGIN, PlumaCheckUpdatePluginClass))
+
+/* Private structure type */
+typedef struct _PlumaCheckUpdatePluginPrivate PlumaCheckUpdatePluginPrivate;
+
+/*
+ * Main object structure
+ */
+typedef struct _PlumaCheckUpdatePlugin PlumaCheckUpdatePlugin;
+
+struct _PlumaCheckUpdatePlugin
+{
+ PlumaPlugin parent_instance;
+
+ /*< private >*/
+ PlumaCheckUpdatePluginPrivate *priv;
+};
+
+/*
+ * Class definition
+ */
+typedef struct _PlumaCheckUpdatePluginClass PlumaCheckUpdatePluginClass;
+
+struct _PlumaCheckUpdatePluginClass
+{
+ PlumaPluginClass parent_class;
+};
+
+/*
+ * Public methods
+ */
+GType pluma_check_update_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_CHECK_UPDATE_PLUGIN_H__ */
diff --git a/plugins/checkupdate/gedit-check-update.schemas.in b/plugins/checkupdate/pluma-check-update.schemas.in
index 67bc892b..5d4d009a 100755
--- a/plugins/checkupdate/gedit-check-update.schemas.in
+++ b/plugins/checkupdate/pluma-check-update.schemas.in
@@ -1,9 +1,9 @@
<mateconfschemafile>
<schemalist>
<schema>
- <key>/schemas/apps/gedit-2/plugins/checkupdate/ignore_version</key>
- <applyto>/apps/gedit-2/plugins/checkupdate/ignore_version</applyto>
- <owner>gedit</owner>
+ <key>/schemas/apps/pluma-2/plugins/checkupdate/ignore_version</key>
+ <applyto>/apps/pluma-2/plugins/checkupdate/ignore_version</applyto>
+ <owner>pluma</owner>
<type>string</type>
<locale name="C">
<short>Version to ignore until the next version is released</short>