[gnome-builder/wip/chergert/layout] editor: simplify action access
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/layout] editor: simplify action access
- Date: Thu, 13 Jul 2017 00:49:59 +0000 (UTC)
commit adbfd2483f12f8f6fb83df10f58b95139ef1cda8
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 12 17:49:19 2017 -0700
editor: simplify action access
These don't really cost us much to have all properties available
in the action group. So just keep track of them all there.
libide/editor/ide-editor-view-actions.c | 15 +--------------
1 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/libide/editor/ide-editor-view-actions.c b/libide/editor/ide-editor-view-actions.c
index a8e915b..792bae4 100644
--- a/libide/editor/ide-editor-view-actions.c
+++ b/libide/editor/ide-editor-view-actions.c
@@ -497,15 +497,6 @@ static const GActionEntry editor_view_entries[] = {
{ "save-as", ide_editor_view_actions_save_as },
};
-static const gchar *source_view_property_actions[] = {
- "auto-indent",
- "smart-backspace",
- "highlight-current-line",
- "show-line-numbers",
- "show-right-margin",
- "tab-width",
-};
-
void
_ide_editor_view_init_actions (IdeEditorView *self)
{
@@ -530,11 +521,7 @@ _ide_editor_view_init_actions (IdeEditorView *self)
* manipulated using regular Gtk widgets from the properties panel.
*/
sv_props = dzl_properties_group_new (G_OBJECT (source_view));
- for (guint i = 0; i < G_N_ELEMENTS (source_view_property_actions); i++)
- {
- const gchar *name = source_view_property_actions[i];
- dzl_properties_group_add_property (sv_props, name, name);
- }
+ dzl_properties_group_add_all_properties (sv_props);
dzl_properties_group_add_property_full (sv_props,
"use-spaces",
"insert-spaces-instead-of-tabs",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]