Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zathura
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
114
Issues
114
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwmt
zathura
Commits
e487df05
Commit
e487df05
authored
Jan 23, 2018
by
Jeremie Knuesel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HiDPI: use original notify callback signature
parent
7f4acdb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
zathura/callbacks.c
zathura/callbacks.c
+4
-3
zathura/callbacks.h
zathura/callbacks.h
+3
-3
No files found.
zathura/callbacks.c
View file @
e487df05
...
...
@@ -217,14 +217,15 @@ cb_refresh_view(GtkWidget* GIRARA_UNUSED(view), gpointer data)
}
void
cb_scale_factor
(
G
tkWidget
*
widget
,
GParamSpec
*
UNUSED
(
pspec
),
zathura_t
*
zathur
a
)
cb_scale_factor
(
G
Object
*
object
,
GParamSpec
*
UNUSED
(
pspec
),
gpointer
dat
a
)
{
if
(
widget
==
NULL
||
zathura
==
NULL
||
zathura
->
document
==
NULL
)
{
zathura_t
*
zathura
=
data
;
if
(
zathura
==
NULL
||
zathura
->
document
==
NULL
)
{
return
;
}
#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
int
new_factor
=
1
;
#endif
...
...
zathura/callbacks.h
View file @
e487df05
...
...
@@ -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.
*
* @param
widge
t The view widget
* @param
objec
t The view widget
* @param pspec The GParamSpec for the scale-factor property
* @param
zathura
The zathura instance
* @param
gpointer
The zathura instance
*/
void
cb_scale_factor
(
G
tkWidget
*
widget
,
GParamSpec
*
pspec
,
zathura_t
*
zathur
a
);
void
cb_scale_factor
(
G
Object
*
object
,
GParamSpec
*
pspec
,
gpointer
dat
a
);
/**
* This function gets called when the value of the "pages-per-row"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment