X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/xtoys/blobdiff_plain/aac5a363bd1bc5423a00ddc31a57b64e3bce80dd..583efdd398e53f1c84dd6591b73d044a10bd6a85:/xgetline.in diff --git a/xgetline.in b/xgetline.in index 8f649d5..d21c678 100644 --- a/xgetline.in +++ b/xgetline.in @@ -215,10 +215,6 @@ def make_window(opts): box.set_border_width(4) win.add(box) - ## If we have a prompt, insert it. - if opts.prompt is not None: - box.pack_start(GTK.Label(opts.prompt), False) - ## Choose the appropriate widget. if opts.file is None: entry = SimpleEntry() @@ -238,6 +234,13 @@ def make_window(opts): else: raise + ## If we have a prompt, insert it. + if opts.prompt is not None: + label = GTK.Label(opts.prompt) + label.set_properties(mnemonic_widget = entry, + use_underline = True) + box.pack_start(label, False) + ## Insert the widget and configure it. box.pack_start(entry, True) if opts.default == '@':