Skip to content

Commit

Permalink
xfce-bluetooth-agent: create dialog for displaying pin code
Browse files Browse the repository at this point in the history
  • Loading branch information
ncopa committed Jan 20, 2015
1 parent 51d943a commit e235de9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xfce-bluetooth-agent.vala
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ public class BluezAgent : GLib.Object {
}
public void display_pin_code(ObjectPath device, string pincode) {
stdout.printf("BluezAgent: display_pin_code(%s, %s)\n", device, pincode);
Gtk.MessageDialog dlg = new Gtk.MessageDialog(null, Gtk.DialogFlags.MODAL,
Gtk.MessageType.INFO,
Gtk.ButtonsType.OK, "Pincode for %s: %s", device, pincode);
dlg.run();
}
public uint32 request_pass_key(ObjectPath device) {
stdout.printf("BluezAgent: request_pass_key(%s)\n", device);
Expand Down

0 comments on commit e235de9

Please sign in to comment.