Release 1.6.0.
[xtoys] / xgetline.in
index 8f649d5..d21c678 100644 (file)
@@ -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 == '@':