remove unused signal handler api

This commit is contained in:
Vincent Sanders 2019-09-19 13:26:46 +01:00 committed by Daniel Silverstone
parent 2bed178a33
commit 25581133a1
2 changed files with 2 additions and 20 deletions

View File

@ -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);

View File

@ -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