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
12cd32ac
Commit
12cd32ac
authored
Jul 24, 2023
by
Bilal Elmoussaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to latest gtk4-rs release
parent
940a3e10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
16 deletions
+5
-16
Cargo.lock
Cargo.lock
+0
-0
Cargo.toml
Cargo.toml
+2
-2
image_page.rs
src/widgets/image_page.rs
+1
-12
paginator.rs
src/widgets/paginator.rs
+2
-2
No files found.
Cargo.lock
View file @
12cd32ac
This diff is collapsed.
Click to expand it.
Cargo.toml
View file @
12cd32ac
...
...
@@ -6,9 +6,9 @@ edition = "2021"
[dependencies]
gtk
=
{
package
=
"gtk4"
,
version
=
"0.
6"
,
features=
["gnome_44
"]
}
gtk
=
{
package
=
"gtk4"
,
version
=
"0.
7"
,
features=
["gnome_45
"]
}
log
=
"0.4"
gettext-rs
=
{
version
=
"0.7"
,
features
=
["gettext-system"]
}
adw
=
{package
=
"libadwaita"
,
version
=
"0.
4
"
}
adw
=
{package
=
"libadwaita"
,
version
=
"0.
5
"
}
pretty_env_logger
=
"0.5"
regex
=
"1.5"
src/widgets/image_page.rs
View file @
12cd32ac
...
...
@@ -38,22 +38,11 @@ mod imp {
}
}
#[glib
::
derived_properties]
impl
ObjectImpl
for
ImagePageWidget
{
fn
dispose
(
&
self
)
{
self
.container
.unparent
();
}
fn
properties
()
->
&
'static
[
glib
::
ParamSpec
]
{
Self
::
derived_properties
()
}
fn
set_property
(
&
self
,
id
:
usize
,
value
:
&
glib
::
Value
,
pspec
:
&
glib
::
ParamSpec
)
{
self
.derived_set_property
(
id
,
value
,
pspec
)
}
fn
property
(
&
self
,
id
:
usize
,
pspec
:
&
glib
::
ParamSpec
)
->
glib
::
Value
{
self
.derived_property
(
id
,
pspec
)
}
}
impl
WidgetImpl
for
ImagePageWidget
{}
...
...
src/widgets/paginator.rs
View file @
12cd32ac
...
...
@@ -97,13 +97,13 @@ impl PaginatorWidget {
}
#[template_callback]
fn
on_key_pressed
(
&
self
,
keyval
:
gdk
::
Key
)
->
g
tk
::
Inhibit
{
fn
on_key_pressed
(
&
self
,
keyval
:
gdk
::
Key
)
->
g
lib
::
ControlFlow
{
if
keyval
==
gdk
::
Key
::
Right
{
self
.try_next
();
}
else
if
keyval
==
gdk
::
Key
::
Left
{
self
.try_previous
();
}
g
tk
::
Inhibit
(
false
)
g
lib
::
ControlFlow
::
Continue
}
#[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