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
Martin Krohn
xfce4-appfinder
Commits
30bda430
Commit
30bda430
authored
May 19, 2020
by
Martin Krohn
Browse files
Merge branch 'master' of gitlab.xfce.org:mk279/xfce4-appfinder
parents
246407ef
25307c33
Pipeline
#194
passed with stages
in 1 minute and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/appfinder-model.c
View file @
30bda430
...
...
@@ -1080,6 +1080,11 @@ xfce_appfinder_model_history_insert (XfceAppfinderModel *model,
item
->
command
=
g_strdup
(
command
);
item
->
icon
=
GDK_PIXBUF
(
g_object_ref
(
G_OBJECT
(
model
->
command_icon
)));
item
->
icon_large
=
GDK_PIXBUF
(
g_object_ref
(
G_OBJECT
(
model
->
command_icon_large
)));
if
(
g_slist_find_custom
(
model
->
items
,
item
,
xfce_appfinder_model_item_compare
)
!=
NULL
)
{
APPFINDER_DEBUG
(
"%s is already in the model. no insert"
,
command
);
return
;
}
model
->
items
=
g_slist_insert_sorted
(
model
->
items
,
item
,
xfce_appfinder_model_item_compare
);
/* find the item and the position */
...
...
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