Re: [PATCH] Add flat view mode option to directory diff
- From: Piotr Piastucki <leech miranda gmail com>
- To: Kai <kai willadsen gmail com>
- Cc: meld-list <meld-list gnome org>
- Subject: Re: [PATCH] Add flat view mode option to directory diff
- Date: Sun, 20 Mar 2011 20:53:02 +0100
On Sun, Mar 20, 2011 at 3:05 AM, Kai
<kai willadsen gmail com> wrote:
On 3 March 2011 01:03, Piotr Piastucki <
leech miranda gmail com> wrote:
> Hi,
>
> I'm attaching a patch that adds a flat view mode to dir diff. I found it
> quite useful in some cases, especially when the folder hierarchy is pretty
> complex yet there are few modified files.
I like the feature, I think it's useful, and I'd love to merge it.
However, this patch raises all sorts of issues that ring alarm bells.
The big one is that I'd naively expect that the 'right' way to switch
between flat and tree-based views would be entirely TreeView based,
whereas this patch has a lot of TreeStore-based logic.
It may require some larger changes to the underlying store, but I'd
think that Flatten mode should really be implementable using a
TreeViewFilter and some minor treeview display toggles.
I will be happy to implement this feature in a more appropriate way but I �am not quite sure how it should be implemented and I will be grateful for some guidance. As far as I can tell based on my limited experience with gtk.TreeModelFilter it filters out selected nodes along with their children, so this is not the behaviour we are looking for (see also�
http://www.mail-archive.com/pygtk daa com au/msg18936.html). However, I am not an expert when it comes to GTK and maybe there are some hacks that will make�TreeModelFilter work differently. Any hints will be most appreciated.�
Piotr
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]