~mdw
/
xtoys
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release 1.5.0.
[xtoys]
/
xgetline.in
diff --git
a/xgetline.in
b/xgetline.in
index
8f649d5
..
d21c678
100644
(file)
--- a/
xgetline.in
+++ b/
xgetline.in
@@
-215,10
+215,6
@@
def make_window(opts):
box.set_border_width(4)
win.add(box)
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()
## Choose the appropriate widget.
if opts.file is None:
entry = SimpleEntry()
@@
-238,6
+234,13
@@
def make_window(opts):
else:
raise
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 == '@':
## Insert the widget and configure it.
box.pack_start(entry, True)
if opts.default == '@':