From 51f73044863660b2950345d72cb31ff3972b0ee8 Mon Sep 17 00:00:00 2001 From: anthony Date: Wed, 18 Nov 2020 20:42:16 +0000 Subject: [PATCH] dummy window event method --- frontends/gnustep/tables/window.m | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/frontends/gnustep/tables/window.m b/frontends/gnustep/tables/window.m index c2d80cc4a..ba46850c0 100644 --- a/frontends/gnustep/tables/window.m +++ b/frontends/gnustep/tables/window.m @@ -23,6 +23,7 @@ static struct gui_window *gnustep_window_create(struct browser_window *bw, // Destroy the specified window static void gnustep_window_destroy(struct gui_window *gw) { NSLog(@"gnustep_window_destroy"); + [(id)gw release]; } // Trigger a redraw of the specified area, or the entire window if null @@ -52,6 +53,25 @@ static nserror gnustep_window_get_dimensions(struct gui_window *gw, int *width, // Some kind of event happened static nserror gnustep_window_event(struct gui_window *gw, enum gui_window_event event) { NSLog(@"gnustep_window_event"); + switch (event) { + case GW_EVENT_UPDATE_EXTENT: + NSLog(@"GW_EVENT_UPDATE_EXTENT"); + break; + case GW_EVENT_REMOVE_CARET: + NSLog(@"GW_EVENT_REMOVE_CARET"); + break; + case GW_EVENT_NEW_CONTENT: + NSLog(@"GW_EVENT_NEW_CONTENT"); + break; + case GW_EVENT_START_THROBBER: + NSLog(@"GW_EVENT_START_THROBBER"); + break; + case GW_EVENT_STOP_THROBBER: + NSLog(@"GW_EVENT_STOP_THROBBER"); + break; + default: + break; + } return NSERROR_OK; }