Bug#722099: libkatepartinterfaces4: folded text does not unfold when clicking on the sidebar fold icon (using INI file)

2013-09-07 Thread Alexis M.
I attach another patch to fix the minor bug about when folding a section,
the name of the next section was folded too:
-
[section1]
key1=value1

[section2]
key2=value2

-

When folding section1, it became like that:
-
[section1]
key2=value2

-

instead of:
-
[section1]
[section2]
key2=value2

-

So this patch fix that (along with the first bug about not being able to
unfold sections).


libkatepartinterfaces4-fix-unfold-ini-files.patch
Description: Binary data


Bug#722099: libkatepartinterfaces4: folded text does not unfold when clicking on the sidebar fold icon (using INI file)

2013-09-07 Thread Alexis M.
Package: libkatepartinterfaces4
Version: 4:4.10.5-2
Severity: normal
Tags: patch

Dear Maintainer,

   * What led up to the situation?
Using KWrite and/or Kate to edit ini text files and using the folding
feature of these editor.

   * What exactly did you do (or not do) that was effective (or
 ineffective)?
Open a INI file in Kate or KWrite.
Fold a section (not the first).
Try to unfold the folded section by clicking on the arrow icon on the
left sidebar, it will fold the section above the folded section
instead of unfolding the section next to the arrow icon.

   * What was the outcome of this action?
the click on the folded icon will fold the section above the folded
section.

   * What outcome did you expect instead?
   It should unfold the section next to the folded icon.

The only way to unfold the folded section is to use menus and unfold all top
level sections.
Restarting KWrite or Kate don't unfold the section as the fold state is saved.
So the folding feature is not really usable for these types of files.

However, I managed to correct this problem using the provided patch.
But there is still another minor bug, when folding a section, it fold the
section name of the next section. But at least, folded sections are unfoldable.



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libkatepartinterfaces4 depends on:
ii  libc62.17-92+b1
ii  libkcmutils4 4:4.10.5-1
ii  libkdecore5  4:4.10.5-1
ii  libkdeui54:4.10.5-1
ii  libkio5  4:4.10.5-1
ii  libknewstuff3-4  4:4.10.5-1
ii  libkparts4   4:4.10.5-1
ii  libktexteditor4  4:4.10.5-1
ii  libqt4-dbus  4:4.8.5+dfsg-3
ii  libqt4-script4:4.8.5+dfsg-3
ii  libqt4-xml   4:4.8.5+dfsg-3
ii  libqtcore4   4:4.8.5+dfsg-3
ii  libqtgui44:4.8.5+dfsg-3
ii  libstdc++6   4.8.1-2

libkatepartinterfaces4 recommends no packages.

libkatepartinterfaces4 suggests no packages.

-- no debconf information
--- kate-4.10.5.orig/part/view/kateviewhelpers.cpp
+++ kate-4.10.5/part/view/kateviewhelpers.cpp
@@ -1962,13 +1962,14 @@ void KateIconBorder::showBlock()
   else
 newRange = KTextEditor::Range(beg, m_viewInternal->doc()->documentEnd());
 }
-KateLineInfo info;
-tree->getLineInfo(&info, m_currentBlockLine);
-if ((info.startsVisibleBlock)) {
+if ((node->isVisible())) {
   node=tree->findNodeStartingAt(m_currentBlockLine);
   if (node) {
-if (node != tree->rootNode () && node->getBegin(tree, &beg) && node->getEnd(tree, &end)) {
-  newRange = KTextEditor::Range(beg, end);
+if (node != tree->rootNode () && node->getBegin(tree, &beg)) {
+  if (node->getEnd(tree, &end))
+newRange = KTextEditor::Range(beg, end);
+  else
+newRange = KTextEditor::Range(beg, m_viewInternal->doc()->documentEnd());
 }
   }
 }


Bug#719763: QT4 FTBFS on mips64(el) and mipsn32(el)

2013-09-07 Thread YunQiang Su
Hi, this patch has been accepted by upstream to qt4 and qt5.

On Wed, Aug 28, 2013 at 12:18 AM, Lisandro Damián Nicanor Pérez Meyer
 wrote:
> On Tuesday 27 August 2013 11:43:49 YunQiang Su wrote:
>> hi, I forward this bug to upstream as
>> https://bugreports.qt-project.org/browse/QTBUG-33187
>
> Just saw it. I saddly forgot that upstream can't take patches from the bug
> tracker but from gerrit. Would you mind pushing your changes there?
>
> Gerrit uses the same login info as the bugtracker.
>
> --
>
> Lisandro Damián Nicanor Pérez Meyer
> http://perezmeyer.com.ar/
> http://perezmeyer.blogspot.com/



-- 
YunQiang Su


--
To UNSUBSCRIBE, email to debian-qt-kde-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cakcpw6wo35jx8moajpm8ebfgronhzjil33xoajqsnh9sx...@mail.gmail.com