Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package bluetuith for openSUSE:Factory checked in at 2023-07-10 16:39:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bluetuith (Old) and /work/SRC/openSUSE:Factory/.bluetuith.new.23466 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "bluetuith" Mon Jul 10 16:39:56 2023 rev:3 rq:1097861 version:0.1.6 Changes: -------- --- /work/SRC/openSUSE:Factory/bluetuith/bluetuith.changes 2023-06-23 21:53:20.262866996 +0200 +++ /work/SRC/openSUSE:Factory/.bluetuith.new.23466/bluetuith.changes 2023-07-10 16:40:00.358580506 +0200 @@ -1,0 +2,7 @@ +Mon Jul 10 05:47:43 UTC 2023 - Michael Vetter <mvet...@suse.com> + +- Update to 0.1.5: + * ui: device: Show address if name is empty + * agent: Display pincode in a modal #14 + +------------------------------------------------------------------- Old: ---- bluetuith-0.1.5.tar.gz New: ---- bluetuith-0.1.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bluetuith.spec ++++++ --- /var/tmp/diff_new_pack.HpR2WU/_old 2023-07-10 16:40:01.230585702 +0200 +++ /var/tmp/diff_new_pack.HpR2WU/_new 2023-07-10 16:40:01.234585726 +0200 @@ -17,7 +17,7 @@ Name: bluetuith -Version: 0.1.5 +Version: 0.1.6 Release: 0 Summary: A TUI bluetooth manager for Linux License: MIT ++++++ _service ++++++ --- /var/tmp/diff_new_pack.HpR2WU/_old 2023-07-10 16:40:01.270585941 +0200 +++ /var/tmp/diff_new_pack.HpR2WU/_new 2023-07-10 16:40:01.274585964 +0200 @@ -3,7 +3,7 @@ <param name="url">https://github.com/darkhz/bluetuith.git</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">v0.1.5</param> + <param name="revision">v0.1.6</param> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> </service> ++++++ bluetuith-0.1.5.tar.gz -> bluetuith-0.1.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bluetuith-0.1.5/agent/agent.go new/bluetuith-0.1.6/agent/agent.go --- old/bluetuith-0.1.5/agent/agent.go 2023-06-22 06:32:31.000000000 +0200 +++ new/bluetuith-0.1.6/agent/agent.go 2023-07-08 19:52:52.000000000 +0200 @@ -4,7 +4,10 @@ "errors" "fmt" + "github.com/darkhz/bluetuith/theme" "github.com/darkhz/bluetuith/ui" + "github.com/darkhz/tview" + "github.com/gdamore/tcell/v2" "github.com/godbus/dbus/v5" "github.com/godbus/dbus/v5/introspect" ) @@ -134,8 +137,37 @@ return dbus.MakeFailedError(err) } - msg := fmt.Sprintf("Pincode for %s is %s", device.Name, pincode) - ui.InfoMessage(msg, false) + pincodeTable := tview.NewTable() + pincodeTable.SetBorder(true) + pincodeTable.SetTitle("Pin Code") + pincodeTable.SetSelectable(true, false) + pincodeTable.SetBorderColor(theme.GetColor("Border")) + pincodeTable.SetBackgroundColor(theme.GetColor("Background")) + pincodeTable.SetTitle(theme.ColorWrap("Text", "[ PIN CODE ]")) + pincodeTable.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { + switch event.Key() { + case tcell.KeyEscape: + ui.Pages.RemovePage("pincode") + } + + return event + }) + + pincodeTable.SetCell(0, 0, tview.NewTableCell("[::b]"+device.Name+":"). + SetExpansion(1). + SetAlign(tview.AlignRight). + SetTextColor(theme.GetColor("Text")), + ) + pincodeTable.SetCell(0, 1, tview.NewTableCell("[::u]"+pincode). + SetExpansion(1). + SetTextColor(theme.GetColor("Text")), + ) + + pincodeTable.Select(0, 0) + + go ui.App.QueueUpdateDraw(func() { + ui.ShowModal("pincode", pincodeTable, 10, 100) + }) return nil } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bluetuith-0.1.5/ui/device.go new/bluetuith-0.1.6/ui/device.go --- old/bluetuith-0.1.5/ui/device.go 2023-06-22 06:32:31.000000000 +0200 +++ new/bluetuith-0.1.6/ui/device.go 2023-07-08 19:52:52.000000000 +0200 @@ -232,7 +232,7 @@ ) } - showModal("infomodal", deviceInfoTable, 60, 1) + ShowModal("infomodal", deviceInfoTable, 60, 1) } // getDeviceFromSelection retrieves device information from @@ -275,6 +275,9 @@ var props string name := device.Name + if name == "" { + name = device.Address + } name += theme.ColorWrap("DeviceType", " ("+device.Type+")") nameColor := "Device" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bluetuith-0.1.5/ui/help.go new/bluetuith-0.1.6/ui/help.go --- old/bluetuith-0.1.5/ui/help.go 2023-06-22 06:32:31.000000000 +0200 +++ new/bluetuith-0.1.6/ui/help.go 2023-07-08 19:52:52.000000000 +0200 @@ -124,5 +124,5 @@ } - showModal("helpmodal", helpTable, 20, 60) + ShowModal("helpmodal", helpTable, 20, 60) } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bluetuith-0.1.5/ui/modal.go new/bluetuith-0.1.6/ui/modal.go --- old/bluetuith-0.1.5/ui/modal.go 2023-06-22 06:32:31.000000000 +0200 +++ new/bluetuith-0.1.6/ui/modal.go 2023-07-08 19:52:52.000000000 +0200 @@ -2,7 +2,7 @@ import "github.com/darkhz/tview" -func showModal(page string, table *tview.Table, proportions ...int) { +func ShowModal(page string, table *tview.Table, proportions ...int) { prevPage, _ := Pages.GetFrontPage() height := proportions[0] ++++++ vendor.tar.gz ++++++