Skip to content

Commit f47d6f7

Browse files
committed
gmoccapy: fix buttons in restart dialog (run from line) (fixes #2413)
The reason was the conversion of the calculatorwidget to non-deprecated widgests in #2381. So the Gtk.Table was converted to a Gtk.Grid which has different paramaters.
1 parent 3df2828 commit f47d6f7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/emc/usr_intf/gmoccapy/dialogs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ def on_enter_button(widget, obj, calc):
236236
downbutton.set_image(Gtk.Image.new_from_icon_name("go-down", Gtk.IconSize.BUTTON))
237237
enterbutton = Gtk.Button.new_with_mnemonic(_("_Jump to"))
238238
enterbutton.set_image(Gtk.Image.new_from_icon_name("go-jump", Gtk.IconSize.BUTTON))
239-
calc.table.attach(upbutton,3,4,1,2)
240-
calc.table.attach(downbutton,3,4,2,3)
241-
calc.table.attach(enterbutton,3,4,3,4)
239+
calc.table.attach(upbutton,3,1,1,1)
240+
calc.table.attach(downbutton,3,2,1,1)
241+
calc.table.attach(enterbutton,3,3,1,1)
242242
upbutton.connect("clicked", restart_up, caller, calc)
243243
downbutton.connect("clicked", restart_down, caller, calc)
244244
enterbutton.connect("clicked", on_enter_button, caller, calc)

0 commit comments

Comments
 (0)