Hello community,

here is the log from the commit of package rehex for openSUSE:Factory checked 
in at 2020-11-15 15:26:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rehex (Old)
 and      /work/SRC/openSUSE:Factory/.rehex.new.24930 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rehex"

Sun Nov 15 15:26:55 2020 rev:2 rq:848431 version:0.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/rehex/rehex.changes      2020-11-12 
22:45:55.702551200 +0100
+++ /work/SRC/openSUSE:Factory/.rehex.new.24930/rehex.changes   2020-11-15 
15:27:46.463540259 +0100
@@ -1,0 +2,10 @@
+Fri Nov 13 22:41:17 UTC 2020 - Michael Vetter <[email protected]>
+
+- Update to 0.3.1 (2020-11-13)
+  * Correctly display signed 16-bit values in "Decode values" panel.
+  * Fix status bar offset going out of sync.
+  * Move cursor when a row in the "Comments" panel is double clicked.
+  * Focus document after updating position/selection via "Comments"
+    panel.
+
+-------------------------------------------------------------------

Old:
----
  rehex-0.3.0.tar.gz

New:
----
  rehex-0.3.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rehex.spec ++++++
--- /var/tmp/diff_new_pack.9D00Hz/_old  2020-11-15 15:27:46.967540799 +0100
+++ /var/tmp/diff_new_pack.9D00Hz/_new  2020-11-15 15:27:46.971540804 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           rehex
-Version:        0.3.0
+Version:        0.3.1
 Release:        0
 Summary:        Reverse Engineers' Hex Editor
 License:        GPL-2.0-only

++++++ rehex-0.3.0.tar.gz -> rehex-0.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rehex-0.3.0/CHANGES.txt new/rehex-0.3.1/CHANGES.txt
--- old/rehex-0.3.0/CHANGES.txt 2020-11-10 14:01:28.000000000 +0100
+++ new/rehex-0.3.1/CHANGES.txt 2020-11-13 23:16:11.000000000 +0100
@@ -1,3 +1,13 @@
+Version 0.3.1 (2020-11-13)
+
+ * Correctly display signed 16-bit values in "Decode values" panel.
+
+ * Fix status bar offset going out of sync.
+
+ * Move cursor when a row in the "Comments" panel is double clicked.
+
+ * Focus document after updating position/selection via "Comments" panel.
+
 Version 0.3.0 (2020-11-10)
 
  * [Mark Jansen] Use byte grouping setting from main window in diff window.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rehex-0.3.0/Makefile new/rehex-0.3.1/Makefile
--- old/rehex-0.3.0/Makefile    2020-11-10 14:01:28.000000000 +0100
+++ new/rehex-0.3.1/Makefile    2020-11-13 23:16:11.000000000 +0100
@@ -48,17 +48,17 @@
 endif
 
 # Define this for releases
-VERSION := 0.3.0
+VERSION := 0.3.1
 
 # NOTE: Not evaluated when building from dist
 GIT_COMMIT_SHA  ?= $(call shell-or-die,git log -1 --format="%H")
 GIT_COMMIT_TIME  = $(call shell-or-die,git log -1 --format="%ct")
 
 ifdef VERSION
-       LONG_VERSION := Version o3o
+       LONG_VERSION := Version $(VERSION)
 else
-       VERSION      := 7e823f44555b41d443e3fae7460ff6a94c4dd36f
-       LONG_VERSION := Snapshot 7e823f44555b41d443e3fae7460ff6a94c4dd36f
+       VERSION      := 69a1baec92dee55ee60aa0e8b2b3f910546ad508
+       LONG_VERSION := Snapshot 69a1baec92dee55ee60aa0e8b2b3f910546ad508
 endif
 
 DEPDIR := .d
@@ -279,8 +279,8 @@
        git ls-files | xargs cp --parents -t rehex-$(VERSION)/
        
        # Inline any references to the HEAD commit sha/timestamp
-       sed -i -e 
"s|\$7e823f44555b41d443e3fae7460ff6a94c4dd36f|7e823f44555b41d443e3fae7460ff6a94c4dd36f|g"
 rehex-$(VERSION)/Makefile
-       sed -i -e "s|\$1605013060|1605013060|g" rehex-$(VERSION)/Makefile
+       sed -i -e 
"s|\$69a1baec92dee55ee60aa0e8b2b3f910546ad508|69a1baec92dee55ee60aa0e8b2b3f910546ad508|g"
 rehex-$(VERSION)/Makefile
+       sed -i -e "s|\$1605305577|1605305577|g" rehex-$(VERSION)/Makefile
 endif
        
        # Generate reproducible tarball. All files use git commit timestamp.
@@ -288,7 +288,7 @@
                LC_ALL=C sort -z | \
                tar \
                        --format=ustar \
-                       --mtime=@1605013060 \
+                       --mtime=@1605305577 \
                        --owner=0 --group=0 --numeric-owner \
                        --no-recursion --null  -T - \
                        -cf - | \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rehex-0.3.0/README.md new/rehex-0.3.1/README.md
--- old/rehex-0.3.0/README.md   2020-11-10 14:01:28.000000000 +0100
+++ new/rehex-0.3.1/README.md   2020-11-13 23:16:11.000000000 +0100
@@ -68,6 +68,11 @@
     $ sudo dnf install epel-release
     $ sudo dnf copr enable solemnwarning/rehex
     $ sudo dnf install rehex
+
+### openSUSE
+    $ sudo zypper ar obs://editors editors
+    $ sudo zypper ref
+    $ sudo zypper in rehex
 
 ## Building
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rehex-0.3.0/res/Info.plist 
new/rehex-0.3.1/res/Info.plist
--- old/rehex-0.3.0/res/Info.plist      2020-11-10 14:01:28.000000000 +0100
+++ new/rehex-0.3.1/res/Info.plist      2020-11-13 23:16:11.000000000 +0100
@@ -12,7 +12,7 @@
        <string>net.solemnwarning.rehex</string>
        
        <key>CFBundleVersion</key>
-       <string>0.3.0</string>
+       <string>0.3.1</string>
        
        <key>CFBundlePackageType</key>
        <string>APPL</string>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rehex-0.3.0/src/CommentTree.cpp 
new/rehex-0.3.1/src/CommentTree.cpp
--- old/rehex-0.3.0/src/CommentTree.cpp 2020-11-10 14:01:28.000000000 +0100
+++ new/rehex-0.3.1/src/CommentTree.cpp 2020-11-13 23:16:11.000000000 +0100
@@ -40,6 +40,7 @@
 
 BEGIN_EVENT_TABLE(REHex::CommentTree, wxPanel)
        EVT_DATAVIEW_ITEM_CONTEXT_MENU(wxID_ANY, 
REHex::CommentTree::OnContextMenu)
+       EVT_DATAVIEW_ITEM_ACTIVATED(wxID_ANY, REHex::CommentTree::OnActivated)
 END_EVENT_TABLE()
 
 REHex::CommentTree::CommentTree(wxWindow *parent, SharedDocumentPointer 
&document, DocumentCtrl *document_ctrl):
@@ -141,11 +142,25 @@
                {
                        case ID_GOTO:
                                document->set_cursor_position(key->offset);
+                               
+                               CallAfter([this]()
+                               {
+                                       document_ctrl->SetFocus();
+                                       document_ctrl->Refresh(); /* TODO: 
Refresh in DocumentCtrl when it gains focus. */
+                               });
+                               
                                break;
                                
                        case ID_SELECT:
                                document->set_cursor_position(key->offset);
                                document_ctrl->set_selection(key->offset, 
key->length);
+                               
+                               CallAfter([this]()
+                               {
+                                       document_ctrl->SetFocus();
+                                       document_ctrl->Refresh(); /* TODO: 
Refresh in DocumentCtrl when it gains focus. */
+                               });
+                               
                                break;
                                
                        case ID_EDIT_COMMENT:
@@ -176,6 +191,22 @@
        PopupMenu(&menu);
 }
 
+void REHex::CommentTree::OnActivated(wxDataViewEvent &event)
+{
+       assert(document != NULL);
+       
+       const NestedOffsetLengthMapKey *key = 
CommentTreeModel::dv_item_to_key(event.GetItem());
+       assert(key != NULL);
+       
+       document->set_cursor_position(key->offset);
+       
+       CallAfter([this]()
+       {
+               document_ctrl->SetFocus();
+               document_ctrl->Refresh(); /* TODO: Refresh in DocumentCtrl when 
it gains focus. */
+       });
+}
+
 REHex::CommentTreeModel::CommentTreeModel(REHex::Document *document):
        document(document) {}
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rehex-0.3.0/src/CommentTree.hpp 
new/rehex-0.3.1/src/CommentTree.hpp
--- old/rehex-0.3.0/src/CommentTree.hpp 2020-11-10 14:01:28.000000000 +0100
+++ new/rehex-0.3.1/src/CommentTree.hpp 2020-11-13 23:16:11.000000000 +0100
@@ -95,6 +95,7 @@
                        void OnCommentModified(wxCommandEvent &event);
                        
                        void OnContextMenu(wxDataViewEvent &event);
+                       void OnActivated(wxDataViewEvent &event);
                        
                /* Keep at end. */
                DECLARE_EVENT_TABLE()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rehex-0.3.0/src/decodepanel.cpp 
new/rehex-0.3.1/src/decodepanel.cpp
--- old/rehex-0.3.0/src/decodepanel.cpp 2020-11-10 14:01:28.000000000 +0100
+++ new/rehex-0.3.1/src/decodepanel.cpp 2020-11-13 23:16:11.000000000 +0100
@@ -278,20 +278,20 @@
        {
                /* Big endian */
                
-               TC_UPDATE(s16, int16_t, "%" PRId16, be16toh(*(int16_t*)(data)));
-               TC_UPDATE(u16, int16_t, "%" PRIu16, 
be16toh(*(uint16_t*)(data)));
-               TC_UPDATE(h16, int16_t, "%" PRIx16, 
be16toh(*(uint16_t*)(data)));
-               TC_UPDATE(o16, int16_t, "%" PRIo16, 
be16toh(*(uint16_t*)(data)));
-               
-               TC_UPDATE(s32, int32_t, "%" PRId32, be32toh(*(int32_t*)(data)));
-               TC_UPDATE(u32, int32_t, "%" PRIu32, 
be32toh(*(uint32_t*)(data)));
-               TC_UPDATE(h32, int32_t, "%" PRIx32, 
be32toh(*(uint32_t*)(data)));
-               TC_UPDATE(o32, int32_t, "%" PRIo32, 
be32toh(*(uint32_t*)(data)));
-               
-               TC_UPDATE(s64, int64_t, "%" PRId64, be64toh(*(int64_t*)(data)));
-               TC_UPDATE(u64, int64_t, "%" PRIu64, 
be64toh(*(uint64_t*)(data)));
-               TC_UPDATE(h64, int64_t, "%" PRIx64, 
be64toh(*(uint64_t*)(data)));
-               TC_UPDATE(o64, int64_t, "%" PRIo64, 
be64toh(*(uint64_t*)(data)));
+               TC_UPDATE(s16, int16_t, "%" PRId16, 
(int16_t)(be16toh(*(int16_t*)(data))));
+               TC_UPDATE(u16, int16_t, "%" PRIu16, 
(uint16_t)(be16toh(*(uint16_t*)(data))));
+               TC_UPDATE(h16, int16_t, "%" PRIx16, 
(uint16_t)(be16toh(*(uint16_t*)(data))));
+               TC_UPDATE(o16, int16_t, "%" PRIo16, 
(uint16_t)(be16toh(*(uint16_t*)(data))));
+               
+               TC_UPDATE(s32, int32_t, "%" PRId32, 
(int32_t)(be32toh(*(int32_t*)(data))));
+               TC_UPDATE(u32, int32_t, "%" PRIu32, 
(uint32_t)(be32toh(*(uint32_t*)(data))));
+               TC_UPDATE(h32, int32_t, "%" PRIx32, 
(uint32_t)(be32toh(*(uint32_t*)(data))));
+               TC_UPDATE(o32, int32_t, "%" PRIo32, 
(uint32_t)(be32toh(*(uint32_t*)(data))));
+               
+               TC_UPDATE(s64, int64_t, "%" PRId64, 
(int64_t)(be64toh(*(int64_t*)(data))));
+               TC_UPDATE(u64, int64_t, "%" PRIu64, 
(uint64_t)(be64toh(*(uint64_t*)(data))));
+               TC_UPDATE(h64, int64_t, "%" PRIx64, 
(uint64_t)(be64toh(*(uint64_t*)(data))));
+               TC_UPDATE(o64, int64_t, "%" PRIo64, 
(uint64_t)(be64toh(*(uint64_t*)(data))));
                
                TC_UPDATE(f32, float,  "%.9g", beftoh(*(float*)(data)));
                TC_UPDATE(f64, double, "%.9g", bedtoh(*(double*)(data)));
@@ -299,20 +299,20 @@
        else{
                /* Little endian */
                
-               TC_UPDATE(s16, int16_t, "%" PRId16, le16toh(*(int16_t*)(data)));
-               TC_UPDATE(u16, int16_t, "%" PRIu16, 
le16toh(*(uint16_t*)(data)));
-               TC_UPDATE(h16, int16_t, "%" PRIx16, 
le16toh(*(uint16_t*)(data)));
-               TC_UPDATE(o16, int16_t, "%" PRIo16, 
le16toh(*(uint16_t*)(data)));
-               
-               TC_UPDATE(s32, int32_t, "%" PRId32, le32toh(*(int32_t*)(data)));
-               TC_UPDATE(u32, int32_t, "%" PRIu32, 
le32toh(*(uint32_t*)(data)));
-               TC_UPDATE(h32, int32_t, "%" PRIx32, 
le32toh(*(uint32_t*)(data)));
-               TC_UPDATE(o32, int32_t, "%" PRIo32, 
le32toh(*(uint32_t*)(data)));
-               
-               TC_UPDATE(s64, int64_t, "%" PRId64, le64toh(*(int64_t*)(data)));
-               TC_UPDATE(u64, int64_t, "%" PRIu64, 
le64toh(*(uint64_t*)(data)));
-               TC_UPDATE(h64, int64_t, "%" PRIx64, 
le64toh(*(uint64_t*)(data)));
-               TC_UPDATE(o64, int64_t, "%" PRIo64, 
le64toh(*(uint64_t*)(data)));
+               TC_UPDATE(s16, int16_t, "%" PRId16, 
(int16_t)(le16toh(*(int16_t*)(data))));
+               TC_UPDATE(u16, int16_t, "%" PRIu16, 
(uint16_t)(le16toh(*(uint16_t*)(data))));
+               TC_UPDATE(h16, int16_t, "%" PRIx16, 
(uint16_t)(le16toh(*(uint16_t*)(data))));
+               TC_UPDATE(o16, int16_t, "%" PRIo16, 
(uint16_t)(le16toh(*(uint16_t*)(data))));
+               
+               TC_UPDATE(s32, int32_t, "%" PRId32, 
(int32_t)(le32toh(*(int32_t*)(data))));
+               TC_UPDATE(u32, int32_t, "%" PRIu32, 
(uint32_t)(le32toh(*(uint32_t*)(data))));
+               TC_UPDATE(h32, int32_t, "%" PRIx32, 
(uint32_t)(le32toh(*(uint32_t*)(data))));
+               TC_UPDATE(o32, int32_t, "%" PRIo32, 
(uint32_t)(le32toh(*(uint32_t*)(data))));
+               
+               TC_UPDATE(s64, int64_t, "%" PRId64, 
(int64_t)(le64toh(*(int64_t*)(data))));
+               TC_UPDATE(u64, int64_t, "%" PRIu64, 
(uint64_t)(le64toh(*(uint64_t*)(data))));
+               TC_UPDATE(h64, int64_t, "%" PRIx64, 
(uint64_t)(le64toh(*(uint64_t*)(data))));
+               TC_UPDATE(o64, int64_t, "%" PRIo64, 
(uint64_t)(le64toh(*(uint64_t*)(data))));
                
                TC_UPDATE(f32, float,  "%.9g", leftoh(*(float*)(data)));
                TC_UPDATE(f64, double, "%.9g", ledtoh(*(double*)(data)));
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rehex-0.3.0/src/mainwindow.cpp 
new/rehex-0.3.1/src/mainwindow.cpp
--- old/rehex-0.3.0/src/mainwindow.cpp  2020-11-10 14:01:28.000000000 +0100
+++ new/rehex-0.3.1/src/mainwindow.cpp  2020-11-13 23:16:11.000000000 +0100
@@ -901,7 +901,7 @@
        
        tab->doc_ctrl->set_offset_display_base(OFFSET_BASE_HEX);
        
-       _update_status_offset(tab->doc_ctrl);
+       _update_status_offset(tab);
        _update_status_selection(tab->doc_ctrl);
 }
 
@@ -911,7 +911,7 @@
        
        tab->doc_ctrl->set_offset_display_base(OFFSET_BASE_DEC);
        
-       _update_status_offset(tab->doc_ctrl);
+       _update_status_offset(tab);
        _update_status_selection(tab->doc_ctrl);
 }
 
@@ -1013,7 +1013,7 @@
                tool_panels_menu->Check(menu_id, active);
        }
        
-       _update_status_offset(tab->doc_ctrl);
+       _update_status_offset(tab);
        _update_status_selection(tab->doc_ctrl);
        _update_status_mode(tab->doc_ctrl);
        _update_undo(tab->doc);
@@ -1121,7 +1121,7 @@
                /* Only update the status bar if the event originated from the
                 * active document.
                */
-               _update_status_offset(active_tab->doc_ctrl);
+               _update_status_offset(active_tab);
        }
        
        event.Skip();
@@ -1235,11 +1235,11 @@
        return active_tab()->doc;
 }
 
-void REHex::MainWindow::_update_status_offset(REHex::DocumentCtrl *doc_ctrl)
+void REHex::MainWindow::_update_status_offset(Tab *tab)
 {
-       off_t off = doc_ctrl->get_cursor_position();
+       off_t off = tab->doc->get_cursor_position();
        
-       std::string off_text = format_offset(off, 
doc_ctrl->get_offset_display_base());
+       std::string off_text = format_offset(off, 
tab->doc_ctrl->get_offset_display_base());
        
        SetStatusText(off_text, 0);
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rehex-0.3.0/src/mainwindow.hpp 
new/rehex-0.3.1/src/mainwindow.hpp
--- old/rehex-0.3.0/src/mainwindow.hpp  2020-11-10 14:01:28.000000000 +0100
+++ new/rehex-0.3.1/src/mainwindow.hpp  2020-11-13 23:16:11.000000000 +0100
@@ -122,7 +122,7 @@
                        Tab *active_tab();
                        Document *active_document();
                        
-                       void _update_status_offset(REHex::DocumentCtrl 
*doc_ctrl);
+                       void _update_status_offset(Tab *tab);
                        void _update_status_selection(REHex::DocumentCtrl 
*doc_ctrl);
                        void _update_status_mode(REHex::DocumentCtrl *doc_ctrl);
                        void _update_undo(REHex::Document *doc);
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to