[gtranslator] Add more debug to finalize/dispose methods.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Add more debug to finalize/dispose methods.
- Date: Wed, 4 May 2011 12:08:54 +0000 (UTC)
commit 8d23ee553d77b6d0b7cda42c5cefcdd6060f366b
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed May 4 14:09:36 2011 +0200
Add more debug to finalize/dispose methods.
src/gtr-context.c | 3 +++
src/gtr-message-table.c | 3 +++
src/translation-memory/gtr-translation-memory-ui.c | 5 +++++
3 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/gtr-context.c b/src/gtr-context.c
index ef7f51a..2019633 100644
--- a/src/gtr-context.c
+++ b/src/gtr-context.c
@@ -21,6 +21,7 @@
#include "gtr-context.h"
#include "gtr-tab.h"
+#include "gtr-debug.h"
#include <glib.h>
#include <glib/gi18n.h>
@@ -449,6 +450,8 @@ gtr_context_panel_dispose (GObject *object)
{
GtrContextPanel *panel = GTR_CONTEXT_PANEL (object);
+ DEBUG_PRINT ("Dispose context");
+
if (panel->priv->hand_cursor != NULL)
{
gdk_cursor_unref (panel->priv->hand_cursor);
diff --git a/src/gtr-message-table.c b/src/gtr-message-table.c
index 157a967..f97b6e1 100644
--- a/src/gtr-message-table.c
+++ b/src/gtr-message-table.c
@@ -30,6 +30,7 @@
#include "gtr-msg.h"
#include "gtr-po.h"
#include "gtr-tab.h"
+#include "gtr-debug.h"
#include <glib.h>
#include <glib/gi18n.h>
@@ -362,6 +363,8 @@ gtr_message_table_init (GtrMessageTable * table)
static void
gtr_message_table_finalize (GObject * object)
{
+ DEBUG_PRINT ("Finalize message table");
+
G_OBJECT_CLASS (gtr_message_table_parent_class)->finalize (object);
}
diff --git a/src/translation-memory/gtr-translation-memory-ui.c b/src/translation-memory/gtr-translation-memory-ui.c
index ae01a70..626e3e3 100644
--- a/src/translation-memory/gtr-translation-memory-ui.c
+++ b/src/translation-memory/gtr-translation-memory-ui.c
@@ -29,6 +29,7 @@
#include "gtr-tab.h"
#include "gtr-utils.h"
#include "gtr-window.h"
+#include "gtr-debug.h"
#include <string.h>
#include <glib.h>
@@ -556,6 +557,8 @@ gtr_translation_memory_ui_dispose (GObject * object)
{
GtrTranslationMemoryUi *tm_ui = GTR_TRANSLATION_MEMORY_UI (object);
+ DEBUG_PRINT ("Dispose translation memory ui");
+
if (tm_ui->priv->msg)
{
g_object_unref (tm_ui->priv->msg);
@@ -570,6 +573,8 @@ gtr_translation_memory_ui_finalize (GObject * object)
{
GtrTranslationMemoryUi *tm_ui = GTR_TRANSLATION_MEMORY_UI (object);
+ DEBUG_PRINT ("Finalize translation memory ui");
+
g_strfreev (tm_ui->priv->tm_list);
G_OBJECT_CLASS (gtr_translation_memory_ui_parent_class)->finalize (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]