[gtk+/gdk-backend] gdk: Make GdkWindow abstract
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend] gdk: Make GdkWindow abstract
- Date: Tue, 21 Dec 2010 02:59:57 +0000 (UTC)
commit c4a36d875235e0bf1e52dbf2fa14d08bfc8bd4ec
Author: Benjamin Otte <otte redhat com>
Date: Tue Dec 21 03:54:15 2010 +0100
gdk: Make GdkWindow abstract
This way backend implementors get an error if they don't set
display_class->window_type to their subclass. And that's exactly what we
want.
gdk/gdkwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 3d75dd0..c1f236a 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -271,7 +271,7 @@ new_region_tag (void)
return ++tag;
}
-G_DEFINE_TYPE (GdkWindow, gdk_window, G_TYPE_OBJECT)
+G_DEFINE_ABSTRACT_TYPE (GdkWindow, gdk_window, G_TYPE_OBJECT)
GType
_gdk_paintable_get_type (void)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]