- Posts: 28
- Thank you received: 0
Can't get mdi action to fire
- ftkalcevic
- Topic Author
- Offline
- Junior Member
-
Less
More
7 years 3 weeks ago #147319
by ftkalcevic
Can't get mdi action to fire was created by ftkalcevic
I'm trying to get the example mdi action to work, but it never seems to fire.
In my .ini file I have...
[DISPLAY]
EMBED_TAB_NAME=who
EMBED_TAB_COMMAND=gladevcp -c uiWhoAreYou -x {XID} /home/frankt/linuxcnc-dev/configs/apps/gladevcp/mdi-command-example/whoareyou.ui
The panel appears in axis, and I can press the button, but the mdi message doesn't appear. I can manually type the command (MSG,"Hello") in the MDI and that works correctly.
Am I missing something?
I'm using master from a couple of weeks ago.
In my .ini file I have...
[DISPLAY]
EMBED_TAB_NAME=who
EMBED_TAB_COMMAND=gladevcp -c uiWhoAreYou -x {XID} /home/frankt/linuxcnc-dev/configs/apps/gladevcp/mdi-command-example/whoareyou.ui
The panel appears in axis, and I can press the button, but the mdi message doesn't appear. I can manually type the command (MSG,"Hello") in the MDI and that works correctly.
Am I missing something?
I'm using master from a couple of weeks ago.
Please Log in to join the conversation.
7 years 3 weeks ago #147370
by cmorley
Replied by cmorley on topic Can't get mdi action to fire
can you post the ui file?
Please Log in to join the conversation.
- ftkalcevic
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 28
- Thank you received: 0
7 years 3 weeks ago #147372
by ftkalcevic
Replied by ftkalcevic on topic Can't get mdi action to fire
It's the stock example in the configs directory. I am running on an old Ubuntu 12.04 Virtual Machine. Is it maybe an old version of a library?
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-requires gladevcp 0.0 -->
<!-- interface-naming-policy project-wide -->
<object class="GtkWindow" id="window1">
<child>
<object class="GtkButton" id="button1">
<property name="label" translatable="yes">Who are you?</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="related_action">hal_action_mdi1</property>
</object>
</child>
</object>
<object class="EMC_Action_MDI" id="hal_action_mdi1">
<property name="command">(MSG, "Hi, I'm an EMC_Action_MDI")</property>
</object>
</interface>
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-requires gladevcp 0.0 -->
<!-- interface-naming-policy project-wide -->
<object class="GtkWindow" id="window1">
<child>
<object class="GtkButton" id="button1">
<property name="label" translatable="yes">Who are you?</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="related_action">hal_action_mdi1</property>
</object>
</child>
</object>
<object class="EMC_Action_MDI" id="hal_action_mdi1">
<property name="command">(MSG, "Hi, I'm an EMC_Action_MDI")</property>
</object>
</interface>
Please Log in to join the conversation.
Time to create page: 0.082 seconds
