-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit ditches g_desktop_app_info_search() with a modified copy of the search code in order to support searching for actions in desktop entries. That additionally required implementing own sorting, which currently is based on the specificity of the match type (e.g. name ranks above display name and keywords and so on) and whether we’ve prefix-matched. Resolves #5.
- Loading branch information
Showing
14 changed files
with
504 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/*** BEGIN file-header ***/ | ||
/* | ||
* SPDX-License-Identifier: GPL-2.0-only | ||
* | ||
* Copyright (C) 2024 Ernestas Kulik <ernestas AT baltic DOT engineering> | ||
*/ | ||
|
||
#include "jogg-enum-types.h" | ||
/*** END file-header ***/ | ||
|
||
/*** BEGIN file-production ***/ | ||
|
||
/* Enumerations from "@basename@" */ | ||
#include "@basename@" | ||
/*** END file-production ***/ | ||
|
||
/*** BEGIN value-header ***/ | ||
G_DEFINE_ENUM_TYPE ( @EnumName@ | ||
, @enum_name@ | ||
/*** END value-header ***/ | ||
/*** BEGIN value-production ***/ | ||
, G_DEFINE_ENUM_VALUE (@VALUENAME@, "@valuenick@") | ||
/*** END value-production ***/ | ||
/*** BEGIN value-tail ***/ | ||
); | ||
/*** END value-tail ***/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/*** BEGIN file-header ***/ | ||
/* | ||
* SPDX-License-Identifier: GPL-2.0-only | ||
* | ||
* Copyright (C) 2024 Ernestas Kulik <ernestas AT baltic DOT engineering> | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <glib-object.h> | ||
|
||
G_BEGIN_DECLS | ||
/*** END file-header ***/ | ||
|
||
/*** BEGIN file-production ***/ | ||
|
||
/* Enumerations from "@basename@" */ | ||
|
||
/*** END file-production ***/ | ||
|
||
/*** BEGIN enumeration-production ***/ | ||
#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ()) | ||
GType @enum_name@_get_type (void); | ||
|
||
/*** END enumeration-production ***/ | ||
|
||
/*** BEGIN file-tail ***/ | ||
|
||
G_END_DECLS | ||
/*** END file-tail ***/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
/* | ||
* SPDX-License-Identifier: GPL-2.0-only | ||
* | ||
* Copyright (C) 2024 Ernestas Kulik <ernestas AT baltic DOT engineering> | ||
*/ | ||
|
||
#include <glib.h> | ||
|
||
G_BEGIN_DECLS | ||
|
||
typedef enum | ||
{ | ||
JOGG_MATCH_TYPE_INVALID, | ||
JOGG_MATCH_TYPE_NAME, | ||
JOGG_MATCH_TYPE_GENERIC_NAME, | ||
JOGG_MATCH_TYPE_ACTIONS, | ||
JOGG_MATCH_TYPE_KEYWORDS, | ||
JOGG_MATCH_TYPE_EXEC, | ||
} JoggMatchType; | ||
|
||
G_END_DECLS |
Oops, something went wrong.