Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Icon Library
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
World
Design Tooling
Icon Library
Commits
44186f20
Commit
44186f20
authored
Sep 11, 2019
by
Bilal Elmoussaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Betterr research results
parent
fffb2f2e
Pipeline
#113866
failed with stages
in 4 minutes and 48 seconds
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
6 deletions
+18
-6
rustfmt.toml
rustfmt.toml
+1
-1
src/models/icon.rs
src/models/icon.rs
+2
-1
src/search_provider.rs
src/search_provider.rs
+4
-2
src/widgets/export.rs
src/widgets/export.rs
+5
-1
src/widgets/window.rs
src/widgets/window.rs
+6
-1
No files found.
rustfmt.toml
View file @
44186f20
max_width
=
20
0
max_width
=
16
0
edition
=
"2018"
src/models/icon.rs
View file @
44186f20
...
...
@@ -74,7 +74,8 @@ impl Icon {
// Check if the icon should be shown for the searched string
let
mut
found_tags
=
self
.tags
.clone
();
found_tags
.retain
(|
tag
|
tag
.to_lowercase
()
.contains
(
search_str
.as_str
()));
icon_terms
.contains
(
&
search_str
.as_str
())
||
found_tags
.len
()
!=
0
icon_terms
.contains
(
&
search_str
.as_str
())
||
found_tags
.len
()
!=
0
||
icon_name
==
search_str
||
icon_name
.contains
(
&
search_str
.as_str
())
}
pub
fn
save
(
&
self
,
destination
:
gio
::
File
)
->
Result
<
(),
Error
>
{
...
...
src/search_provider.rs
View file @
44186f20
...
...
@@ -49,10 +49,12 @@ impl SearchProvider {
});
let
sp
=
s
.clone
();
self
.search_provider
.connect_get_initial_result_set
(
move
|
terms
|
sp
.borrow
()
.clone
()
.search
(
terms
));
self
.search_provider
.connect_get_initial_result_set
(
move
|
terms
|
sp
.borrow
()
.clone
()
.search
(
terms
));
let
sp
=
s
.clone
();
self
.search_provider
.connect_get_subsearch_result_set
(
move
|
_
,
terms
|
sp
.borrow
()
.clone
()
.search
(
terms
));
self
.search_provider
.connect_get_subsearch_result_set
(
move
|
_
,
terms
|
sp
.borrow
()
.clone
()
.search
(
terms
));
let
sp
=
s
.clone
();
self
.search_provider
.connect_get_result_metas
(
move
|
sp_ids
|
{
...
...
src/widgets/export.rs
View file @
44186f20
...
...
@@ -20,7 +20,11 @@ impl ExportDialog {
is_system_infobar
.set_visible
(
icon
.is_system
);
is_system_infobar
.set_no_show_all
(
!
icon
.is_system
);
let
export_dialog
=
ExportDialog
{
widget
,
builder
,
icon
:
Rc
::
new
(
icon
)
};
let
export_dialog
=
ExportDialog
{
widget
,
builder
,
icon
:
Rc
::
new
(
icon
),
};
export_dialog
.init
();
export_dialog
.setup_actions
();
export_dialog
...
...
src/widgets/window.rs
View file @
44186f20
...
...
@@ -23,7 +23,12 @@ impl Window {
widget
.get_style_context
()
.add_class
(
"devel"
);
}
let
window
=
Window
{
widget
,
builder
,
sender
,
model
};
let
window
=
Window
{
widget
,
builder
,
sender
,
model
,
};
window
.init
(
settings
);
window
}
...
...
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