Skip to content

Commit

Permalink
Move blockmove initialization to uicomponents module
Browse files Browse the repository at this point in the history
The blockmove module indirectly import Gdk. That should only
happen if a uit session is loaded.
  • Loading branch information
amolenaar committed Jul 26, 2023
1 parent 3ab580d commit 67d2895
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion gaphor/SysML/blocks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import gaphor.SysML.blocks.blockmove
import gaphor.SysML.blocks.connectors
import gaphor.SysML.blocks.datatype
import gaphor.SysML.blocks.group
Expand Down
4 changes: 4 additions & 0 deletions gaphor/SysML/uicomponents.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ruff: noqa: F401

import gaphor.SysML.blocks.blockmove
import gaphor.SysML.propertypages
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ gaphor = "gaphor.main:main"
[tool.poetry.plugins."gaphor.modules"]
"general_ui_components" = "gaphor.diagram.general.uicomponents"
"uml_ui_components" = "gaphor.UML.uicomponents"
"sysml_property_pages" = "gaphor.SysML.propertypages"
"sysml_property_pages" = "gaphor.SysML.uicomponents"
"c4model_property_pages" = "gaphor.C4Model.propertypages"

[tool.poetry.plugins."gaphor.services"]
Expand Down

0 comments on commit 67d2895

Please sign in to comment.