[glade3] * gladeui/glade-clipboard.h, gladeui/glade-app.c: Removed clipboard->view member and make GladeA
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade3] * gladeui/glade-clipboard.h, gladeui/glade-app.c: Removed clipboard->view member and make GladeA
- Date: Sat, 1 Jan 2011 15:59:38 +0000 (UTC)
commit d324ec80127afab308a20c0504f40506c130cd41
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sun Jan 2 01:06:14 2011 +0900
* gladeui/glade-clipboard.h, gladeui/glade-app.c: Removed clipboard->view member and
make GladeApp properly destroy the clipboard when disposing.
ChangeLog | 3 +++
gladeui/glade-app.c | 2 +-
gladeui/glade-clipboard.h | 1 -
3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4059616..6f96c40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -24,6 +24,9 @@
Completely removed GladeParameter, a legacy unused mechanism to store parameters in
the glade catalog for later retrieval from the plugin.
+ * gladeui/glade-clipboard.h, gladeui/glade-app.c: Removed clipboard->view member and
+ make GladeApp properly destroy the clipboard when disposing.
+
2010-12-31 Tristan Van Berkom <tristanvb openismus com>
* gladeui/glade-project.c: Further fixing project dispose cycle, still leaking a little
diff --git a/gladeui/glade-app.c b/gladeui/glade-app.c
index 2ac9a50..1b8fbe4 100644
--- a/gladeui/glade-app.c
+++ b/gladeui/glade-app.c
@@ -177,7 +177,7 @@ glade_app_dispose (GObject * app)
}
if (priv->clipboard)
{
- gtk_widget_destroy (GTK_WIDGET (priv->clipboard->view));
+ g_object_unref (priv->clipboard);
priv->clipboard = NULL;
}
/* FIXME: Remove projects */
diff --git a/gladeui/glade-clipboard.h b/gladeui/glade-clipboard.h
index 21371d4..ec39102 100644
--- a/gladeui/glade-clipboard.h
+++ b/gladeui/glade-clipboard.h
@@ -19,7 +19,6 @@ struct _GladeClipboard
GList *widgets; /* A list of GladeWidget's on the clipboard */
GList *selection; /* Selection list of GladeWidget's */
gboolean has_selection; /* TRUE if clipboard has selection */
- GtkWidget *view; /* see glade-clipboard-view.c */
};
struct _GladeClipboardClass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]