-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GraphView]Add popup menu[gramps50] #120
[GraphView]Add popup menu[gramps50] #120
Conversation
@vantu5z Hope you don't mind some feedback if it's not too early? No popup menu here when I click on a node (person), only when I get click on a family marriage year (node) do I get a family screen. Love how your improving this. Thanks 👍 |
If you add a popup menu, it could be interesting to add the possibility to set this node as a home person. I get the following error when I click with the right button : |
No popup menu here also for rightclik on person or family.
|
@SNoiraud , don't know why you get this exception, for me it works well.
|
I don't understand why we have these Gtk errors. The menu popups are created correctly for me. I tried : menu.popup(None, None, None, None, event.get_button()[1], event.time) |
No popup menu at all here. Not sure if anthing to do wth it, I'm using ubuntu 16.04 that has gtk 3.18.9 @vantu5z @SNoiraud @fxtmtrsine What versions are you using? Remeber that Gramps supports gtk 3.10 or greater. |
I use Arch with gtk3 3.22.28-1. |
One remark on the second entry in the meny : |
I use : |
When I said very strange, this is because I wrote the popup menu the same way in geography and I have not this problem. |
find that popup() is:
|
like this: |
Why not, translators adopt it. |
Correct. |
32c7d31
to
3ee074f
Compare
Ok. Will use: menu.popup(None, None, None, None, event.get_button()[1], event.time) |
Try to focus on person (not active) after editing or add family and graph rebuilding. Have some problem.
I don't understand which handle come here? |
f0db50e
to
117171f
Compare
As solution I see only change active person. |
to catch date event changing and update node
@PQYPLZXHGF ubuntu 14.04 with gtk 3.10.8 looks like I have the oldest! @vantu5z With the latest version still get no popup menu here for the person; only clicking on a family marriage works as before. so no change for me :( |
@fxtmtrsine Try now, rewrite menu creation using gramps widgets (add_menuitem). |
@SNoiraud Why not? Now I try to perform double click to edit person or family without popup. |
Sound good to me. |
on move to person from popup menu
@SNoiraud Try it now :) |
Yes it works. I had the following problems when i modify the number of descendants: 07075: ERROR: grampsapp.py: line 143: Unhandled exception |
@SNoiraud What do you think about family menu, should we add something else? |
No more problems. |
@vantu5z Looks good, haven't found any issue added from this PR. Is it almost ready to merge? What remains to be done? |
@sam-m888 It is not ready yet. |
Add items from config to extra menu (on background). Should we add something else? |
GraphView/graphview.py
Outdated
@@ -1023,6 +1023,59 @@ def background_menu(self, event): | |||
self.menu = Gtk.Menu() | |||
self.menu.set_reserve_toggle_size(False) | |||
|
|||
menu_item = Gtk.CheckMenuItem(_('Show images')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we had decided to move away from putting configuration settings in the context menus
@vantu5z Tested ok, so far 👍
Possibly like mentioned by @fxtmtrsine also add an identical help entry to each of the three menus called "About Graph View" that leads to the url: https://gramps-project.org/wiki/index.php?title=Graph_View like shown in Timeline pedigree and htreeview eg: Apart from that I'd say this is finished as is. 👍 |
fix typos and comments
@vantu5z Nicely done 🥇 When you're ready for this to be merged remove the "Work in Progress" label. Screenshots of the three menus: |
Yes, I think it can be merged. |
Thank you |
Add popup menu for node (on right mouse click).
Simplify add spouse or child to person which doesn't have family.
For node:
- edit
- add new partner
- set as home person
For family:
- just open editor
ToDo (in progress, testing and feedback needed):
After graph rebuild scroll to person which have been edited, and not to active person.