[gnome-builder/wip/gtk4-port: 653/1774] libide/editor: connect popup menus
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 653/1774] libide/editor: connect popup menus
- Date: Mon, 11 Jul 2022 22:31:19 +0000 (UTC)
commit 424cecd548676af51884f824deec79f00836faef
Author: Christian Hergert <chergert redhat com>
Date: Tue Apr 19 22:51:05 2022 -0700
libide/editor: connect popup menus
src/libide/editor/ide-editor-page.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/libide/editor/ide-editor-page.c b/src/libide/editor/ide-editor-page.c
index b6f867a61..b980ae0a4 100644
--- a/src/libide/editor/ide-editor-page.c
+++ b/src/libide/editor/ide-editor-page.c
@@ -378,6 +378,10 @@ ide_editor_page_init (IdeEditorPage *self)
menu = ide_application_get_menu_by_id (IDE_APPLICATION_DEFAULT, "ide-editor-page-menu");
panel_widget_set_menu_model (PANEL_WIDGET (self), G_MENU_MODEL (menu));
+ /* Add menus to source view */
+ menu = ide_application_get_menu_by_id (IDE_APPLICATION_DEFAULT, "ide-source-view-popup-menu");
+ ide_source_view_append_menu (self->view, G_MENU_MODEL (menu));
+
/* Until we get the omnigutter in place */
gutter = gtk_source_view_get_gutter (GTK_SOURCE_VIEW (self->view),
GTK_TEXT_WINDOW_LEFT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]