mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 11:36:01 +01:00
Merge branch 'feature/hidpi' into 'develop'
Fix cb_widget_configured signature: return false See merge request pwmt/zathura!16
This commit is contained in:
commit
6bec491581
2 changed files with 6 additions and 3 deletions
|
@ -256,15 +256,17 @@ cb_widget_screen_changed(GtkWidget* widget, GdkScreen* previous_screen, gpointer
|
||||||
zathura_update_view_ppi(zathura);
|
zathura_update_view_ppi(zathura);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
gboolean
|
||||||
cb_widget_configured(GtkWidget* UNUSED(widget), GdkEvent* UNUSED(event), gpointer data)
|
cb_widget_configured(GtkWidget* UNUSED(widget), GdkEvent* UNUSED(event), gpointer data)
|
||||||
{
|
{
|
||||||
zathura_t* zathura = data;
|
zathura_t* zathura = data;
|
||||||
if (zathura == NULL) {
|
if (zathura == NULL) {
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
zathura_update_view_ppi(zathura);
|
zathura_update_view_ppi(zathura);
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -116,8 +116,9 @@ void cb_widget_screen_changed(GtkWidget* widget, GdkScreen* previous_screen, gpo
|
||||||
* @param widget The main window widget
|
* @param widget The main window widget
|
||||||
* @param event The configure event
|
* @param event The configure event
|
||||||
* @param gpointer The zathura instance
|
* @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.
|
* This function gets called when the view widget scale factor changes (e.g.
|
||||||
|
|
Loading…
Reference in a new issue