mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 06:46:01 +01:00
HiDPI: use original notify callback signature
This commit is contained in:
parent
7f4acdb0f4
commit
e487df053d
2 changed files with 7 additions and 6 deletions
|
@ -217,14 +217,15 @@ cb_refresh_view(GtkWidget* GIRARA_UNUSED(view), gpointer data)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cb_scale_factor(GtkWidget* widget, GParamSpec* UNUSED(pspec), zathura_t* zathura)
|
cb_scale_factor(GObject* object, GParamSpec* UNUSED(pspec), gpointer data)
|
||||||
{
|
{
|
||||||
if (widget == NULL || zathura == NULL || zathura->document == NULL) {
|
zathura_t* zathura = data;
|
||||||
|
if (zathura == NULL || zathura->document == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_HIDPI_SUPPORT
|
#ifdef HAVE_HIDPI_SUPPORT
|
||||||
int new_factor = gtk_widget_get_scale_factor(widget);
|
int new_factor = gtk_widget_get_scale_factor(GTK_WIDGET(object));
|
||||||
#else
|
#else
|
||||||
int new_factor = 1;
|
int new_factor = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -85,11 +85,11 @@ void cb_refresh_view(GtkWidget* view, gpointer data);
|
||||||
*
|
*
|
||||||
* It records the new value and triggers a re-rendering of the document.
|
* It records the new value and triggers a re-rendering of the document.
|
||||||
*
|
*
|
||||||
* @param widget The view widget
|
* @param object The view widget
|
||||||
* @param pspec The GParamSpec for the scale-factor property
|
* @param pspec The GParamSpec for the scale-factor property
|
||||||
* @param zathura The zathura instance
|
* @param gpointer The zathura instance
|
||||||
*/
|
*/
|
||||||
void cb_scale_factor(GtkWidget* widget, GParamSpec *pspec, zathura_t* zathura);
|
void cb_scale_factor(GObject* object, GParamSpec* pspec, gpointer data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function gets called when the value of the "pages-per-row"
|
* This function gets called when the value of the "pages-per-row"
|
||||||
|
|
Loading…
Reference in a new issue