[gedit/wip/3.14-osx: 12/69] [osx] Do not process window events



commit 972935535fe5a3111b0cd5b5592ecb7a8cc1a6cd
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Thu Aug 21 20:56:03 2014 +0200

    [osx] Do not process window events

 gedit/gedit-app-osx.c |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/gedit/gedit-app-osx.c b/gedit/gedit-app-osx.c
index 4420216..6d448c1 100644
--- a/gedit/gedit-app-osx.c
+++ b/gedit/gedit-app-osx.c
@@ -200,25 +200,6 @@ gedit_app_osx_startup (GApplication *application)
        load_keybindings ();
 }
 
-static gboolean
-gedit_app_osx_process_window_event_impl (GeditApp    *app,
-                                         GeditWindow *window,
-                                         GdkEvent    *event)
-{
-       NSEvent *nsevent;
-
-       /* For OS X we will propagate the event to NSApp, which handles some OS X
-        * specific keybindings and the accelerators for the menu
-        */
-       nsevent = gdk_quartz_event_get_nsevent (event);
-       [NSApp sendEvent:nsevent];
-
-       /* It does not really matter what we return here since it's the last thing
-        * in the chain. Also we can't get from sendEvent whether the event was
-        * actually handled by NSApp anyway
-        */
-       return TRUE;
-}
 
 static void
 gedit_app_osx_class_init (GeditAppOSXClass *klass)
@@ -232,7 +213,6 @@ gedit_app_osx_class_init (GeditAppOSXClass *klass)
 
        app_class->show_help = gedit_app_osx_show_help_impl;
        app_class->set_window_title = gedit_app_osx_set_window_title_impl;
-       app_class->process_window_event = gedit_app_osx_process_window_event_impl;
 }
 
 static void


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