[gtk+] viewport: Don't unset the adjustment on finalize
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] viewport: Don't unset the adjustment on finalize
- Date: Wed, 16 Nov 2011 23:50:05 +0000 (UTC)
commit 0ef224766a711cc510d158cbeeb245a3526d66ac
Author: Benjamin Otte <otte redhat com>
Date: Thu Nov 17 00:20:09 2011 +0100
viewport: Don't unset the adjustment on finalize
We unset it on destroy already. This makes it consistent with all other
scrollables.
gtk/gtkviewport.c | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index 2d3e6dd..226f3bf 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -82,7 +82,6 @@ enum {
};
-static void gtk_viewport_finalize (GObject *object);
static void gtk_viewport_set_property (GObject *object,
guint prop_id,
const GValue *value,
@@ -126,7 +125,6 @@ gtk_viewport_class_init (GtkViewportClass *class)
widget_class = (GtkWidgetClass*) class;
container_class = (GtkContainerClass*) class;
- gobject_class->finalize = gtk_viewport_finalize;
gobject_class->set_property = gtk_viewport_set_property;
gobject_class->get_property = gtk_viewport_get_property;
@@ -294,17 +292,6 @@ viewport_disconnect_adjustment (GtkViewport *viewport,
}
static void
-gtk_viewport_finalize (GObject *object)
-{
- GtkViewport *viewport = GTK_VIEWPORT (object);
-
- viewport_disconnect_adjustment (viewport, GTK_ORIENTATION_HORIZONTAL);
- viewport_disconnect_adjustment (viewport, GTK_ORIENTATION_VERTICAL);
-
- G_OBJECT_CLASS (gtk_viewport_parent_class)->finalize (object);
-}
-
-static void
gtk_viewport_destroy (GtkWidget *widget)
{
GtkViewport *viewport = GTK_VIEWPORT (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]