summaryrefslogtreecommitdiffstats
path: root/development/bless/patches
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2018-08-13 11:26:28 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-18 08:39:47 +0700
commit928d612ac5feeb0ca1feb9b4938cf209e11c1fce (patch)
tree66f3a4e2b445b9098646a3fe69f934197260fcc1 /development/bless/patches
parentaad280b6459b93075af2c5f92ffc955adb24c7fc (diff)
downloadslackbuilds-928d612ac5feeb0ca1feb9b4938cf209e11c1fce.tar.gz
slackbuilds-928d612ac5feeb0ca1feb9b4938cf209e11c1fce.tar.xz
development/bless: Added (GUI hex editor).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/bless/patches')
-rw-r--r--development/bless/patches/default_overwrite.patch12
-rw-r--r--development/bless/patches/fix_save.patch12
-rw-r--r--development/bless/patches/fixxmltextwriter.patch31
-rw-r--r--development/bless/patches/force_gtk_action_namespace.patch72
4 files changed, 127 insertions, 0 deletions
diff --git a/development/bless/patches/default_overwrite.patch b/development/bless/patches/default_overwrite.patch
new file mode 100644
index 0000000000..5eec4ba1a3
--- /dev/null
+++ b/development/bless/patches/default_overwrite.patch
@@ -0,0 +1,12 @@
+diff -Naur bless-0.6.0/data/default-preferences.xml bless-0.6.0.patched/data/default-preferences.xml
+--- bless-0.6.0/data/default-preferences.xml 2008-06-07 08:18:12.000000000 -0400
++++ bless-0.6.0.patched/data/default-preferences.xml 2018-08-12 12:36:21.800800175 -0400
+@@ -1,7 +1,7 @@
+ <preferences>
+ <pref name="Session.RememberCursorPosition">True</pref>
+ <pref name="Tools.ConversionTable.LEDecoding">False</pref>
+- <pref name="Default.EditMode">Insert</pref>
++ <pref name="Default.EditMode">Overwrite</pref>
+ <pref name="Tools.ConversionTable.Show">True</pref>
+ <pref name="Tools.Statistics.Show">False</pref>
+ <pref name="Session.RememberWindowGeometry">True</pref>
diff --git a/development/bless/patches/fix_save.patch b/development/bless/patches/fix_save.patch
new file mode 100644
index 0000000000..45e85b932b
--- /dev/null
+++ b/development/bless/patches/fix_save.patch
@@ -0,0 +1,12 @@
+diff -Naur bless-0.6.0/src/buffers/ByteBuffer.cs bless-0.6.0-fixed/src/buffers/ByteBuffer.cs
+--- bless-0.6.0/src/buffers/ByteBuffer.cs 2008-06-07 21:59:25.000000000 +0700
++++ bless-0.6.0-fixed/src/buffers/ByteBuffer.cs 2009-12-11 20:07:42.000000000 +0600
+@@ -957,7 +957,7 @@
+ ///</summary>
+ public string TempDir {
+ get { return tempDir; }
+- set { tempDir = value;}
++ set { if(value != "") tempDir = value; }
+ }
+
+ ///<summary>
diff --git a/development/bless/patches/fixxmltextwriter.patch b/development/bless/patches/fixxmltextwriter.patch
new file mode 100644
index 0000000000..2b241d5525
--- /dev/null
+++ b/development/bless/patches/fixxmltextwriter.patch
@@ -0,0 +1,31 @@
+diff --git a/src/tools/Preferences.cs b/src/tools/Preferences.cs
+index 192bf14..775a83e 100644
+--- a/src/tools/Preferences.cs
++++ b/src/tools/Preferences.cs
+@@ -132,6 +132,7 @@ public class Preferences
+ xml.Indentation = 1;
+ xml.IndentChar = '\t';
+
++ xml.WriteStartDocument(true);
+ xml.WriteStartElement(null, "preferences", null);
+
+ foreach (DictionaryEntry entry in prefs) {
+diff --git a/src/tools/Session.cs b/src/tools/Session.cs
+index 7980cc0..5184632 100644
+--- a/src/tools/Session.cs
++++ b/src/tools/Session.cs
+@@ -77,6 +77,7 @@ public class Session
+ xml.Indentation = 1;
+ xml.IndentChar = '\t';
+
++ xml.WriteStartDocument(true);
+ xml.WriteStartElement(null, "session", null);
+
+ xml.WriteStartElement(null, "windowheight", null);
+@@ -194,4 +195,4 @@ public class SessionFileInfo
+ }
+ }
+
+-} // end namespace
+\ No newline at end of file
++} // end namespace
diff --git a/development/bless/patches/force_gtk_action_namespace.patch b/development/bless/patches/force_gtk_action_namespace.patch
new file mode 100644
index 0000000000..fe722129dc
--- /dev/null
+++ b/development/bless/patches/force_gtk_action_namespace.patch
@@ -0,0 +1,72 @@
+diff -urNad bless-0.5.2.orig/src/gui/plugins/BitwiseOperationsPlugin.cs bless-0.5.2/src/gui/plugins/BitwiseOperationsPlugin.cs
+--- bless-0.5.2.orig/src/gui/plugins/BitwiseOperationsPlugin.cs 2008-04-10 03:50:32.000000000 +0100
++++ bless-0.5.2/src/gui/plugins/BitwiseOperationsPlugin.cs 2008-04-10 03:51:45.000000000 +0100
+@@ -30,6 +30,8 @@
+ using Bless.Buffers;
+ using Mono.Unix;
+
++using Action = Gtk.Action;
++
+ namespace Bless.Gui.Plugins {
+
+ ///<summary>
+diff -urNad bless-0.5.2.orig/src/gui/plugins/EditOperationsPlugin.cs bless-0.5.2/src/gui/plugins/EditOperationsPlugin.cs
+--- bless-0.5.2.orig/src/gui/plugins/EditOperationsPlugin.cs 2008-04-10 03:50:32.000000000 +0100
++++ bless-0.5.2/src/gui/plugins/EditOperationsPlugin.cs 2008-04-10 03:52:06.000000000 +0100
+@@ -27,6 +27,8 @@
+ using Bless.Gui.Dialogs;
+ using Bless.Tools;
+
++using Action = Gtk.Action;
++
+ namespace Bless.Gui.Plugins {
+
+ public class EditOperationsPlugin : GuiPlugin
+diff -urNad bless-0.5.2.orig/src/gui/plugins/FileOperationsPlugin.cs bless-0.5.2/src/gui/plugins/FileOperationsPlugin.cs
+--- bless-0.5.2.orig/src/gui/plugins/FileOperationsPlugin.cs 2008-04-10 03:50:32.000000000 +0100
++++ bless-0.5.2/src/gui/plugins/FileOperationsPlugin.cs 2008-04-10 03:52:26.000000000 +0100
+@@ -29,6 +29,8 @@
+ using Gtk;
+ using Mono.Unix;
+
++using Action = Gtk.Action;
++
+ namespace Bless.Gui.Plugins {
+
+ public class FileOperationsPlugin : GuiPlugin
+diff -urNad bless-0.5.2.orig/src/gui/plugins/FindReplacePlugin.cs bless-0.5.2/src/gui/plugins/FindReplacePlugin.cs
+--- bless-0.5.2.orig/src/gui/plugins/FindReplacePlugin.cs 2008-04-10 03:50:32.000000000 +0100
++++ bless-0.5.2/src/gui/plugins/FindReplacePlugin.cs 2008-04-10 03:51:21.000000000 +0100
+@@ -31,6 +31,8 @@
+ using Bless.Plugins;
+ using Mono.Unix;
+
++using Action = Gtk.Action;
++
+ namespace Bless.Gui.Plugins {
+
+ public class FindReplacePlugin : GuiPlugin
+diff -urNad bless-0.5.2.orig/src/gui/plugins/HistoryPlugin.cs bless-0.5.2/src/gui/plugins/HistoryPlugin.cs
+--- bless-0.5.2.orig/src/gui/plugins/HistoryPlugin.cs 2008-04-10 03:50:32.000000000 +0100
++++ bless-0.5.2/src/gui/plugins/HistoryPlugin.cs 2008-04-10 03:53:22.000000000 +0100
+@@ -26,6 +26,8 @@
+ using Bless.Gui;
+ using Bless.Tools;
+
++using Action = Gtk.Action;
++
+ namespace Bless.Gui.Plugins {
+
+ public class HistoryPlugin : GuiPlugin
+diff -urNad bless-0.5.2.orig/src/gui/plugins/InfobarPlugin.cs bless-0.5.2/src/gui/plugins/InfobarPlugin.cs
+--- bless-0.5.2.orig/src/gui/plugins/InfobarPlugin.cs 2008-04-10 03:50:32.000000000 +0100
++++ bless-0.5.2/src/gui/plugins/InfobarPlugin.cs 2008-04-10 03:52:48.000000000 +0100
+@@ -28,6 +28,8 @@
+ using Bless.Tools;
+ using Mono.Unix;
+
++using Action = Gtk.Action;
++
+ namespace Bless.Gui.Plugins {
+
+ public class InfobarPlugin : GuiPlugin