+++ /dev/null
-diff -uNr bless-0.4.0.orig/src/ByteBuffer/SaveAsOperation.cs bless-0.4.0/src/ByteBuffer/SaveAsOperation.cs
---- bless-0.4.0.orig/src/ByteBuffer/SaveAsOperation.cs 2005-09-11 18:22:16.000000000 +0200
-+++ bless-0.4.0/src/ByteBuffer/SaveAsOperation.cs 2006-04-03 08:03:21.000000000 +0200
-@@ -63,8 +63,8 @@
- {
- #if ENABLE_UNIX_SPECIFIC
- // get info about the device the file will be saved on
-- Mono.Unix.Statvfs stat=new Mono.Unix.Statvfs();
-- Mono.Unix.Syscall.statvfs(Path.GetDirectoryName(fn), out stat);
-+ Mono.Unix.Native.Statvfs stat=new Mono.Unix.Native.Statvfs();
-+ Mono.Unix.Native.Syscall.statvfs(Path.GetDirectoryName(fn), out stat);
-
- long freeSpace=(long)(stat.f_bavail*stat.f_bsize);
-
-diff -uNr bless-0.4.0.orig/src/ByteBuffer/SaveOperation.cs bless-0.4.0/src/ByteBuffer/SaveOperation.cs
---- bless-0.4.0.orig/src/ByteBuffer/SaveOperation.cs 2005-05-11 22:10:19.000000000 +0200
-+++ bless-0.4.0/src/ByteBuffer/SaveOperation.cs 2006-04-03 08:03:09.000000000 +0200
-@@ -53,8 +53,8 @@
- // get info about the device the file will be saved on
- FileInfo fi=new FileInfo(bb.Filename);
-
-- Mono.Unix.Statvfs stat=new Mono.Unix.Statvfs();
-- Mono.Unix.Syscall.statvfs(bb.Filename, out stat);
-+ Mono.Unix.Native.Statvfs stat=new Mono.Unix.Native.Statvfs();
-+ Mono.Unix.Native.Syscall.statvfs(bb.Filename, out stat);
-
- long freeSpace=(long)(stat.f_bavail*stat.f_bsize) + fi.Length;
-
-diff -uNr bless-0.4.0.orig/src/gui/dialogs/SaveConfirmationMultiAlert.cs bless-0.4.0/src/gui/dialogs/SaveConfirmationMultiAlert.cs
---- bless-0.4.0.orig/src/gui/dialogs/SaveConfirmationMultiAlert.cs 2005-02-07 12:46:46.000000000 +0100
-+++ bless-0.4.0/src/gui/dialogs/SaveConfirmationMultiAlert.cs 2006-04-05 03:42:24.000000000 +0200
-@@ -78,12 +78,11 @@
-
- tv.AppendColumn ("Save", crt, "active", 0);
- tv.AppendColumn ("Name", new CellRendererText(), "text", 1);
--
-- foreach (SaveFileItem item in list) {
-- item.Save=true;
-- store.AppendValues(item.Save, item.Name);
-+
-+ for (int i=0; i<list.Length; ++i) {
-+ list[i].Save=true;
-+ store.AppendValues(list[i].Save, list[i].Name);
- }
--
- return tv;
- }
-
--- /dev/null
+--- bless-0.4.1/src/gui/drawers/Drawer.cs.orig 2006-09-21 17:31:58.000000000 +0200
++++ bless-0.4.1/src/gui/drawers/Drawer.cs 2006-09-21 17:33:33.000000000 +0200
+@@ -179,20 +179,13 @@
+ Pango.Context pangoCtx=widget.PangoContext;
+ Pango.FontMetrics fm=pangoCtx.GetMetrics(fontDescription, lang);
+
+- // set the font height and width
+- height =(int)( (fm.Ascent+fm.Descent)/Pango.Scale.PangoScale);
+- width =(int) ((fm.ApproximateCharWidth)/Pango.Scale.PangoScale);
+-
+- // temporary workaround for font width problem
+- int fontWidthFix;
+- try {
+- fontWidthFix = Convert.ToInt32(Preferences.Instance["FontWidthFix"]);
+- }
+- catch (Exception e) {
+- fontWidthFix = 0;
+- }
+-
+- width += fontWidthFix;
++ // set the font height and width
++ // BUGFIX:
++ Pango.Layout layout = new Pango.Layout(pangoCtx);
++ layout.FontDescription = fontDescription;
++ layout.SetText("A"); // check for a single character
++ layout.GetPixelSize(out width, out height);
++ // END OF FIX
+
+ // create the font pixmaps
+ InitializePixmaps();
Summary: Hex Editor written in GTK#
Summary(pl): Edytor szesnastkowy napisany w GTK#
Name: bless
-Version: 0.4.0
+Version: 0.4.1
Release: 1
License: GPL
Group: Applications/Editors
Source0: http://download.gna.org/bless/%{name}-%{version}.tar.gz
-# Source0-md5: e161996a67155303d9e6a04fa28662ca
+# Source0-md5: a3551ebecda11b115e98608894f5c0ec
Source1: %{name}.desktop
Patch0: %{name}-DESTDIR.patch
Patch1: %{name}-help.patch
-Patch2: %{name}-buildfixes.patch
+Patch2: %{name}-glyphs_overlap.patch
URL: http://home.gna.org/bless/
BuildRequires: autoconf
BuildRequires: automake