search: Define SearchResultInterface and implement valid results with it
Since all the search result classes are now GObject classes, we can enforce the methods we want to have in there (just activate() for now) using an interface, to make sure they are implementing what we require and to easily group all the classes that can be used as search results, even though they are not extending SearchResult. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/559
This commit is contained in:

committed by
Florian Müllner

parent
c4c5c4fd5c
commit
91a5133116
@ -2035,6 +2035,7 @@ var AppFolderPopup = GObject.registerClass({
|
||||
|
||||
var AppIcon = GObject.registerClass({
|
||||
GTypeName: 'AppDisplay_AppIcon',
|
||||
Implements: [Search.SearchResultInterface],
|
||||
Signals: {
|
||||
'menu-state-changed': { param_types: [GObject.TYPE_BOOLEAN] },
|
||||
'sync-tooltip': {},
|
||||
|
Reference in New Issue
Block a user