[gnome-builder] plugins/sphinx-preview: cleanup action naming
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins/sphinx-preview: cleanup action naming
- Date: Fri, 29 Jul 2022 20:46:36 +0000 (UTC)
commit a6cbba3613fd1f7defdf7301699b05cc838d588b
Author: Christian Hergert <chergert redhat com>
Date: Fri Jul 29 13:45:23 2022 -0700
plugins/sphinx-preview: cleanup action naming
.../sphinx-preview/gbp-sphinx-preview-workspace-addin.c | 12 +++---------
src/plugins/sphinx-preview/gtk/menus.ui | 2 +-
2 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/src/plugins/sphinx-preview/gbp-sphinx-preview-workspace-addin.c
b/src/plugins/sphinx-preview/gbp-sphinx-preview-workspace-addin.c
index 6d9006a01..3ff62804b 100644
--- a/src/plugins/sphinx-preview/gbp-sphinx-preview-workspace-addin.c
+++ b/src/plugins/sphinx-preview/gbp-sphinx-preview-workspace-addin.c
@@ -45,7 +45,7 @@ static void live_preview_action (GbpSphinxPreviewWorkspaceAddin *self,
GVariant *params);
IDE_DEFINE_ACTION_GROUP (GbpSphinxPreviewWorkspaceAddin, gbp_sphinx_preview_workspace_addin, {
- { "sphinx-preview", live_preview_action },
+ { "preview", live_preview_action },
})
static void
@@ -59,7 +59,7 @@ gbp_sphinx_preview_workspace_addin_set_language (GbpSphinxPreviewWorkspaceAddin
IDE_TRACE_MSG ("Switching language-id to %s", language_id ? language_id : "NULL");
enabled = ide_str_equal0 (language_id, "rst");
- gbp_sphinx_preview_workspace_addin_set_action_enabled (self, "sphinx-preview", enabled);
+ gbp_sphinx_preview_workspace_addin_set_action_enabled (self, "preview", enabled);
}
static void
@@ -163,10 +163,6 @@ gbp_sphinx_preview_workspace_addin_load (IdeWorkspaceAddin *addin,
self,
G_CONNECT_SWAPPED);
- gtk_widget_insert_action_group (GTK_WIDGET (workspace),
- "sphinx-preview",
- G_ACTION_GROUP (self));
-
IDE_EXIT;
}
@@ -182,8 +178,6 @@ gbp_sphinx_preview_workspace_addin_unload (IdeWorkspaceAddin *addin,
g_assert (GBP_IS_SPHINX_PREVIEW_WORKSPACE_ADDIN (self));
g_assert (IDE_IS_WORKSPACE (workspace));
- gtk_widget_insert_action_group (GTK_WIDGET (workspace), "sphinx-preview", NULL);
-
g_clear_pointer (&self->compilers, g_hash_table_unref);
g_clear_object (&self->buffer_signals);
@@ -213,7 +207,7 @@ gbp_sphinx_preview_workspace_addin_class_init (GbpSphinxPreviewWorkspaceAddinCla
static void
gbp_sphinx_preview_workspace_addin_init (GbpSphinxPreviewWorkspaceAddin *self)
{
- gbp_sphinx_preview_workspace_addin_set_action_enabled (self, "sphinx-preview", FALSE);
+ gbp_sphinx_preview_workspace_addin_set_action_enabled (self, "preview", FALSE);
}
static IdePage *
diff --git a/src/plugins/sphinx-preview/gtk/menus.ui b/src/plugins/sphinx-preview/gtk/menus.ui
index 1dc905380..a8f1ba5ac 100644
--- a/src/plugins/sphinx-preview/gtk/menus.ui
+++ b/src/plugins/sphinx-preview/gtk/menus.ui
@@ -5,7 +5,7 @@
<item>
<attribute name="id">sphinx-preview-item</attribute>
<attribute name="label" translatable="yes">Open Preview…</attribute>
- <attribute name="action">sphinx-preview.sphinx-preview</attribute>
+ <attribute name="action">workspace.sphinx-preview.preview</attribute>
<attribute name="hidden-when">action-disabled</attribute>
</item>
</section>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]