mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-08 14:26:00 +01:00
Reset inputbar handler
This commit is contained in:
parent
72fcf073c7
commit
bc791ca517
1 changed files with 5 additions and 4 deletions
|
@ -2370,6 +2370,11 @@ isc_abort(Argument* argument)
|
||||||
|
|
||||||
if(!Zathura.Global.show_inputbar)
|
if(!Zathura.Global.show_inputbar)
|
||||||
gtk_widget_hide(GTK_WIDGET(Zathura.UI.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
|
void
|
||||||
|
@ -4026,10 +4031,6 @@ cb_inputbar_form_activate(GtkEntry* entry, gpointer data)
|
||||||
|
|
||||||
poppler_page_free_link_mapping(link_list);
|
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 */
|
/* reset all */
|
||||||
set_page(new_page_id);
|
set_page(new_page_id);
|
||||||
isc_abort(NULL);
|
isc_abort(NULL);
|
||||||
|
|
Loading…
Reference in a new issue