Commit f5be9388 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

gtk: Don't include private GDK headers

Use the function that exists for this purpose instead.
parent 585c4895
...@@ -66,8 +66,6 @@ ...@@ -66,8 +66,6 @@
#include "gtkmenu.h" #include "gtkmenu.h"
#include "gdk/gdkkeysyms.h" #include "gdk/gdkkeysyms.h"
#include "gdk/gdkprivate.h" /* for GDK_WINDOW_DESTROYED */
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
static HMODULE gtk_dll; static HMODULE gtk_dll;
...@@ -2383,7 +2381,7 @@ gtk_get_event_widget (GdkEvent *event) ...@@ -2383,7 +2381,7 @@ gtk_get_event_widget (GdkEvent *event)
widget = NULL; widget = NULL;
if (event && event->any.window && if (event && event->any.window &&
(event->type == GDK_DESTROY || !GDK_WINDOW_DESTROYED (event->any.window))) (event->type == GDK_DESTROY || !gdk_window_is_destroyed (event->any.window)))
{ {
gdk_window_get_user_data (event->any.window, &widget_ptr); gdk_window_get_user_data (event->any.window, &widget_ptr);
widget = widget_ptr; widget = widget_ptr;
......
Supports Markdown
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