[gtk+] Initialize device_cursor hash table before creating impl window
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Initialize device_cursor hash table before creating impl window
- Date: Thu, 14 Oct 2010 16:02:56 +0000 (UTC)
commit 5cbb309841536b23646e554a44a8a434c242bf1d
Author: Kristian Rietveld <kris gtk org>
Date: Thu Oct 14 18:01:51 2010 +0200
Initialize device_cursor hash table before creating impl window
gdk/gdkwindow.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 46539ea..e1e8be6 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1429,6 +1429,9 @@ gdk_window_new (GdkWindow *parent,
if (private->parent)
private->parent->children = g_list_prepend (private->parent->children, window);
+ private->device_cursor = g_hash_table_new_full (NULL, NULL, NULL,
+ (GDestroyNotify) gdk_cursor_unref);
+
native = _gdk_native_windows; /* Default */
if (private->parent->window_type == GDK_WINDOW_ROOT)
native = TRUE; /* Always use native windows for toplevels */
@@ -1467,9 +1470,6 @@ gdk_window_new (GdkWindow *parent,
(attributes->cursor) :
NULL));
- private->device_cursor = g_hash_table_new_full (NULL, NULL, NULL,
- (GDestroyNotify) gdk_cursor_unref);
-
device_manager = gdk_display_get_device_manager (gdk_window_get_display (parent));
g_signal_connect (device_manager, "device-removed",
G_CALLBACK (device_removed_cb), window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]