anjuta r3777 - in trunk: . plugins/build-basic-autotools plugins/class-gen plugins/class-inheritance plugins/cvs-plugin plugins/debug-manager plugins/devhelp plugins/document-manager plugins/editor plugins/file-loader plugins/file-manager plugins/file-wizard plugins/gdb plugins/glade plugins/gtodo plugins/gvim plugins/indent plugins/language-manager plugins/language-support-cpp-java plugins/macro plugins/message-view plugins/patch plugins/profiler plugins/project-import plugins/project-manager plugins/project-wizard plugins/sample1 plugins/search plugins/sourceview plugins/subversion plugins/symbol-browser plugins/symbol-db plugins/terminal plugins/tools plugins/valgrind
- From: naba svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r3777 - in trunk: . plugins/build-basic-autotools plugins/class-gen plugins/class-inheritance plugins/cvs-plugin plugins/debug-manager plugins/devhelp plugins/document-manager plugins/editor plugins/file-loader plugins/file-manager plugins/file-wizard plugins/gdb plugins/glade plugins/gtodo plugins/gvim plugins/indent plugins/language-manager plugins/language-support-cpp-java plugins/macro plugins/message-view plugins/patch plugins/profiler plugins/project-import plugins/project-manager plugins/project-wizard plugins/sample1 plugins/search plugins/sourceview plugins/subversion plugins/symbol-browser plugins/symbol-db plugins/terminal plugins/tools plugins/valgrind
- Date: Sat, 15 Mar 2008 10:13:57 +0000 (GMT)
Author: naba
Date: Sat Mar 15 10:13:56 2008
New Revision: 3777
URL: http://svn.gnome.org/viewvc/anjuta?rev=3777&view=rev
Log:
* plugins/build-basic-autotools/build-basic-autotools.c (dispose),
(finalize):
* plugins/class-gen/plugin.c (dispose), (finalize):
* plugins/class-inheritance/plugin.c (class_inheritance_finalize),
(class_inheritance_dispose):
* plugins/cvs-plugin/plugin.c (finalize), (dispose):
* plugins/debug-manager/plugin.c (dma_plugin_dispose),
(dma_plugin_finalize):
* plugins/debug-manager/queue.c (dma_debugger_queue_dispose),
(dma_debugger_queue_finalize):
* plugins/devhelp/plugin.c (devhelp_finalize), (devhelp_dispose):
* plugins/document-manager/anjuta-docman.c (anjuta_docman_dispose),
(anjuta_docman_finalize):
* plugins/document-manager/plugin.c:
* plugins/editor/plugin.c (dispose), (finalize),
(editor_plugin_class_init):
* plugins/editor/text_editor.c (text_editor_dispose),
(text_editor_finalize):
* plugins/file-loader/plugin.c (dispose), (finalize),
(anjuta_file_loader_plugin_class_init):
* plugins/file-manager/plugin.c (file_manager_finalize),
(file_manager_dispose):
* plugins/file-wizard/plugin.c (dispose), (finalize),
(file_wizard_plugin_class_init):
* plugins/gdb/debugger.c (debugger_dispose), (debugger_finalize):
* plugins/gdb/plugin.c (gdb_plugin_dispose), (gdb_plugin_finalize):
* plugins/glade/plugin.c (glade_plugin_dispose),
(glade_plugin_finalize), (glade_plugin_class_init):
* plugins/gtodo/plugin.c (finalize), (dispose):
* plugins/gvim/plugin.c (anjuta_vim_plugin_finalize),
(anjuta_vim_plugin_dispose):
* plugins/indent/plugin.c (indent_plugin_finalize),
(indent_plugin_dispose):
* plugins/language-manager/plugin.c (language_manager_finalize),
(language_manager_dispose):
* plugins/language-support-cpp-java/plugin.c
(cpp_java_plugin_finalize), (cpp_java_plugin_dispose):
* plugins/macro/macro-db.c (macro_db_dispose), (macro_db_finalize),
(macro_db_class_init):
* plugins/macro/macro-dialog.c (macro_dialog_dispose),
(macro_dialog_finalize), (macro_dialog_class_init):
* plugins/macro/macro-edit.c (macro_edit_dispose),
(macro_edit_finalize), (macro_edit_class_init):
* plugins/macro/plugin.c (finalize), (dispose):
* plugins/message-view/anjuta-msgman.c (anjuta_msgman_dispose),
(anjuta_msgman_finalize):
* plugins/message-view/message-view.c (message_view_dispose),
(message_view_finalize):
* plugins/message-view/plugin.c (message_view_plugin_dispose),
(message_view_plugin_finalize):
* plugins/patch/plugin.c (patch_plugin_finalize),
(patch_plugin_dispose):
* plugins/profiler/plugin.c (profiler_finalize),
(profiler_dispose):
* plugins/project-import/plugin.c (dispose), (finalize),
(project_import_plugin_class_init):
* plugins/project-manager/plugin.c
(project_manager_plugin_finalize),
(project_manager_plugin_dispose):
* plugins/project-wizard/plugin.c (npw_plugin_dispose),
(npw_plugin_finalize), (npw_plugin_class_init):
* plugins/sample1/plugin.c (sample_plugin_finalize),
(sample_plugin_dispose):
* plugins/search/plugin.c (dispose), (finalize),
(search_plugin_class_init):
* plugins/sourceview/plugin.c (sourceview_plugin_finalize),
(sourceview_plugin_dispose):
* plugins/subversion/plugin.c (finalize), (dispose):
* plugins/symbol-browser/an_symbol.c (anjuta_symbol_finalize):
* plugins/symbol-browser/an_symbol_iter.c
(anjuta_symbol_iter_finalize), (anjuta_symbol_iter_dispose):
* plugins/symbol-browser/an_symbol_search.c
(an_symbol_search_dispose), (an_symbol_search_finalize):
* plugins/symbol-browser/an_symbol_view.c
(anjuta_symbol_view_finalize), (anjuta_symbol_view_dispose):
* plugins/symbol-browser/plugin.c (dispose), (finalize):
* plugins/symbol-db/plugin.c (symbol_db_finalize),
(symbol_db_dispose):
* plugins/terminal/terminal.c (terminal_plugin_dispose),
(terminal_plugin_finalize):
* plugins/tools/plugin.c (atp_plugin_dispose),
(atp_plugin_finalize), (atp_plugin_class_init):
* plugins/valgrind/plugin.c (valgrind_finalize),
(valgrind_dispose): Removed all GNOME_CALL* calls in plugins.
Modified:
trunk/ChangeLog
trunk/plugins/build-basic-autotools/build-basic-autotools.c
trunk/plugins/class-gen/plugin.c
trunk/plugins/class-inheritance/plugin.c
trunk/plugins/cvs-plugin/plugin.c
trunk/plugins/debug-manager/plugin.c
trunk/plugins/debug-manager/queue.c
trunk/plugins/devhelp/plugin.c
trunk/plugins/document-manager/anjuta-docman.c
trunk/plugins/document-manager/plugin.c
trunk/plugins/editor/plugin.c
trunk/plugins/editor/text_editor.c
trunk/plugins/file-loader/plugin.c
trunk/plugins/file-manager/plugin.c
trunk/plugins/file-wizard/plugin.c
trunk/plugins/gdb/debugger.c
trunk/plugins/gdb/plugin.c
trunk/plugins/glade/plugin.c
trunk/plugins/gtodo/plugin.c
trunk/plugins/gvim/plugin.c
trunk/plugins/indent/plugin.c
trunk/plugins/language-manager/plugin.c
trunk/plugins/language-support-cpp-java/plugin.c
trunk/plugins/macro/macro-db.c
trunk/plugins/macro/macro-dialog.c
trunk/plugins/macro/macro-edit.c
trunk/plugins/macro/plugin.c
trunk/plugins/message-view/anjuta-msgman.c
trunk/plugins/message-view/message-view.c
trunk/plugins/message-view/plugin.c
trunk/plugins/patch/plugin.c
trunk/plugins/profiler/plugin.c
trunk/plugins/project-import/plugin.c
trunk/plugins/project-manager/plugin.c
trunk/plugins/project-wizard/plugin.c
trunk/plugins/sample1/plugin.c
trunk/plugins/search/plugin.c
trunk/plugins/sourceview/plugin.c
trunk/plugins/subversion/plugin.c
trunk/plugins/symbol-browser/an_symbol.c
trunk/plugins/symbol-browser/an_symbol_iter.c
trunk/plugins/symbol-browser/an_symbol_search.c
trunk/plugins/symbol-browser/an_symbol_view.c
trunk/plugins/symbol-browser/plugin.c
trunk/plugins/symbol-db/plugin.c
trunk/plugins/terminal/terminal.c
trunk/plugins/tools/plugin.c
trunk/plugins/valgrind/plugin.c
Modified: trunk/plugins/build-basic-autotools/build-basic-autotools.c
==============================================================================
--- trunk/plugins/build-basic-autotools/build-basic-autotools.c (original)
+++ trunk/plugins/build-basic-autotools/build-basic-autotools.c Sat Mar 15 10:13:56 2008
@@ -2134,7 +2134,7 @@
static void
dispose (GObject *obj)
{
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT(obj)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
@@ -2163,7 +2163,7 @@
ba_plugin->program_args = NULL;
ba_plugin->configure_args = NULL;
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (G_OBJECT(obj)));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
Modified: trunk/plugins/class-gen/plugin.c
==============================================================================
--- trunk/plugins/class-gen/plugin.c (original)
+++ trunk/plugins/class-gen/plugin.c Sat Mar 15 10:13:56 2008
@@ -20,7 +20,7 @@
#include <config.h>
#include <gtk/gtkactiongroup.h>
#include <libgnomevfs/gnome-vfs-utils.h>
-#include <libgnome/gnome-i18n.h>
+#include <glib/gi18n.h>
#include <libanjuta/anjuta-preferences.h>
#include <libanjuta/anjuta-debug.h>
#include <libanjuta/interfaces/ianjuta-wizard.h>
@@ -128,7 +128,7 @@
static void
dispose (GObject *obj)
{
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
@@ -143,7 +143,7 @@
if(cg_plugin->generator != NULL)
g_object_unref(G_OBJECT(cg_plugin->generator));
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
Modified: trunk/plugins/class-inheritance/plugin.c
==============================================================================
--- trunk/plugins/class-inheritance/plugin.c (original)
+++ trunk/plugins/class-inheritance/plugin.c Sat Mar 15 10:13:56 2008
@@ -24,7 +24,7 @@
#include <config.h>
#include <libanjuta/anjuta-shell.h>
#include <libgnomevfs/gnome-vfs-utils.h>
-#include <libgnome/gnome-i18n.h>
+#include <glib/gi18n.h>
#include <libanjuta/interfaces/ianjuta-document-manager.h>
#include <libanjuta/interfaces/ianjuta-project-manager.h>
#include <libanjuta/anjuta-debug.h>
@@ -169,14 +169,14 @@
g_free (ci_plugin->top_dir);
/* Finalization codes here */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
class_inheritance_dispose (GObject *obj)
{
/* Disposition codes */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/cvs-plugin/plugin.c
==============================================================================
--- trunk/plugins/cvs-plugin/plugin.c (original)
+++ trunk/plugins/cvs-plugin/plugin.c Sat Mar 15 10:13:56 2008
@@ -406,14 +406,14 @@
finalize (GObject *obj)
{
// CVSPlugin *plugin = ANJUTA_PLUGIN_CVS (obj);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (G_OBJECT(obj)));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
dispose (GObject *obj)
{
// CVSPlugin *plugin = ANJUTA_PLUGIN_CVS (obj);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT(obj)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/debug-manager/plugin.c
==============================================================================
--- trunk/plugins/debug-manager/plugin.c (original)
+++ trunk/plugins/debug-manager/plugin.c Sat Mar 15 10:13:56 2008
@@ -1283,7 +1283,7 @@
static void
dma_plugin_dispose (GObject* obj)
{
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT (obj)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
/* finalize is the last destruction step. It must free all memory allocated
@@ -1304,7 +1304,7 @@
g_object_remove_weak_pointer (G_OBJECT (self->current_editor), (gpointer *)(gpointer)&self->current_editor);
}
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (G_OBJECT (obj)));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
/* class_init intialize the class itself not the instance */
Modified: trunk/plugins/debug-manager/queue.c
==============================================================================
--- trunk/plugins/debug-manager/queue.c (original)
+++ trunk/plugins/debug-manager/queue.c Sat Mar 15 10:13:56 2008
@@ -898,7 +898,7 @@
dma_debugger_queue_clear (self);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
/* finalize is the last destruction step. It must free all memory allocated
@@ -912,7 +912,7 @@
g_queue_free (self->queue);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
/* instance_init is the constructor. All functions should work after this
Modified: trunk/plugins/devhelp/plugin.c
==============================================================================
--- trunk/plugins/devhelp/plugin.c (original)
+++ trunk/plugins/devhelp/plugin.c Sat Mar 15 10:13:56 2008
@@ -457,7 +457,7 @@
/* Finalization codes here */
AnjutaDevhelp *plugin = ANJUTA_PLUGIN_DEVHELP (obj);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
@@ -469,7 +469,7 @@
// g_object_unref(G_OBJECT(devhelp->base));
/* Disposition codes */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
#endif
Modified: trunk/plugins/document-manager/anjuta-docman.c
==============================================================================
--- trunk/plugins/document-manager/anjuta-docman.c (original)
+++ trunk/plugins/document-manager/anjuta-docman.c Sat Mar 15 10:13:56 2008
@@ -610,7 +610,7 @@
}
g_list_free (pages);
}
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT(obj)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
@@ -627,7 +627,7 @@
g_free (docman->priv);
docman->priv = NULL;
}
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (G_OBJECT(obj)));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
Modified: trunk/plugins/document-manager/plugin.c
==============================================================================
--- trunk/plugins/document-manager/plugin.c (original)
+++ trunk/plugins/document-manager/plugin.c Sat Mar 15 10:13:56 2008
@@ -1819,7 +1819,14 @@
dispose (GObject *obj)
{
// DocmanPlugin *eplugin = ANJUTA_PLUGIN_DOCMAN (obj);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
+}
+
+static void
+finalize (GObject *obj)
+{
+ /* Finalization codes here */
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
@@ -1842,6 +1849,7 @@
plugin_class->activate = activate_plugin;
plugin_class->deactivate = deactivate_plugin;
klass->dispose = dispose;
+ klass->finalize = finalize;
}
/* Implement IAnjutaDocumentManager interfaces */
Modified: trunk/plugins/editor/plugin.c
==============================================================================
--- trunk/plugins/editor/plugin.c (original)
+++ trunk/plugins/editor/plugin.c Sat Mar 15 10:13:56 2008
@@ -67,7 +67,14 @@
{
/* EditorPlugin *eplugin = ANJUTA_PLUGIN_EDITOR (obj); */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
+}
+
+static void
+finalize (GObject *obj)
+{
+ /* Finalization codes here */
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
@@ -86,6 +93,7 @@
plugin_class->activate = activate_plugin;
plugin_class->deactivate = deactivate_plugin;
klass->dispose = dispose;
+ klass->finalize = finalize;
}
static IAnjutaEditor*
Modified: trunk/plugins/editor/text_editor.c
==============================================================================
--- trunk/plugins/editor/text_editor.c (original)
+++ trunk/plugins/editor/text_editor.c Sat Mar 15 10:13:56 2008
@@ -538,7 +538,7 @@
text_editor_prefs_finalize (te);
te->gconf_notify_ids = NULL;
}
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT(te)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
void
@@ -551,7 +551,7 @@
g_free (te->force_hilite);
g_free (te->last_saved_content);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (G_OBJECT(te)));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
void
Modified: trunk/plugins/file-loader/plugin.c
==============================================================================
--- trunk/plugins/file-loader/plugin.c (original)
+++ trunk/plugins/file-loader/plugin.c Sat Mar 15 10:13:56 2008
@@ -1221,7 +1221,14 @@
g_object_unref (plugin->recent_files_model_bottom);
plugin->recent_files_model_bottom = NULL;
}
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
+}
+
+static void
+finalize (GObject *obj)
+{
+ /* Finalization codes here */
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
@@ -1254,6 +1261,7 @@
plugin_class->activate = activate_plugin;
plugin_class->deactivate = deactivate_plugin;
klass->dispose = dispose;
+ klass->finalize = finalize;
}
static GObject*
Modified: trunk/plugins/file-manager/plugin.c
==============================================================================
--- trunk/plugins/file-manager/plugin.c (original)
+++ trunk/plugins/file-manager/plugin.c Sat Mar 15 10:13:56 2008
@@ -286,14 +286,14 @@
g_list_free(plugin->gconf_notify_ids);
/* Finalization codes here */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
file_manager_dispose (GObject *obj)
{
/* Disposition codes */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/file-wizard/plugin.c
==============================================================================
--- trunk/plugins/file-wizard/plugin.c (original)
+++ trunk/plugins/file-wizard/plugin.c Sat Mar 15 10:13:56 2008
@@ -20,7 +20,7 @@
#include <config.h>
#include <gtk/gtkactiongroup.h>
-#include <libgnome/gnome-i18n.h>
+#include <glib/gi18n.h>
#include <libgnomevfs/gnome-vfs-utils.h>
#include <libanjuta/anjuta-debug.h>
#include <libanjuta/interfaces/ianjuta-document-manager.h>
@@ -100,7 +100,14 @@
static void
dispose (GObject *obj)
{
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
+}
+
+static void
+finalize (GObject *obj)
+{
+ /* Finalization codes here */
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
@@ -120,6 +127,7 @@
plugin_class->activate = activate_plugin;
plugin_class->deactivate = deactivate_plugin;
klass->dispose = dispose;
+ klass->finalize = finalize;
}
static void
Modified: trunk/plugins/gdb/debugger.c
==============================================================================
--- trunk/plugins/gdb/debugger.c (original)
+++ trunk/plugins/gdb/debugger.c Sat Mar 15 10:13:56 2008
@@ -3724,7 +3724,7 @@
debugger->priv->launcher = NULL;
}
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
@@ -3735,7 +3735,7 @@
g_string_free (debugger->priv->stdo_acc, TRUE);
g_string_free (debugger->priv->stde_line, TRUE);
g_free (debugger->priv);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
Modified: trunk/plugins/gdb/plugin.c
==============================================================================
--- trunk/plugins/gdb/plugin.c (original)
+++ trunk/plugins/gdb/plugin.c Sat Mar 15 10:13:56 2008
@@ -253,7 +253,7 @@
debugger_free (this->debugger);
this->debugger = NULL;
}
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT (obj)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
/* finalize is the last destruction step. It must free all memory allocated
@@ -263,7 +263,7 @@
static void
gdb_plugin_finalize (GObject* obj)
{
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (G_OBJECT (obj)));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
/* class_init intialize the class itself not the instance */
Modified: trunk/plugins/glade/plugin.c
==============================================================================
--- trunk/plugins/glade/plugin.c (original)
+++ trunk/plugins/glade/plugin.c Sat Mar 15 10:13:56 2008
@@ -582,7 +582,7 @@
/* GladePlugin *plugin = ANJUTA_PLUGIN_GLADE (obj); */
/* FIXME: Glade widgets should be destroyed */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
@@ -590,7 +590,7 @@
{
GladePlugin *plugin = ANJUTA_PLUGIN_GLADE (obj);
g_free (plugin->priv);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
@@ -616,7 +616,7 @@
plugin_class->activate = activate_plugin;
plugin_class->deactivate = deactivate_plugin;
klass->dispose = glade_plugin_dispose;
- klass->dispose = glade_plugin_finalize;
+ klass->finalize = glade_plugin_finalize;
}
gchar* glade_get_filename(GladePlugin *plugin)
Modified: trunk/plugins/gtodo/plugin.c
==============================================================================
--- trunk/plugins/gtodo/plugin.c (original)
+++ trunk/plugins/gtodo/plugin.c Sat Mar 15 10:13:56 2008
@@ -226,13 +226,13 @@
static void
finalize (GObject *obj)
{
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
dispose (GObject *obj)
{
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/gvim/plugin.c
==============================================================================
--- trunk/plugins/gvim/plugin.c (original)
+++ trunk/plugins/gvim/plugin.c Sat Mar 15 10:13:56 2008
@@ -51,14 +51,14 @@
static void
anjuta_vim_plugin_finalize (GObject *obj)
{
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
anjuta_vim_plugin_dispose (GObject *obj)
{
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/indent/plugin.c
==============================================================================
--- trunk/plugins/indent/plugin.c (original)
+++ trunk/plugins/indent/plugin.c Sat Mar 15 10:13:56 2008
@@ -282,14 +282,14 @@
indent_plugin_finalize (GObject *obj)
{
/* Finalization codes here */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
indent_plugin_dispose (GObject *obj)
{
/* Disposition codes */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/language-manager/plugin.c
==============================================================================
--- trunk/plugins/language-manager/plugin.c (original)
+++ trunk/plugins/language-manager/plugin.c Sat Mar 15 10:13:56 2008
@@ -155,7 +155,7 @@
language_manager_finalize (GObject *obj)
{
/* Finalization codes here */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
@@ -165,7 +165,7 @@
LanguageManager* lang = LANGUAGE_MANAGER (obj);
g_hash_table_unref (lang->languages);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/language-support-cpp-java/plugin.c
==============================================================================
--- trunk/plugins/language-support-cpp-java/plugin.c (original)
+++ trunk/plugins/language-support-cpp-java/plugin.c Sat Mar 15 10:13:56 2008
@@ -1811,14 +1811,14 @@
/* CppJavaPlugin* plugin = ANJUTA_PLUGIN_CPP_JAVA (obj); */
/* Finalization codes here */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
cpp_java_plugin_dispose (GObject *obj)
{
/* Disposition codes */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/macro/macro-db.c
==============================================================================
--- trunk/plugins/macro/macro-db.c (original)
+++ trunk/plugins/macro/macro-db.c Sat Mar 15 10:13:56 2008
@@ -218,7 +218,15 @@
{
DEBUG_PRINT ("Disposing MacroDB");
macro_db_save (MACRO_DB (db));
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT (db)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
+}
+
+static void
+macro_db_finalize (GObject * db)
+{
+ DEBUG_PRINT ("Disposing MacroDB");
+ macro_db_save (MACRO_DB (db));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
@@ -227,6 +235,7 @@
GObjectClass *object_class = G_OBJECT_CLASS (klass);
parent_class = g_type_class_peek_parent (klass);
object_class->dispose = macro_db_dispose;
+ object_class->finalize = macro_db_finalize;
}
static void
Modified: trunk/plugins/macro/macro-dialog.c
==============================================================================
--- trunk/plugins/macro/macro-dialog.c (original)
+++ trunk/plugins/macro/macro-dialog.c Sat Mar 15 10:13:56 2008
@@ -232,7 +232,13 @@
g_object_unref (dialog->macro_db);
dialog->macro_db = NULL;
}
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT (object)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
+}
+
+static void
+macro_dialog_finalize (GObject *object)
+{
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
@@ -241,6 +247,7 @@
GObjectClass *object_class = G_OBJECT_CLASS (klass);
parent_class = g_type_class_peek_parent (klass);
object_class->dispose = macro_dialog_dispose;
+ object_class->finalize = macro_dialog_finalize;
}
static void
Modified: trunk/plugins/macro/macro-edit.c
==============================================================================
--- trunk/plugins/macro/macro-edit.c (original)
+++ trunk/plugins/macro/macro-edit.c Sat Mar 15 10:13:56 2008
@@ -168,7 +168,15 @@
{
//MacroEdit *medit = MACRO_EDIT (edit);
//g_object_unref(medit->gxml);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT (edit)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
+}
+
+static void
+macro_edit_finalize (GObject * edit)
+{
+ //MacroEdit *medit = MACRO_EDIT (edit);
+ //g_object_unref(medit->gxml);
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
@@ -177,6 +185,7 @@
GObjectClass *object_class = G_OBJECT_CLASS (klass);
parent_class = g_type_class_peek_parent (klass);
object_class->dispose = macro_edit_dispose;
+ object_class->finalize = macro_edit_finalize;
}
static void
Modified: trunk/plugins/macro/plugin.c
==============================================================================
--- trunk/plugins/macro/plugin.c (original)
+++ trunk/plugins/macro/plugin.c Sat Mar 15 10:13:56 2008
@@ -147,7 +147,7 @@
static void
finalize (GObject * obj)
{
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (G_OBJECT (obj)));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
@@ -157,7 +157,7 @@
if (plugin->macro_dialog != NULL)
g_object_unref (plugin->macro_dialog);
g_object_unref(plugin->macro_db);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT (obj)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/message-view/anjuta-msgman.c
==============================================================================
--- trunk/plugins/message-view/anjuta-msgman.c (original)
+++ trunk/plugins/message-view/anjuta-msgman.c Sat Mar 15 10:13:56 2008
@@ -182,7 +182,7 @@
{
anjuta_msgman_remove_all_views (msgman);
}
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT(obj)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
@@ -195,7 +195,7 @@
g_free (msgman->priv);
msgman->priv = NULL;
}
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (G_OBJECT(obj)));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
Modified: trunk/plugins/message-view/message-view.c
==============================================================================
--- trunk/plugins/message-view/message-view.c (original)
+++ trunk/plugins/message-view/message-view.c Sat Mar 15 10:13:56 2008
@@ -668,7 +668,7 @@
{
mview->privat->tree_view = NULL;
}
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT(obj)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
@@ -679,7 +679,7 @@
g_free (mview->privat->label);
g_free (mview->privat->pixmap);
g_free (mview->privat);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (G_OBJECT(obj)));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
Modified: trunk/plugins/message-view/plugin.c
==============================================================================
--- trunk/plugins/message-view/plugin.c (original)
+++ trunk/plugins/message-view/plugin.c Sat Mar 15 10:13:56 2008
@@ -260,14 +260,14 @@
message_view_plugin_dispose (GObject *obj)
{
// MessageViewPlugin *plugin = ANJUTA_PLUGIN_MESSAGE_VIEW (obj);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
message_view_plugin_finalize (GObject *obj)
{
// MessageViewPlugin *plugin = ANJUTA_PLUGIN_MESSAGE_VIEW (obj);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
Modified: trunk/plugins/patch/plugin.c
==============================================================================
--- trunk/plugins/patch/plugin.c (original)
+++ trunk/plugins/patch/plugin.c Sat Mar 15 10:13:56 2008
@@ -122,14 +122,14 @@
PatchPlugin *p_plugin;
p_plugin = ANJUTA_PLUGIN_PATCH (obj);
/*/
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
patch_plugin_dispose (GObject *obj)
{
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
Modified: trunk/plugins/profiler/plugin.c
==============================================================================
--- trunk/plugins/profiler/plugin.c (original)
+++ trunk/plugins/profiler/plugin.c Sat Mar 15 10:13:56 2008
@@ -918,14 +918,14 @@
profiler_finalize (GObject *obj)
{
/* Finalization codes here */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
profiler_dispose (GObject *obj)
{
/* Disposition codes */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/project-import/plugin.c
==============================================================================
--- trunk/plugins/project-import/plugin.c (original)
+++ trunk/plugins/project-import/plugin.c Sat Mar 15 10:13:56 2008
@@ -20,7 +20,7 @@
#include <config.h>
#include <gtk/gtkactiongroup.h>
-#include <libgnome/gnome-i18n.h>
+#include <glib/gi18n.h>
#include <libanjuta/anjuta-debug.h>
#include <libanjuta/interfaces/ianjuta-wizard.h>
#include <libanjuta/interfaces/ianjuta-file.h>
@@ -56,7 +56,13 @@
static void
dispose (GObject *obj)
{
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
+}
+
+static void
+finalize (GObject *obj)
+{
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
@@ -75,6 +81,7 @@
plugin_class->activate = activate_plugin;
plugin_class->deactivate = deactivate_plugin;
klass->dispose = dispose;
+ klass->finalize = finalize;
}
static void
Modified: trunk/plugins/project-manager/plugin.c
==============================================================================
--- trunk/plugins/project-manager/plugin.c (original)
+++ trunk/plugins/project-manager/plugin.c Sat Mar 15 10:13:56 2008
@@ -1524,14 +1524,14 @@
project_manager_plugin_finalize (GObject *obj)
{
/* FIXME: */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
project_manager_plugin_dispose (GObject *obj)
{
/* FIXME: */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/project-wizard/plugin.c
==============================================================================
--- trunk/plugins/project-wizard/plugin.c (original)
+++ trunk/plugins/project-wizard/plugin.c Sat Mar 15 10:13:56 2008
@@ -62,7 +62,13 @@
this->view = NULL;
}
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT (obj)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
+}
+
+static void
+npw_plugin_finalize (GObject *obj)
+{
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
/* finalize used to free object created with instance init is not used */
@@ -91,6 +97,7 @@
plugin_class->activate = npw_plugin_activate;
plugin_class->deactivate = npw_plugin_deactivate;
klass->dispose = npw_plugin_dispose;
+ klass->finalize = npw_plugin_finalize;
}
static void
Modified: trunk/plugins/sample1/plugin.c
==============================================================================
--- trunk/plugins/sample1/plugin.c (original)
+++ trunk/plugins/sample1/plugin.c Sat Mar 15 10:13:56 2008
@@ -102,14 +102,14 @@
sample_plugin_finalize (GObject *obj)
{
/* Finalization codes here */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
sample_plugin_dispose (GObject *obj)
{
/* Disposition codes */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/search/plugin.c
==============================================================================
--- trunk/plugins/search/plugin.c (original)
+++ trunk/plugins/search/plugin.c Sat Mar 15 10:13:56 2008
@@ -269,7 +269,15 @@
{
//SearchPlugin *plugin = ANJUTA_PLUGIN_SEARCH (obj);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
+}
+
+static void
+finalize (GObject *obj)
+{
+ //SearchPlugin *plugin = ANJUTA_PLUGIN_SEARCH (obj);
+
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
@@ -288,6 +296,7 @@
plugin_class->activate = activate_plugin;
plugin_class->deactivate = deactivate_plugin;
klass->dispose = dispose;
+ klass->finalize = finalize;
}
ANJUTA_PLUGIN_BEGIN (SearchPlugin, search_plugin);
ANJUTA_PLUGIN_END;
Modified: trunk/plugins/sourceview/plugin.c
==============================================================================
--- trunk/plugins/sourceview/plugin.c (original)
+++ trunk/plugins/sourceview/plugin.c Sat Mar 15 10:13:56 2008
@@ -96,14 +96,14 @@
sourceview_plugin_finalize (GObject *obj)
{
/* Finalization codes here */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
sourceview_plugin_dispose (GObject *obj)
{
/* Disposition codes */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/subversion/plugin.c
==============================================================================
--- trunk/plugins/subversion/plugin.c (original)
+++ trunk/plugins/subversion/plugin.c Sat Mar 15 10:13:56 2008
@@ -527,14 +527,14 @@
finalize (GObject *obj)
{
apr_terminate ();
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (G_OBJECT(obj)));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
dispose (GObject *obj)
{
// Subversion *plugin = ANJUTA_PLUGIN_SUBVERSION (obj);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT(obj)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/symbol-browser/an_symbol.c
==============================================================================
--- trunk/plugins/symbol-browser/an_symbol.c (original)
+++ trunk/plugins/symbol-browser/an_symbol.c Sat Mar 15 10:13:56 2008
@@ -44,7 +44,7 @@
if (s->priv->uri)
g_free (s->priv->uri);
g_free (s->priv);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
Modified: trunk/plugins/symbol-browser/an_symbol_iter.c
==============================================================================
--- trunk/plugins/symbol-browser/an_symbol_iter.c (original)
+++ trunk/plugins/symbol-browser/an_symbol_iter.c Sat Mar 15 10:13:56 2008
@@ -45,14 +45,14 @@
AnjutaSymbolIter *si = ANJUTA_SYMBOL_ITER (obj);
g_free (si->priv);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
anjuta_symbol_iter_dispose (GObject * obj)
{
/* AnjutaSymbolIter *si = ANJUTA_SYMBOL_ITER (obj); */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/symbol-browser/an_symbol_search.c
==============================================================================
--- trunk/plugins/symbol-browser/an_symbol_search.c (original)
+++ trunk/plugins/symbol-browser/an_symbol_search.c Sat Mar 15 10:13:56 2008
@@ -34,7 +34,7 @@
#include <gtk/gtkscrolledwindow.h>
#include <gtk/gtktreeview.h>
#include <gtk/gtktreeselection.h>
-#include <libgnome/gnome-i18n.h>
+#include <glib/gi18n.h>
#include <libanjuta/anjuta-debug.h>
#include "an_symbol_search.h"
@@ -132,7 +132,7 @@
if (priv->hitlist)
priv->hitlist = NULL;
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
/*---------------------------------------------------------------------------*/
@@ -148,7 +148,7 @@
g_completion_free (priv->completion);
g_free (priv);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
/*-----------------------------------------------------------------------------
Modified: trunk/plugins/symbol-browser/an_symbol_view.c
==============================================================================
--- trunk/plugins/symbol-browser/an_symbol_view.c (original)
+++ trunk/plugins/symbol-browser/an_symbol_view.c Sat Mar 15 10:13:56 2008
@@ -29,7 +29,7 @@
#include <ctype.h>
#include <regex.h>
#include <libgnomeui/gnome-stock-icons.h>
-#include <libgnome/gnome-i18n.h>
+#include <glib/gi18n.h>
#include <libgnome/gnome-macros.h>
#include <libgnomevfs/gnome-vfs-utils.h>
#include <libanjuta/anjuta-utils.h>
@@ -966,7 +966,7 @@
g_hash_table_destroy (sv->priv->tm_files);
tm_workspace_free ((gpointer) sv->priv->tm_workspace);
g_free (sv->priv);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
@@ -978,7 +978,7 @@
/* All file symbol refs would be freed when the hash table is distroyed */
sv->priv->file_symbol_model = NULL;
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
/* Anjuta symbol view class */
Modified: trunk/plugins/symbol-browser/plugin.c
==============================================================================
--- trunk/plugins/symbol-browser/plugin.c (original)
+++ trunk/plugins/symbol-browser/plugin.c Sat Mar 15 10:13:56 2008
@@ -1090,14 +1090,14 @@
(gpointer)&sv_plugin->ss);
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
finalize (GObject *obj)
{
/* SymbolBrowserPlugin *plugin = ANJUTA_PLUGIN_SYMBOL_BROWSER (obj); */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
Modified: trunk/plugins/symbol-db/plugin.c
==============================================================================
--- trunk/plugins/symbol-db/plugin.c (original)
+++ trunk/plugins/symbol-db/plugin.c Sat Mar 15 10:13:56 2008
@@ -1170,14 +1170,14 @@
{
DEBUG_PRINT ("Symbol-DB finalize");
/* Finalization codes here */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
symbol_db_dispose (GObject *obj)
{
/* Disposition codes */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
Modified: trunk/plugins/terminal/terminal.c
==============================================================================
--- trunk/plugins/terminal/terminal.c (original)
+++ trunk/plugins/terminal/terminal.c Sat Mar 15 10:13:56 2008
@@ -648,13 +648,13 @@
static void
terminal_plugin_dispose (GObject *obj)
{
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
terminal_plugin_finalize (GObject *obj)
{
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
Modified: trunk/plugins/tools/plugin.c
==============================================================================
--- trunk/plugins/tools/plugin.c (original)
+++ trunk/plugins/tools/plugin.c Sat Mar 15 10:13:56 2008
@@ -164,7 +164,15 @@
{
/* Warning this function could be called several times */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (G_OBJECT (obj)));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
+}
+
+static void
+atp_plugin_finalize (GObject *obj)
+{
+ /* Warning this function could be called several times */
+
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
/* finalize used to free object created with instance init is not used */
@@ -238,6 +246,7 @@
plugin_class->activate = atp_plugin_activate;
plugin_class->deactivate = atp_plugin_deactivate;
klass->dispose = atp_plugin_dispose;
+ klass->finalize = atp_plugin_finalize;
}
ANJUTA_PLUGIN_BOILERPLATE (ATPPlugin, atp_plugin);
Modified: trunk/plugins/valgrind/plugin.c
==============================================================================
--- trunk/plugins/valgrind/plugin.c (original)
+++ trunk/plugins/valgrind/plugin.c Sat Mar 15 10:13:56 2008
@@ -23,7 +23,7 @@
#include <config.h>
#include <libgnomevfs/gnome-vfs-utils.h>
-#include <libgnome/gnome-i18n.h>
+#include <glib/gi18n.h>
#include <libgnomevfs/gnome-vfs.h>
#include <libgnome/gnome-util.h>
#include <libgnomeui/gnome-about.h>
@@ -613,14 +613,14 @@
valgrind_finalize (GObject *obj)
{
/* Finalization codes here */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (obj));
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void
valgrind_dispose (GObject *obj)
{
/* Disposition codes */
- GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]