From 32607326a9779cf9f561b69382a6d062be40498f Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Tue, 25 Oct 2016 21:04:30 +0200 Subject: [PATCH] Fix more callback return types Signed-off-by: Sebastian Ramacher --- zathura/callbacks.c | 6 +++--- zathura/callbacks.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/zathura/callbacks.c b/zathura/callbacks.c index 44e506b..c5dd965 100644 --- a/zathura/callbacks.c +++ b/zathura/callbacks.c @@ -356,14 +356,14 @@ handle_link(GtkEntry* entry, girara_session_t* session, return (eval == TRUE) ? TRUE : FALSE; } -bool +gboolean cb_sc_follow(GtkEntry* entry, void* data) { girara_session_t* session = data; return handle_link(entry, session, ZATHURA_LINK_ACTION_FOLLOW); } -bool +gboolean cb_sc_display_link(GtkEntry* entry, void* data) { girara_session_t* session = data; @@ -405,7 +405,7 @@ password_dialog(gpointer data) return FALSE; } -bool +gboolean cb_password_dialog(GtkEntry* entry, void* data) { if (entry == NULL || data == NULL) { diff --git a/zathura/callbacks.h b/zathura/callbacks.h index 08c44aa..15e4ba1 100644 --- a/zathura/callbacks.h +++ b/zathura/callbacks.h @@ -110,7 +110,7 @@ void cb_index_row_activated(GtkTreeView* tree_view, GtkTreePath* path, * @param session The girara session * @return true if no error occurred and the event has been handled */ -bool cb_sc_follow(GtkEntry* entry, void* session); +gboolean cb_sc_follow(GtkEntry* entry, void* session); /** * Called when input has been passed to the sc_display_link dialog @@ -119,7 +119,7 @@ bool cb_sc_follow(GtkEntry* entry, void* session); * @param session The girara session * @return true if no error occurred and the event has been handled */ -bool cb_sc_display_link(GtkEntry* entry, void* session); +gboolean cb_sc_display_link(GtkEntry* entry, void* session); /** * Emitted when file has been changed @@ -136,7 +136,7 @@ void cb_file_monitor(ZathuraFileMonitor* monitor, girara_session_t* session); * @param dialog The dialog information * @return true if input has been handled */ -bool cb_password_dialog(GtkEntry* entry, void* dialog); +gboolean cb_password_dialog(GtkEntry* entry, void* dialog); /** * Emitted when the view has been resized