Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-welcome
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-welcome
Commits
d599bcea
Commit
d599bcea
authored
Aug 06, 2023
by
Bilal Elmoussaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to gtk4-rs 0.7.1
parent
12cd32ac
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
58 deletions
+59
-58
Cargo.lock
Cargo.lock
+56
-53
image_page.rs
src/widgets/image_page.rs
+1
-3
paginator.rs
src/widgets/paginator.rs
+2
-2
No files found.
Cargo.lock
View file @
d599bcea
This diff is collapsed.
Click to expand it.
src/widgets/image_page.rs
View file @
d599bcea
use
gtk
::{
glib
,
prelude
::
*
,
subclass
::
prelude
::
*
};
mod
imp
{
use
std
::
cell
::
RefCell
;
use
glib
::
once_cell
::
sync
::
OnceCell
;
use
std
::
cell
::{
OnceCell
,
RefCell
};
use
super
::
*
;
...
...
src/widgets/paginator.rs
View file @
d599bcea
...
...
@@ -97,13 +97,13 @@ impl PaginatorWidget {
}
#[template_callback]
fn
on_key_pressed
(
&
self
,
keyval
:
gdk
::
Key
)
->
glib
::
ControlFlow
{
fn
on_key_pressed
(
&
self
,
keyval
:
gdk
::
Key
)
->
glib
::
Propagation
{
if
keyval
==
gdk
::
Key
::
Right
{
self
.try_next
();
}
else
if
keyval
==
gdk
::
Key
::
Left
{
self
.try_previous
();
}
glib
::
ControlFlow
::
Continue
glib
::
Propagation
::
Proceed
}
#[template_callback]
...
...
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