X-Git-Url: https://git.distorted.org.uk/~mdw/xtoys/blobdiff_plain/bce8c6eed8bd2fb91fc505a26483e449aefac819..6935312784f67deae46153e7c0761142dbec0024:/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 == '@':