Skip to content

Commit

Permalink
gmoccapy: fix setting of keyboard size only in window mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hansu committed Jan 1, 2024
1 parent 9879bab commit ed3b296
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/emc/usr_intf/gmoccapy/gmoccapy.glade
Original file line number Diff line number Diff line change
Expand Up @@ -3065,8 +3065,6 @@
<object class="GtkBox" id="key_box">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="homogeneous">True</property>
<child>
<placeholder/>
Expand Down
14 changes: 7 additions & 7 deletions src/emc/usr_intf/gmoccapy/gmoccapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2931,13 +2931,13 @@ def on_window1_show(self, widget, data=None):
self.widgets.window1.move(self.xpos, self.ypos)
self.widgets.window1.resize(self.width, self.height)

# keyboard size
self.widgets.chk_kbd_set_height.set_active(self.kbd_set_height)
self.widgets.chk_kbd_set_width.set_active(self.kbd_set_width)
self.widgets.adj_kbd_height.set_value(self.kbd_height)
self.widgets.adj_kbd_width.set_value(self.kbd_width)
self._update_kbd_height(self.kbd_set_height)
self._update_kbd_width(self.kbd_set_width)
# keyboard size
self.widgets.chk_kbd_set_height.set_active(self.kbd_set_height)
self.widgets.chk_kbd_set_width.set_active(self.kbd_set_width)
self.widgets.adj_kbd_height.set_value(self.kbd_height)
self.widgets.adj_kbd_width.set_value(self.kbd_width)
self._update_kbd_height(self.kbd_set_height)
self._update_kbd_width(self.kbd_set_width)

# set initial state of widgets
self.touch_button_dic["set_active"].set_sensitive(False)
Expand Down

0 comments on commit ed3b296

Please sign in to comment.