Quantcast

Drag from Gallery Tab of Source or Person Editor in Gramps 3.3 from svn

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Drag from Gallery Tab of Source or Person Editor in Gramps 3.3 from svn

Helge@Gramps
Hi,

I did file the Issue 4874 because for two environments using Python 2.7.1 in Win7 the drag-function from Gallery Tab of Source or Person Editor in Gramps 3.3 (from svn 17392) doesn't work.
In both cases I did use the environment based on the AOI installation forced to use Gramps 3.3 from svn (17392) .

Any idea or suggestion?
-Helge
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drag from Gallery Tab of Source or Person Editor in Gramps 3.3 from svn

Josip-3
On 03.05.2011 22:37, Helge@Gramps wrote:

> Hi,
>
> I did file the  http://www.gramps-project.org/bugs/view.php?id=4874 Issue
> 4874  because for two environments using Python 2.7.1 in Win7 the
> drag-function from Gallery Tab of Source or Person Editor in Gramps 3.3
> (from svn 17392) doesn't work.
> In both cases I did use the environment based on the AOI installation forced
> to use Gramps 3.3 from svn (17392) .
>
> Any idea or suggestion?
>

DnD problem in Windows version of GTK.
https://bugzilla.gnome.org/show_bug.cgi?id=641924

--
Josip

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drag from Gallery Tab of Source or Person Editor in Gramps 3.3 from svn

Helge@Gramps
Josip,

Thank you for reply. I'm hopeful to have it running in the near future using GTK+ 2.22+.
I too think about to go back to GTK+ 2.16+, but I did never got a running osmgpsmap using GTK+ 2.16+.
Do you have any experiences doing that?
-Helge
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drag from Gallery Tab of Source or Person Editor in Gramps 3.3 from svn

Josip-3
On 03.05.2011 23:01, Helge@Gramps wrote:
> Josip,
>
> Thank you for reply. I'm hopeful to have it running in the near future using
> GTK+ 2.22+.
> I too think about to go back to GTK+ 2.16+, but I did never got a running
> osmgpsmap using GTK+ 2.16+.
> Do you have any experiences doing that?
> -Helge
>

No and i will not use anything much older then linux version i use (i
like new things).
Don't see any reason why they shouldn't work with 2.16 also but cos i
don't use windows for development can't really help you about building it.

As DnD works in some parts of Gramps and in other not, then we probably
just need to change code in second with working one.


--
Josip

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drag from Gallery Tab of Source or Person Editor in Gramps 3.3 from svn

Helge@Gramps
OK, so I'll try to assemble such a  GTK+2.16 based AOI running also osmgpsmap using all the stuff on my computer for GTK+2.16 within the next few days. Hoping I find a way to get it. Because I need DnD and like Geoview ...
-Helge
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drag from Gallery Tab of Source or Person Editor in Gramps 3.3 from svn

Helge@Gramps
I'm really at the end of my possibilities trying to run Gramps 3.3 using osmgpsmap on Win7 for
Python    2.6.6
GTK+      2.16.6
pyGTK     2.16.0
gobject   2.20.0
cairo     1.4.12
enchant   1.5.3

osmgpsmap runs very well for your AOI package:
Python    2.7.1
GTK+      2.24.4
pyGTK     2.24.0
gobject   2.26. (I tried too: 2.28.3)
cairo     1.8.10
enchant   1.6.3
But this environment is useless for me because drag and drop does not work: neither for the galleries nor for any other action, especially DnD to the clipboard does not work!
See also issue 4874 or issue 4740.  

Does some one have better experiences for Windows (Win 7)?
-Helge
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drag from Gallery Tab of Source or Person Editor in Gramps 3.3 from svn

Benny Malengier


2011/5/7 Helge@Gramps <[hidden email]>
I'm really at the end of my possibilities trying to run Gramps 3.3 using
osmgpsmap on Win7 for
Python    2.6.6
GTK+      2.16.6
pyGTK     2.16.0
gobject   2.20.0
cairo     1.4.12
enchant   1.5.3

osmgpsmap runs very well for your AOI package:
Python    2.7.1
GTK+      2.24.4
pyGTK     2.24.0
gobject   2.26. (I tried too: 2.28.3)
cairo     1.8.10
enchant   1.6.3
But this environment is useless for me because drag and drop does not work:
neither for the galleries nor for any other action, especially DnD to the
clipboard does not work!
See also  http://www.gramps-project.org/bugs/view.php?id=4874 issue 4874  or
http://www.gramps-project.org/bugs/view.php?id=4740 issue 4740 .

Does some one have better experiences for Windows (Win 7)?

Somebody should debug the DnD code on Win 7. Eg, for mac we have a special workaround to make it work, perhaps Win 7 also has a different behavior now.

Benny
 
-Helge

--
View this message in context: http://gramps.1791082.n4.nabble.com/Drag-from-Gallery-Tab-of-Source-or-Person-Editor-in-Gramps-3-3-from-svn-tp3493498p3505852.html
Sent from the GRAMPS - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drag from Gallery Tab of Source or Person Editor in Gramps 3.3 from svn

Helge@Gramps
I have found additional information to the dnd problem:
http://www.gramps-project.org/bugs/view.php?id=4874#c19334
http://www.gramps-project.org/bugs/view.php?id=4898

May be it's helpful.
- Helge
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drag from Gallery Tab of Source or Person Editor in Gramps 3.3 from svn

Josip-3
In reply to this post by Benny Malengier
On 08.05.2011 09:32, Benny Malengier wrote:
> Somebody should debug the DnD code on Win 7. Eg, for mac we have a
> special workaround to make it work, perhaps Win 7 also has a different
> behavior now.

In gramps33:
Mac workaround from src/ScratchPad.py is not necessary as it work the
same with or without him. DnD is possible from views: Notes, Media,
Events, Sources, Repositories, Families, People to ScratchPad/Clipboard
Gramplet (draging icon) but not for Places (draging row).

DnD in ConfigureView do not work (again drag row but cant drop-it).
It comes from src/gui/columnorder.py using function "set_reordeable()"
which is all TreeView need for DnD, but in new version of GTK for
Windows this doesn't work anymore (DnD must be handled manualy not
automatic with set_reordeable())

Looks (to me) like PlaceView use same logic so that is why is not
working.


--
Josip

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drag from Gallery Tab of Source or Person Editor in Gramps 3.3 from svn

Benny Malengier


2011/5/9 Josip <[hidden email]>
On 08.05.2011 09:32, Benny Malengier wrote:
> Somebody should debug the DnD code on Win 7. Eg, for mac we have a
> special workaround to make it work, perhaps Win 7 also has a different
> behavior now.

In gramps33:
Mac workaround from src/ScratchPad.py is not necessary as it work the
same with or without him. DnD is possible from views: Notes, Media,
Events, Sources, Repositories, Families, People to ScratchPad/Clipboard
Gramplet (draging icon) but not for Places (draging row).

DnD in ConfigureView do not work (again drag row but cant drop-it).
It comes from src/gui/columnorder.py using function "set_reordeable()"
which is all TreeView need for DnD, but in new version of GTK for
Windows this doesn't work anymore (DnD must be handled manualy not
automatic with set_reordeable())

That function should do the trick, http://www.pygtk.org/docs/pygtk/class-gtktreeview.html#method-gtktreeview--set-reorderable

Probably we interfere with it in 3.3 as we don't allow clicks on some rows?
Anyway, the problem now is in 3.2.6, and there nothing changed, so any idea why there are problems there with AIO?

Benny
 

Looks (to me) like PlaceView use same logic so that is why is not
working.


--
Josip

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drag from Gallery Tab of Source or Person Editor in Gramps 3.3 from svn

Josip-3
On 09.05.2011 11:42, Benny Malengier wrote:
>
>
> That function should do the trick,
> http://www.pygtk.org/docs/pygtk/class-gtktreeview.html#method-gtktreeview--set-reorderable
>

Yes she should, but is broken in Windows for several releases of gtk
(2.2x.x) and even in gtk3.
One example of bug report is:
https://bugzilla.gnome.org/show_bug.cgi?id=641924
there you can find pygtk example working fine in Linux but not in Windows.


> Probably we interfere with it in 3.3 as we don't allow clicks on some rows?
> Anyway, the problem now is in 3.2.6, and there nothing changed, so any
> idea why there are problems there with AIO?
>

Like i said it is upstream-bug with GTK, and AIO is build with newest
libraries.


--
Josip

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drag from Gallery Tab of Source or Person Editor in Gramps 3.3 from svn

Josip-3
In reply to this post by Benny Malengier
On 09.05.2011 11:42, Benny Malengier wrote:

>
> Anyway, the problem now is in 3.2.6, and there nothing changed, so any
> idea why there are problems there with AIO?
>

I need a help!
Tried to fix DnD in columnorder.py by manually handling DnD instead of
using "set_reorderable()" but get stuck with multiple cells in row.

In call "iter = model.insert_after(iter, [True, file[8:],2,object])" i
don't know what "True,2,object" really is and how to get them.

--
Josip

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel

columnorder.diff (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drag from Gallery Tab of Source or Person Editor in Gramps 3.3 from svn

Benny Malengier


2011/5/15 Josip <[hidden email]>
On 09.05.2011 11:42, Benny Malengier wrote:


Anyway, the problem now is in 3.2.6, and there nothing changed, so any
idea why there are problems there with AIO?


I need a help!
Tried to fix DnD in columnorder.py by manually handling DnD instead of using "set_reorderable()" but get stuck with multiple cells in row.

In call "iter = model.insert_after(iter, [True, file[8:],2,object])" i don't know what "True,2,object" really is and how to get them.

Columnorder is the GUI to change column order of the listviews.
So the model is
        self.model = gtk.ListStore(gobject.TYPE_BOOLEAN,   
                            gobject.TYPE_STRING,   gobject.TYPE_INT, object)
The set method seems to indicate it's use
active yes or no, name of row, ID of row,  size of row.

So you can change the defenition of self.model to

        self.model = gtk.ListStore(gobject.TYPE_BOOLEAN, gobject.TYPE_STRING,
                                   gobject.TYPE_INT, gobject.TYPE_INT)
if you like that better.

A view plugin will define COLUMN_NAMES and CONFIGSETTINGS to drive this class.
With drag and drop here, only the order should change, so you should delete the row from where you leave, and add the row where you drop. What you add should be a copy of what was deleted. So the values of those rows should be a copy of your drag position.

Benny

--
Josip


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Loading...