[gnome-commander/gcmd-1-2-8] test plugin: migration to C++



commit d54d6caa1dbd3e7794646eebf962698f3300b11d
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 66de78f..1b5f938 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 365d9c5..0fe5b2a 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-profile-dialog.cc
 src/dialogs/gnome-cmd-manage-profiles-dialog.cc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]