Commit 60c1dbd3 authored by Matthias Clasen's avatar Matthias Clasen

gdk window: Remove an unneeded variable

The G_DEFINE_TYPE macros automate the parent_class handling.
parent e559a310
......@@ -196,7 +196,6 @@ static void draw_ugly_color (GdkWindow *window,
static guint signals[LAST_SIGNAL] = { 0 };
static gpointer parent_class = NULL;
G_DEFINE_ABSTRACT_TYPE (GdkWindow, gdk_window, G_TYPE_OBJECT)
......@@ -291,8 +290,6 @@ gdk_window_class_init (GdkWindowClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
parent_class = g_type_class_peek_parent (klass);
object_class->finalize = gdk_window_finalize;
object_class->set_property = gdk_window_set_property;
object_class->get_property = gdk_window_get_property;
......@@ -510,7 +507,7 @@ gdk_window_finalize (GObject *object)
if (window->devices_inside)
g_list_free (window->devices_inside);
G_OBJECT_CLASS (parent_class)->finalize (object);
G_OBJECT_CLASS (gdk_window_parent_class)->finalize (object);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment