From bc791ca517772aba5666794e780825ce7bbd29a5 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Sat, 24 Jul 2010 00:52:36 +0200 Subject: [PATCH] Reset inputbar handler --- zathura.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/zathura.c b/zathura.c index bb62ea2..29fb35b 100644 --- a/zathura.c +++ b/zathura.c @@ -2370,6 +2370,11 @@ isc_abort(Argument* argument) if(!Zathura.Global.show_inputbar) gtk_widget_hide(GTK_WIDGET(Zathura.UI.inputbar)); + + /* replace default inputbar handler */ + g_signal_handler_disconnect((gpointer) Zathura.UI.inputbar, Zathura.Handler.inputbar_activate); + Zathura.Handler.inputbar_activate = g_signal_connect(G_OBJECT(Zathura.UI.inputbar), "activate", G_CALLBACK(cb_inputbar_activate), NULL); + sc_abort(NULL); } void @@ -4026,10 +4031,6 @@ cb_inputbar_form_activate(GtkEntry* entry, gpointer data) poppler_page_free_link_mapping(link_list); - /* replace default inputbar handler */ - g_signal_handler_disconnect((gpointer) Zathura.UI.inputbar, Zathura.Handler.inputbar_activate); - Zathura.Handler.inputbar_activate = g_signal_connect(G_OBJECT(Zathura.UI.inputbar), "activate", G_CALLBACK(cb_inputbar_activate), NULL); - /* reset all */ set_page(new_page_id); isc_abort(NULL);