[gnome-commander] test plugin: migration to C++
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-commander] test plugin: migration to C++
- Date: Mon, 7 Dec 2009 23:48:59 +0000 (UTC)
commit 87fbaca22b3d1617527868434749b38f5b7605b6
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Tue Dec 8 00:08:02 2009 +0100
test plugin: migration to C++
plugins/test/Makefile.am | 2 +-
plugins/test/{test-plugin.c => test-plugin.cc} | 4 ++--
po/POTFILES.in | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/test/Makefile.am b/plugins/test/Makefile.am
index 69a372a..4df9783 100644
--- a/plugins/test/Makefile.am
+++ b/plugins/test/Makefile.am
@@ -11,7 +11,7 @@ plugindir = $(pkglibdir)/plugins
noinst_LTLIBRARIES = libtest.la
libtest_la_SOURCES = \
- test-plugin.h test-plugin.c \
+ test-plugin.h test-plugin.cc \
test-plugin.xpm
libtest_la_LDFLAGS = $(GNOMEUI_LIBS) $(GNOMEVFS_LIBS)
diff --git a/plugins/test/test-plugin.c b/plugins/test/test-plugin.cc
similarity index 97%
rename from plugins/test/test-plugin.c
rename to plugins/test/test-plugin.cc
index b3e4afb..ba1248d 100644
--- a/plugins/test/test-plugin.c
+++ b/plugins/test/test-plugin.cc
@@ -153,7 +153,7 @@ static void class_init (TestPluginClass *klass)
object_class = GTK_OBJECT_CLASS (klass);
plugin_class = GNOME_CMD_PLUGIN_CLASS (klass);
- parent_class = gtk_type_class (gnome_cmd_plugin_get_type ());
+ parent_class = (GnomeCmdPluginClass *) gtk_type_class (gnome_cmd_plugin_get_type ());
object_class->destroy = destroy;
@@ -201,7 +201,7 @@ GtkType test_plugin_get_type ()
GnomeCmdPlugin *test_plugin_new ()
{
- TestPlugin *plugin = gtk_type_new (test_plugin_get_type ());
+ TestPlugin *plugin = (TestPlugin *) gtk_type_new (test_plugin_get_type ());
return GNOME_CMD_PLUGIN (plugin);
}
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 9fad991..4a6053e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -6,7 +6,7 @@ libgcmd/gnome-cmd-string-dialog.c
plugins/cvs/cvs-plugin.c
plugins/cvs/interface.c
plugins/fileroller/file-roller-plugin.c
-plugins/test/test-plugin.c
+plugins/test/test-plugin.cc
src/dialogs/gnome-cmd-advrename-regex-dialog.cc
src/dialogs/gnome-cmd-edit-bookmark-dialog.cc
src/dialogs/gnome-cmd-edit-profile-dialog.cc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]