[gtk+] gtk: Don't include private GDK headers



commit f5be9388408470d2b435d410df73c755f1c53cb9
Author: Benjamin Otte <otte redhat com>
Date:   Thu Nov 25 15:33:01 2010 +0100

    gtk: Don't include private GDK headers
    
    Use the function that exists for this purpose instead.

 gtk/gtkmain.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 9af7503..feb7ee2 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -66,8 +66,6 @@
 #include "gtkmenu.h"
 #include "gdk/gdkkeysyms.h"
 
-#include "gdk/gdkprivate.h" /* for GDK_WINDOW_DESTROYED */
-
 #ifdef G_OS_WIN32
 
 static HMODULE gtk_dll;
@@ -2383,7 +2381,7 @@ gtk_get_event_widget (GdkEvent *event)
 
   widget = NULL;
   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);
       widget = widget_ptr;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]