[gnome-builder] ide-editor-frame: remove old contextual menu code
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] ide-editor-frame: remove old contextual menu code
- Date: Sun, 27 Nov 2016 21:22:48 +0000 (UTC)
commit 3e225d0eba2a45575faad831a79834bda8c35dd4
Author: Sebastien Lafargue <slafargue gnome org>
Date: Sun Nov 27 22:20:00 2016 +0100
ide-editor-frame: remove old contextual menu code
We now use automatic menu resources merging:
https://git.gnome.org/browse/gnome-builder/tree/plugins/project-tree/gtk/menus.ui
libide/editor/ide-editor-frame.c | 35 -----------------------------------
1 files changed, 0 insertions(+), 35 deletions(-)
---
diff --git a/libide/editor/ide-editor-frame.c b/libide/editor/ide-editor-frame.c
index d83774e..51d2c24 100644
--- a/libide/editor/ide-editor-frame.c
+++ b/libide/editor/ide-editor-frame.c
@@ -940,35 +940,6 @@ ide_editor_frame_set_auto_hide_map (IdeEditorFrame *self,
}
static void
-ide_editor_frame__source_view_populate_popup (IdeEditorFrame *self,
- GtkWidget *popup,
- IdeSourceView *source_view)
-{
- g_assert (IDE_IS_EDITOR_FRAME (self));
- g_assert (GTK_IS_WIDGET (popup));
- g_assert (IDE_IS_SOURCE_VIEW (source_view));
-
- if (GTK_IS_MENU_SHELL (popup))
- {
- GtkWidget *item;
- GtkWidget *sep;
-
- sep = g_object_new (GTK_TYPE_SEPARATOR_MENU_ITEM,
- "visible", TRUE,
- NULL);
- gtk_menu_shell_append (GTK_MENU_SHELL (popup), sep);
-
- item = g_object_new (GTK_TYPE_MENU_ITEM,
- "action-name", "view.reveal",
- "label", _("Re_veal in Project Tree"),
- "use-underline", TRUE,
- "visible", TRUE,
- NULL);
- gtk_menu_shell_append (GTK_MENU_SHELL (popup), item);
- }
-}
-
-static void
ide_editor_frame__search_populate_popup (IdeEditorFrame *self,
GtkWidget *popup,
GdTaggedEntry *entry)
@@ -1040,12 +1011,6 @@ ide_editor_frame_constructed (GObject *object)
self,
G_CONNECT_SWAPPED);
- g_signal_connect_object (self->source_view,
- "populate-popup",
- G_CALLBACK (ide_editor_frame__source_view_populate_popup),
- self,
- G_CONNECT_SWAPPED);
-
g_signal_connect_object (self->search_entry,
"key-press-event",
G_CALLBACK (ide_editor_frame__search_key_press_event),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]