[gnome-builder/wip/chergert/perspective] devhelp: show devhelp panel when selecting URI
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/perspective] devhelp: show devhelp panel when selecting URI
- Date: Sun, 13 Dec 2015 00:26:08 +0000 (UTC)
commit 100f02469a93726d3077ceaf4b4a7429b4197aa2
Author: Christian Hergert <chergert redhat com>
Date: Sat Dec 12 16:26:00 2015 -0800
devhelp: show devhelp panel when selecting URI
plugins/devhelp/gbp-devhelp-search-provider.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/plugins/devhelp/gbp-devhelp-search-provider.c b/plugins/devhelp/gbp-devhelp-search-provider.c
index e5a5d21..cc8dbf5 100644
--- a/plugins/devhelp/gbp-devhelp-search-provider.c
+++ b/plugins/devhelp/gbp-devhelp-search-provider.c
@@ -178,12 +178,15 @@ gbp_devhelp_search_provider_activate (IdeSearchProvider *provider,
g_assert (pane != NULL);
panel = ide_widget_find_child_typed (pane, GBP_TYPE_DEVHELP_PANEL);
- g_assert (pane != NULL);
+ g_assert (panel != NULL);
g_object_get (result, "uri", &uri, NULL);
if (panel != NULL)
- gbp_devhelp_panel_set_uri (panel, uri);
+ {
+ gbp_devhelp_panel_set_uri (panel, uri);
+ ide_workbench_focus (IDE_WORKBENCH (toplevel), GTK_WIDGET (panel));
+ }
g_free (uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]