From 25581133a11800600ad290fa84fc3ca11927116c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 19 Sep 2019 13:26:46 +0100 Subject: [PATCH] remove unused signal handler api --- frontends/gtk/window.c | 9 ++------- frontends/gtk/window.h | 13 ------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/frontends/gtk/window.c b/frontends/gtk/window.c index f4812bdff..b1c0b706f 100644 --- a/frontends/gtk/window.c +++ b/frontends/gtk/window.c @@ -121,9 +121,6 @@ struct gui_window { /** has the status pane had its first size operation yet? */ bool paned_sized; - /** to allow disactivation / resume of normal window behaviour */ - gulong signalhandler[NSGTK_WINDOW_SIGNAL_COUNT]; - /** The icon this window should have */ GdkPixbuf *icon; @@ -831,8 +828,7 @@ gui_window_create(struct browser_window *bw, GTK_STATE_NORMAL, 0, 0xffff, 0xffff, 0xffff); - g->signalhandler[NSGTK_WINDOW_SIGNAL_REDRAW] = - nsgtk_connect_draw_event(GTK_WIDGET(g->layout), + nsgtk_connect_draw_event(GTK_WIDGET(g->layout), G_CALLBACK(nsgtk_window_draw_event), g); /* helper macro to conect signals to callbacks */ @@ -842,8 +838,7 @@ gui_window_create(struct browser_window *bw, /* layout signals */ CONNECT(g->layout, "motion-notify-event", nsgtk_window_motion_notify_event, g); - g->signalhandler[NSGTK_WINDOW_SIGNAL_CLICK] = - CONNECT(g->layout, "button-press-event", + CONNECT(g->layout, "button-press-event", nsgtk_window_button_press_event, g); CONNECT(g->layout, "button-release-event", nsgtk_window_button_release_event, g); diff --git a/frontends/gtk/window.h b/frontends/gtk/window.h index 3c807c088..728c653a8 100644 --- a/frontends/gtk/window.h +++ b/frontends/gtk/window.h @@ -22,12 +22,6 @@ extern struct gui_window_table *nsgtk_window_table; extern struct gui_search_web_table *nsgtk_search_web_table; -typedef enum nsgtk_window_signals { - NSGTK_WINDOW_SIGNAL_CLICK, - NSGTK_WINDOW_SIGNAL_REDRAW, - NSGTK_WINDOW_SIGNAL_COUNT -} nsgtk_window_signal; - extern struct gui_window *window_list; extern int temp_open_background; @@ -78,13 +72,6 @@ int nsgtk_gui_window_update_targets(struct gui_window *gw); */ void nsgtk_window_destroy_browser(struct gui_window *gw); -/** - * set signal handler - * - * \param gw gui window handle - */ -unsigned long nsgtk_window_get_signalhandler(struct gui_window *gw, int i); - /** * toggle search visibility