[gnome-builder/wip/chergert/editorsearch: 5/7] editor: include editor-search actions group
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/editorsearch: 5/7] editor: include editor-search actions group
- Date: Tue, 10 Oct 2017 22:03:44 +0000 (UTC)
commit 2297d9b2fa3074e4ffcf7cc09ace2e944d0f73c5
Author: Christian Hergert <chergert redhat com>
Date: Wed Oct 4 23:58:01 2017 -0700
editor: include editor-search actions group
src/libide/editor/ide-editor-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libide/editor/ide-editor-view.c b/src/libide/editor/ide-editor-view.c
index 3d2f4ea..8cc502b 100644
--- a/src/libide/editor/ide-editor-view.c
+++ b/src/libide/editor/ide-editor-view.c
@@ -647,6 +647,8 @@ ide_editor_view_constructed (GObject *object)
self->search = ide_editor_search_new (GTK_SOURCE_VIEW (self->source_view));
ide_editor_search_bar_set_search (self->search_bar, self->search);
+ gtk_widget_insert_action_group (GTK_WIDGET (self), "editor-search",
+ G_ACTION_GROUP (self->search));
ide_editor_view_load_fonts (self);
ide_editor_view_update_map (self);
@@ -663,6 +665,7 @@ ide_editor_view_destroy (GtkWidget *widget)
g_clear_object (&self->addins);
+ gtk_widget_insert_action_group (widget, "editor-search", NULL);
gtk_widget_insert_action_group (widget, "editor-view", NULL);
g_cancellable_cancel (self->destroy_cancellable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]