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 41f3390
Show file tree
Hide file tree
Showing 3 changed files with 1 addition 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
Empty file added gaphor/SysML/uicomponents.py
Empty file.
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 41f3390

Please sign in to comment.