From 92ecc77768dc86ed6a8d2d9aa1b0f49567878b2c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 10 Jun 2017 18:10:07 +0100 Subject: Core window: Ensure all front ends initialise drag_status. --- frontends/gtk/corewindow.c | 4 ++-- frontends/gtk/corewindow.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'frontends/gtk') diff --git a/frontends/gtk/corewindow.c b/frontends/gtk/corewindow.c index 0049d1587..ddc61c717 100644 --- a/frontends/gtk/corewindow.c +++ b/frontends/gtk/corewindow.c @@ -662,7 +662,7 @@ static void nsgtk_cw_drag_status(struct core_window *cw, core_window_drag_status ds) { struct nsgtk_corewindow *nsgtk_cw = (struct nsgtk_corewindow *)cw; - nsgtk_cw->drag_staus = ds; + nsgtk_cw->drag_status = ds; } @@ -682,7 +682,7 @@ static struct core_window_callback_table nsgtk_cw_cb_table = { nserror nsgtk_corewindow_init(struct nsgtk_corewindow *nsgtk_cw) { nsgtk_cw->cb_table = &nsgtk_cw_cb_table; - nsgtk_cw->drag_staus = CORE_WINDOW_DRAG_NONE; + nsgtk_cw->drag_status = CORE_WINDOW_DRAG_NONE; /* input method setup */ nsgtk_cw->input_method = gtk_im_multicontext_new(); diff --git a/frontends/gtk/corewindow.h b/frontends/gtk/corewindow.h index 90bfd6193..6100e67ae 100644 --- a/frontends/gtk/corewindow.h +++ b/frontends/gtk/corewindow.h @@ -51,7 +51,7 @@ struct nsgtk_corewindow { /** mouse state */ struct nsgtk_corewindow_mouse mouse_state; /** drag status set by core */ - core_window_drag_status drag_staus; + core_window_drag_status drag_status; /** * callback to draw on drawable area of nsgtk core window -- cgit v1.2.3