[rhythmbox] display-page: add a default implementation of delete_thyself (bug #634065)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] display-page: add a default implementation of delete_thyself (bug #634065)
- Date: Fri, 5 Nov 2010 11:26:11 +0000 (UTC)
commit 1a64c4efcb3f20f6204baa735e642ddadd70c654
Author: Ben Walsh <b wumpster com>
Date: Fri Nov 5 11:10:49 2010 +0000
display-page: add a default implementation of delete_thyself (bug #634065)
sources/rb-display-page.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/sources/rb-display-page.c b/sources/rb-display-page.c
index 158cf54..f06c904 100644
--- a/sources/rb-display-page.c
+++ b/sources/rb-display-page.c
@@ -151,9 +151,8 @@ rb_display_page_delete_thyself (RBDisplayPage *page)
page->priv->deleted = TRUE;
klass = RB_DISPLAY_PAGE_GET_CLASS (page);
- if (klass->delete_thyself) {
- klass->delete_thyself (page);
- }
+ klass->delete_thyself (page);
+
g_signal_emit (G_OBJECT (page), signals[DELETED], 0);
}
@@ -547,6 +546,11 @@ impl_set_property (GObject *object, guint prop_id, const GValue *value, GParamSp
}
static void
+impl_delete_thyself (RBDisplayPage *page)
+{
+}
+
+static void
impl_dispose (GObject *object)
{
RBDisplayPage *page;
@@ -599,6 +603,8 @@ rb_display_page_class_init (RBDisplayPageClass *klass)
object_class->set_property = impl_set_property;
object_class->get_property = impl_get_property;
+ klass->delete_thyself = impl_delete_thyself;
+
/**
* RBDisplayPage:shell:
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]