Merge lp:~jeremy-munsch/synapse-project/fix-command-desktop-file-plugin into lp:synapse-project

Proposed by Jeremy Munsch
Status: Merged
Merged at revision: 639
Proposed branch: lp:~jeremy-munsch/synapse-project/fix-command-desktop-file-plugin
Merge into: lp:synapse-project
Diff against target: 30 lines (+3/-3)
1 file modified
src/plugins/desktop-file-plugin.vala (+3/-3)
To merge this branch: bzr merge lp:~jeremy-munsch/synapse-project/fix-command-desktop-file-plugin
Reviewer Review Type Date Requested Status
Rico Tzschichholz Pending
Review via email: mp+279036@code.launchpad.net
To post a comment you must log in.
637. By Jeremy Munsch

desktop-file-plugin: correct ApplicationsMatch to DesktopFileMatch

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/plugins/desktop-file-plugin.vala'
2--- src/plugins/desktop-file-plugin.vala 2015-11-14 20:58:02 +0000
3+++ src/plugins/desktop-file-plugin.vala 2015-11-30 22:01:44 +0000
4@@ -288,7 +288,7 @@
5
6 public override bool valid_for_match (Match match)
7 {
8- return (match is ApplicationMatch);
9+ return (match is DesktopFileMatch);
10 }
11 }
12
13@@ -298,7 +298,7 @@
14 public ResultSet? find_for_match (ref Query query, Match match)
15 {
16 unowned UriMatch? uri_match = null;
17- unowned ApplicationMatch? app_match = null;
18+ unowned DesktopFileMatch? app_match = null;
19 Gee.List<Action>? any_list = null;
20
21 if ((uri_match = match as UriMatch) != null)
22@@ -324,7 +324,7 @@
23 any_list = ow_list;
24 }
25 }
26- else if ((app_match = match as ApplicationMatch) != null)
27+ else if ((app_match = match as DesktopFileMatch) != null)
28 {
29 Gee.List<OpenAppAction>? oa_list = actions_map[app_match.filename];
30 if (oa_list == null)