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
29b6e45c
Commit
29b6e45c
authored
Jan 23, 2018
by
Jeremie Knuesel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump GTK+ to 3.10
parent
e487df05
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
10 deletions
+1
-10
config.mk
config.mk
+1
-4
zathura/callbacks.c
zathura/callbacks.c
+0
-4
zathura/zathura.c
zathura/zathura.c
+0
-2
No files found.
config.mk
View file @
29b6e45c
...
...
@@ -26,7 +26,7 @@ GLIB_MIN_VERSION = 2.50
GLIB_PKG_CONFIG_NAME
=
glib-2.0
# GTK
GTK_VERSION_CHECK
?=
1
GTK_MIN_VERSION
=
3.
6
GTK_MIN_VERSION
=
3.
10
GTK_PKG_CONFIG_NAME
=
gtk+-3.0
# pkg-config binary
...
...
@@ -49,12 +49,9 @@ WITH_MAGIC ?= 1
# HiDPI
HIDPI_SUPPORT_CAIRO
=
$(
shell
(
${PKG_CONFIG}
--atleast-version
=
1.14 cairo
&&
echo
1
)
||
echo
0
)
HIDPI_SUPPORT_GTK
=
$(
shell
(
${PKG_CONFIG}
--atleast-version
=
3.10
${GTK_PKG_CONFIG_NAME}
&&
echo
1
)
||
echo
0
)
ifeq
(${HIDPI_SUPPORT_CAIRO},1)
ifeq
(${HIDPI_SUPPORT_GTK},1)
CPPFLAGS
+=
-DHAVE_HIDPI_SUPPORT
endif
endif
# paths
PREFIX
?=
/usr
...
...
zathura/callbacks.c
View file @
29b6e45c
...
...
@@ -224,11 +224,7 @@ cb_scale_factor(GObject* object, GParamSpec* UNUSED(pspec), gpointer data)
return
;
}
#ifdef HAVE_HIDPI_SUPPORT
int
new_factor
=
gtk_widget_get_scale_factor
(
GTK_WIDGET
(
object
));
#else
int
new_factor
=
1
;
#endif
double
current_x
;
double
current_y
;
...
...
zathura/zathura.c
View file @
29b6e45c
...
...
@@ -153,10 +153,8 @@ init_ui(zathura_t* zathura)
g_signal_connect
(
G_OBJECT
(
zathura
->
ui
.
session
->
gtk
.
view
),
"refresh-view"
,
G_CALLBACK
(
cb_refresh_view
),
zathura
);
#ifdef HAVE_HIDPI_SUPPORT
g_signal_connect
(
G_OBJECT
(
zathura
->
ui
.
session
->
gtk
.
view
),
"notify::scale-factor"
,
G_CALLBACK
(
cb_scale_factor
),
zathura
);
#endif
/* page view */
zathura
->
ui
.
page_widget
=
gtk_grid_new
();
...
...
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