From 5e957bc6856088acadc2651ff0f2856f2f6bc998 Mon Sep 17 00:00:00 2001 From: Jeremie Knuesel Date: Sat, 16 Mar 2019 13:55:49 +0100 Subject: [PATCH] Fix cb_widget_configured signature: return false --- zathura/callbacks.c | 6 ++++-- zathura/callbacks.h | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/zathura/callbacks.c b/zathura/callbacks.c index fd35c0f..ab346ea 100644 --- a/zathura/callbacks.c +++ b/zathura/callbacks.c @@ -256,15 +256,17 @@ cb_widget_screen_changed(GtkWidget* widget, GdkScreen* previous_screen, gpointer zathura_update_view_ppi(zathura); } -void +gboolean cb_widget_configured(GtkWidget* UNUSED(widget), GdkEvent* UNUSED(event), gpointer data) { zathura_t* zathura = data; if (zathura == NULL) { - return; + return false; } zathura_update_view_ppi(zathura); + + return false; } void diff --git a/zathura/callbacks.h b/zathura/callbacks.h index 06f089d..76841dd 100644 --- a/zathura/callbacks.h +++ b/zathura/callbacks.h @@ -116,8 +116,9 @@ void cb_widget_screen_changed(GtkWidget* widget, GdkScreen* previous_screen, gpo * @param widget The main window widget * @param event The configure event * @param gpointer The zathura instance + * @return true if no error occurred and the event has been handled */ -void cb_widget_configured(GtkWidget* widget, GdkEvent* event, gpointer data); +gboolean cb_widget_configured(GtkWidget* widget, GdkEvent* event, gpointer data); /** * This function gets called when the view widget scale factor changes (e.g.