summaryrefslogtreecommitdiff
path: root/atari/treeview.c
diff options
context:
space:
mode:
Diffstat (limited to 'atari/treeview.c')
-rw-r--r--atari/treeview.c39
1 files changed, 17 insertions, 22 deletions
diff --git a/atari/treeview.c b/atari/treeview.c
index 8c7330640..005465c47 100644
--- a/atari/treeview.c
+++ b/atari/treeview.c
@@ -1,19 +1,19 @@
-/*
- * Copyright 2013 Ole Loots <ole@monochrom.net>
- *
- * This file is part of NetSurf, http://www.netsurf-browser.org/
- *
- * NetSurf is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * NetSurf is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+/*
+ * Copyright 2013 Ole Loots <ole@monochrom.net>
+ *
+ * This file is part of NetSurf, http://www.netsurf-browser.org/
+ *
+ * NetSurf is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * NetSurf is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <inttypes.h>
@@ -342,13 +342,11 @@ static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
static void __CDECL on_keybd_event(struct core_window *cw, EVMULT_OUT *ev_out,
short msg[8])
{
- bool r=false;
long kstate = 0;
long kcode = 0;
long ucs4;
long ik;
unsigned short nkc = 0;
- unsigned short nks = 0;
unsigned char ascii;
struct atari_treeview_window *tv = (struct atari_treeview_window *)cw;
@@ -434,8 +432,6 @@ static void __CDECL on_mbutton_event(struct core_window *cw, EVMULT_OUT *ev_out,
struct gemtk_wm_scroll_info_s *slid;
GRECT work;
short mx, my;
- int bms;
- bool ignore=false;
short cur_rel_x, cur_rel_y, dummy, mbut;
assert(tv);
@@ -467,6 +463,7 @@ static void __CDECL on_mbutton_event(struct core_window *cw, EVMULT_OUT *ev_out,
graf_mkstate(&cur_rel_x, &cur_rel_y, &mbut, &dummy);
/* check for click or hold: */
if( (mbut&1) == 0 ){
+ int bms;
bms = BROWSER_MOUSE_CLICK_1 | BROWSER_MOUSE_PRESS_1;
if(ev_out->emo_mclicks == 2 ) {
bms = BROWSER_MOUSE_DOUBLE_CLICK;
@@ -636,7 +633,6 @@ void atari_treeview_close(struct core_window *cw)
wind_close(gemtk_wm_get_handle(tv->window));
gemtk_wm_unlink(tv->window);
/* unlink the window: */
- struct atari_treeview_window *tmp = treeviews_open;
if (tv->prev_open != NULL) {
tv->prev_open->next_open = tv->next_open;
} else {
@@ -753,7 +749,6 @@ void atari_treeview_get_window_dimensions(struct core_window *cw,
{
if (cw != NULL && (width != NULL || height != NULL)) {
GRECT work;
- struct atari_treeview_window *tv = (struct atari_treeview_window *)cw;
atari_treeview_get_grect(cw, TREEVIEW_AREA_CONTENT, &work);
*width = work.g_w;
*height = work.g_h;