After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 744899 - Devhelp search provider for global search
Devhelp search provider for global search
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-02-21 16:47 UTC by Erick Perez Castellanos
Modified: 2015-03-29 22:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
helper API to GbDevhelpDocument (1.50 KB, patch)
2015-02-21 16:49 UTC, Erick Perez Castellanos
none Details | Review
0002-editor-workspace-add-gb_editor_workspace_focus_docum.patch (1.83 KB, patch)
2015-02-21 16:49 UTC, Erick Perez Castellanos
none Details | Review
0003-devhelp-add-search-provider-implementation.patch (12.29 KB, patch)
2015-02-21 16:50 UTC, Erick Perez Castellanos
none Details | Review
0004-workbench-use-devhelp-search-provider.patch (1.38 KB, patch)
2015-02-21 16:51 UTC, Erick Perez Castellanos
none Details | Review
0001-search-add-devhelp-provider.patch (10.49 KB, patch)
2015-02-27 20:09 UTC, Erick Perez Castellanos
committed Details | Review
0002-libide-use-devhelp-search-provider.patch (1.72 KB, patch)
2015-02-27 20:10 UTC, Erick Perez Castellanos
committed Details | Review

Description Erick Perez Castellanos 2015-02-21 16:47:51 UTC
This is a set of patches for adding a devhelp search-provider to global search. I'm tired of writing a method name to look its documentation and sometimes I don't even know the signature correct so.
Comment 1 Erick Perez Castellanos 2015-02-21 16:49:10 UTC
Created attachment 297504 [details] [review]
helper API to GbDevhelpDocument
Comment 2 Erick Perez Castellanos 2015-02-21 16:49:38 UTC
Created attachment 297505 [details] [review]
0002-editor-workspace-add-gb_editor_workspace_focus_docum.patch
Comment 3 Erick Perez Castellanos 2015-02-21 16:50:16 UTC
Created attachment 297506 [details] [review]
0003-devhelp-add-search-provider-implementation.patch
Comment 4 Erick Perez Castellanos 2015-02-21 16:51:38 UTC
Created attachment 297507 [details] [review]
0004-workbench-use-devhelp-search-provider.patch
Comment 5 Erick Perez Castellanos 2015-02-21 16:58:04 UTC
Now, the implementation throw still some warning about G_DECLARE_FINAL_TYPE and g_auto_ptr at build time. I haven't not fixed it because I'm not sure if the provider belongs to GbSearchProvider or IdeSearchProvider. As a matter of design, I think this belong into GbSearchProvider more than in libide library.

Anyhow, the implementation works using GbSearchProvider, I'll migrate it if needed or fix the warning if it can stays using GbSearchProvider.
Comment 6 Christian Hergert 2015-02-23 19:16:29 UTC
So to sum up our discussion on IRC.

1) Use IdeSearchProvider as a base class
2) Continue using G_DECLARE_FINAL_TYPE().
3) I'll get IdeSearchEngine hooked into the workbench (and GbSearchProvider will disappear)
4) I'll add IdeSearchProvider::activate(IdeSearchResult*) signal.
5) Make your result use that (if necessary)

Thanks again for doing this, very necessary!
Comment 7 Erick Perez Castellanos 2015-02-27 20:09:53 UTC
Created attachment 298128 [details] [review]
0001-search-add-devhelp-provider.patch
Comment 8 Erick Perez Castellanos 2015-02-27 20:10:36 UTC
Created attachment 298129 [details] [review]
0002-libide-use-devhelp-search-provider.patch
Comment 9 Erick Perez Castellanos 2015-02-27 20:12:06 UTC
(In reply to Christian Hergert from comment #6)
> So to sum up our discussion on IRC.
> 
> 1) Use IdeSearchProvider as a base class
> 2) Continue using G_DECLARE_FINAL_TYPE().
Done and done.
> 3) I'll get IdeSearchEngine hooked into the workbench (and GbSearchProvider
> will disappear)
> 4) I'll add IdeSearchProvider::activate(IdeSearchResult*) signal.
> 5) Make your result use that (if necessary)
Now, all that's needed is the hooking of this on the UI. This will have to wait until libide branch I merged into master I guess.
Comment 10 Christian Hergert 2015-03-03 18:35:00 UTC
LGTM, thanks!
Comment 11 Christian Hergert 2015-03-03 18:35:48 UTC
Actually, I'm going to leave this open until we have the UI in place.
Comment 12 Alexandre Franke 2015-03-29 22:31:52 UTC
That's been done!