Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
9314f0ad
Commit
9314f0ad
authored
Mar 24, 2012
by
Sebastian Ramacher
Browse files
Initialize last_view
parent
42d33735
Changes
1
Hide whitespace changes
Inline
Side-by-side
page-widget.c
View file @
9314f0ad
...
...
@@ -80,9 +80,9 @@ zathura_page_widget_class_init(ZathuraPageClass* class)
GtkWidgetClass
*
widget_class
=
GTK_WIDGET_CLASS
(
class
);
#if GTK_MAJOR_VERSION == 3
widget_class
->
draw
=
zathura_page_widget_draw
;
#else
#else
widget_class
->
expose_event
=
zathura_page_widget_expose
;
#endif
#endif
widget_class
->
size_allocate
=
zathura_page_widget_size_allocate
;
widget_class
->
button_press_event
=
cb_zathura_page_widget_button_press_event
;
widget_class
->
button_release_event
=
cb_zathura_page_widget_button_release_event
;
...
...
@@ -128,6 +128,7 @@ zathura_page_widget_init(ZathuraPage* widget)
priv
->
images
=
NULL
;
priv
->
images_got
=
false
;
priv
->
current_image
=
NULL
;
priv
->
last_view
=
g_get_real_time
();
g_static_mutex_init
(
&
(
priv
->
lock
));
/* we want mouse events */
...
...
Write
Preview
Supports
Markdown
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