From: John R. <jr...@ce...> - 2011-07-22 21:30:14
|
GTK+, and consequently Gramps, isn't stable on Lion. I've added a note to that effect with details on the Apple_Mac page [1] of the Wiki, so if anyone asks about it on the user list, point them there. Regards, John Ralls [1] http://bcs.net.nz/wiki/index.php/Using_GRAMPS_on_Apple_Mac |
From: Michaël V. D. <mic...@gm...> - 2011-07-27 20:06:53
|
Many thanks for that little note, John. Following those guidelines, running gramps in OSX Lion is very easy indeed. I had expected that I could now just copy my entire ubuntu /home/user/.gramps/grampsdb folder to my OSX /Users/user/Library/Application Support/gramps/grampsdb folder, and while that does populate the 'family tree' opening dialog window in gramps, loading a specific family tree results in the familiar 'Berkeley environment' error… Are there any other elements that I should copy from my ubuntu install? (I know that I can just take a proper export of each family tree in ubuntu, but if possible, I would like to just copy the entire relevant directory.) Thanks, Michaël Op 22-jul.-2011, om 23:29 heeft John Ralls het volgende geschreven: > GTK+, and consequently Gramps, isn't stable on Lion. I've added a note to that effect with details on the Apple_Mac page [1] of the Wiki, so if anyone asks about it on the user list, point them there. > > Regards, > John Ralls > > [1] http://bcs.net.nz/wiki/index.php/Using_GRAMPS_on_Apple_Mac > > > ------------------------------------------------------------------------------ > 10 Tips for Better Web Security > Learn 10 ways to better secure your business today. Topics covered include: > Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, > security Microsoft Exchange, secure Instant Messaging, and much more. > http://www.accelacomm.com/jaw/sfnl/114/51426210/ > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel |
From: Doug B. <dou...@gm...> - 2011-07-27 20:22:03
|
2011/7/27 Michaël Van Dorpe <mic...@gm...>: > Many thanks for that little note, John. Following those guidelines, running gramps in OSX Lion is very easy indeed. > > I had expected that I could now just copy my entire ubuntu /home/user/.gramps/grampsdb folder to my OSX /Users/user/Library/Application Support/gramps/grampsdb folder, and while that does populate the 'family tree' opening dialog window in gramps, loading a specific family tree results in the familiar 'Berkeley environment' error… Are there any other elements that I should copy from my ubuntu install? > > (I know that I can just take a proper export of each family tree in ubuntu, but if possible, I would like to just copy the entire relevant directory.) In general, it is not enough to copy database files between systems. BSDDB can vary from system to system, even from version to version. In a word, BSDDB is not binary compatible except with the exact same version of itself. Nothing will work around this, except for having XML backups/exports and exporting/importing. (Someday, I would like to fix this by having an alternate backend that is guaranteed to remain backwards and platform compatible.) -Doug > Thanks, > > Michaël > > Op 22-jul.-2011, om 23:29 heeft John Ralls het volgende geschreven: > >> GTK+, and consequently Gramps, isn't stable on Lion. I've added a note to that effect with details on the Apple_Mac page [1] of the Wiki, so if anyone asks about it on the user list, point them there. >> >> Regards, >> John Ralls >> >> [1] http://bcs.net.nz/wiki/index.php/Using_GRAMPS_on_Apple_Mac >> >> >> ------------------------------------------------------------------------------ >> 10 Tips for Better Web Security >> Learn 10 ways to better secure your business today. Topics covered include: >> Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, >> security Microsoft Exchange, secure Instant Messaging, and much more. >> http://www.accelacomm.com/jaw/sfnl/114/51426210/ >> _______________________________________________ >> Gramps-devel mailing list >> Gra...@li... >> https://lists.sourceforge.net/lists/listinfo/gramps-devel > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > |
From: John R. <jr...@ce...> - 2011-07-28 14:48:24
|
On Jul 27, 2011, at 1:21 PM, Doug Blank wrote: > 2011/7/27 Michaël Van Dorpe <mic...@gm...>: >> Many thanks for that little note, John. Following those guidelines, running gramps in OSX Lion is very easy indeed. >> >> I had expected that I could now just copy my entire ubuntu /home/user/.gramps/grampsdb folder to my OSX /Users/user/Library/Application Support/gramps/grampsdb folder, and while that does populate the 'family tree' opening dialog window in gramps, loading a specific family tree results in the familiar 'Berkeley environment' error… Are there any other elements that I should copy from my ubuntu install? >> >> (I know that I can just take a proper export of each family tree in ubuntu, but if possible, I would like to just copy the entire relevant directory.) > > In general, it is not enough to copy database files between systems. > BSDDB can vary from system to system, even from version to version. In > a word, BSDDB is not binary compatible except with the exact same > version of itself. > > Nothing will work around this, except for having XML backups/exports > and exporting/importing. > > (Someday, I would like to fix this by having an alternate backend that > is guaranteed to remain backwards and platform compatible.) > The current release of Gramps uses BSDDB 4.7, while most Linux distros are on 4.8, and Oracle changed the log format (again) between the two versions. The next release of Gramps will have 4.8, which should allow better binary compatibility. Regards, John Ralls |
From: Benny M. <ben...@gm...> - 2011-07-29 17:06:09
|
2011/7/28 John Ralls <jr...@ce...> > > On Jul 27, 2011, at 1:21 PM, Doug Blank wrote: > > > 2011/7/27 Michaël Van Dorpe <mic...@gm...>: > >> Many thanks for that little note, John. Following those guidelines, > running gramps in OSX Lion is very easy indeed. > >> > >> I had expected that I could now just copy my entire ubuntu > /home/user/.gramps/grampsdb folder to my OSX /Users/user/Library/Application > Support/gramps/grampsdb folder, and while that does populate the 'family > tree' opening dialog window in gramps, loading a specific family tree > results in the familiar 'Berkeley environment' error… Are there any other > elements that I should copy from my ubuntu install? > >> > >> (I know that I can just take a proper export of each family tree in > ubuntu, but if possible, I would like to just copy the entire relevant > directory.) > > > > In general, it is not enough to copy database files between systems. > > BSDDB can vary from system to system, even from version to version. In > > a word, BSDDB is not binary compatible except with the exact same > > version of itself. > > > > Nothing will work around this, except for having XML backups/exports > > and exporting/importing. > > > > (Someday, I would like to fix this by having an alternate backend that > > is guaranteed to remain backwards and platform compatible.) > > > > The current release of Gramps uses BSDDB 4.7, while most Linux distros are > on 4.8, and Oracle changed the log format (again) between the two versions. > The next release of Gramps will have 4.8, which should allow better binary > compatibility. > Yes, you can normally go to a newer version of bsddb (as being proven by people upgrading their linux to a newer version), but going backward is never possible with bsddb. We also cannot check on this easily as it crashes on opening the database (I believe we added version check outside of bsddb to allow for a better error message, but michiel worked on that I believe, not sure how stable it is). Benny > > Regards, > John Ralls > > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > |
From: John R. <jr...@ce...> - 2011-08-05 04:09:29
|
On Jul 22, 2011, at 2:29 PM, John Ralls wrote: > GTK+, and consequently Gramps, isn't stable on Lion. I've added a note to that effect with details on the Apple_Mac page [1] of the Wiki, so if anyone asks about it on the user list, point them there. > > [1] http://bcs.net.nz/wiki/index.php/Using_GRAMPS_on_Apple_Mac > I've uploaded a DMG with a snapshot of the latest patches to Gtk which seem to work well on Lion. I called it Gramps-3.3.0.Lion_Beta.dmg, because the patches aren't final and haven't been tested thoroughly in real-world applications. By getting a Gramps (and a Gnucash) beta out, I hope to flush out any more bugs and instabilities with Gtk+ on Lion. In my (so far brief) testing, one database loaded up fine while the other had a BDB environment error. If possible, back up to Gramps-XML with a currently-working Gramps installation before trying the new Lion build. Regards, John Ralls |
From: jerome <rom...@ya...> - 2011-08-05 08:03:30
|
Thank you! I do not have OSX Lion but I quickly saw that some web sites are saying that Gramps does not work under OSX Lion ! http://roaringapps.com/app:3103 Now, I suppose the status could be 'work in progress' or 'testing' instead of 'does not work' ? I am also waiting from an answer on a french forum... On this post: http://www.geneanet.org/forum/index.php?topic=420137.0 someone said that after testing some genealogical apps under MacOS, Gramps is "horrible" without more explications ! Regards, Jérôme --- En date de : Ven 5.8.11, John Ralls <jr...@ce...> a écrit : > De: John Ralls <jr...@ce...> > Objet: Re: [Gramps-devel] Gramps and OSX Lion > À: "Gramps Development List" <gra...@li...> > Date: Vendredi 5 août 2011, 6h09 > > On Jul 22, 2011, at 2:29 PM, John Ralls wrote: > > > GTK+, and consequently Gramps, isn't stable on Lion. > I've added a note to that effect with details on the > Apple_Mac page [1] of the Wiki, so if anyone asks about it > on the user list, point them there. > > > > [1] http://bcs.net.nz/wiki/index.php/Using_GRAMPS_on_Apple_Mac > > > > I've uploaded a DMG with a snapshot of the latest patches > to Gtk which seem to work well on Lion. I called it > Gramps-3.3.0.Lion_Beta.dmg, because the patches aren't final > and haven't been tested thoroughly in real-world > applications. By getting a Gramps (and a Gnucash) beta out, > I hope to flush out any more bugs and instabilities with > Gtk+ on Lion. > > In my (so far brief) testing, one database loaded up fine > while the other had a BDB environment error. If possible, > back up to Gramps-XML with a currently-working Gramps > installation before trying the new Lion build. > > Regards, > John Ralls > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San > Francisco, CA > The must-attend event for mobile developers. Connect with > experts. > Get tools for creating Super Apps. See the latest > technologies. > Sessions, hands-on labs, demos & much more. Register > early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > |
From: John R. <jr...@ce...> - 2011-08-05 16:27:50
|
On Aug 5, 2011, at 9:09 AM, Jérôme wrote: > John, > > > 'Horrible' was for a previous version, I guess before your improvements. ;) > > Note, he asks me how to call and remove a gramplets from GrampsBars under MacOS! It seems there is no "right click" on mouse under Mac, but I suppose there is an other way ? If so, which one ? > Perhaps, though it sounds more like s/he thought the documentation was horrible. There is "right click", but until the Mighty Mouse of 2 or so years ago, Apple mice had only one button. (Users of trackpads with multitouch or a Magic Mouse can use a two-finger tap to get a right-click.) The Mac standard with such mice is to use control-click, but Gdk intercepts the event before it's reinterpreted and passes it to the application as a control-leftmousedown. I guess I should catch that event in Gramps. (I don't want to change GDK because other apps might actually use control-leftmousedown for something.) Regards, John Ralls |
From: jerome <rom...@ya...> - 2011-08-06 13:44:41
|
John, Does it mean that users under MacOS cannot call context menu (ie. quick reports, gramplets on GrampsBars, exporter preview ?, additional actions on Pedigree/Fan/Timeline... views) ? > I guess I should > catch that event in Gramps. (I don't want to change GDK > because other apps might actually use control-leftmousedown > for something.) Current code seems to already provide the environment for this type of improvement, see http://gramps.svn.sourceforge.net/viewvc/gramps?view=revision&revision=17183 Regards, Jérôme --- En date de : Ven 5.8.11, John Ralls <jr...@ce...> a écrit : > De: John Ralls <jr...@ce...> > Objet: Re: [Gramps-devel] Gramps and OSX Lion > À: rom...@ya... > Cc: "Gramps Development List" <gra...@li...> > Date: Vendredi 5 août 2011, 18h27 > > On Aug 5, 2011, at 9:09 AM, Jérôme wrote: > > > John, > > > > > > 'Horrible' was for a previous version, I guess before > your improvements. ;) > > > > Note, he asks me how to call and remove a gramplets > from GrampsBars under MacOS! It seems there is no "right > click" on mouse under Mac, but I suppose there is an other > way ? If so, which one ? > > > > > Perhaps, though it sounds more like s/he thought the > documentation was horrible. > > There is "right click", but until the Mighty Mouse of 2 or > so years ago, Apple mice had only one button. (Users of > trackpads with multitouch or a Magic Mouse can use a > two-finger tap to get a right-click.) The Mac standard with > such mice is to use control-click, but Gdk intercepts the > event before it's reinterpreted and passes it to the > application as a control-leftmousedown. I guess I should > catch that event in Gramps. (I don't want to change GDK > because other apps might actually use control-leftmousedown > for something.) > > Regards, > John Ralls > > |
From: John R. <jr...@ce...> - 2011-08-06 14:14:17
|
On Aug 6, 2011, at 6:44 AM, jerome wrote: > John, > > Does it mean that users under MacOS cannot call context menu (ie. quick reports, gramplets on GrampsBars, exporter preview ?, additional actions on Pedigree/Fan/Timeline... views) ? > >> I guess I should >> catch that event in Gramps. (I don't want to change GDK >> because other apps might actually use control-leftmousedown >> for something.) > > Current code seems to already provide the environment for this type of improvement, see http://gramps.svn.sourceforge.net/viewvc/gramps?view=revision&revision=17183 Jérôme, Not exactly. It means that users with one-button mice or older (not multitouch) trackpads can't get to the context menu. I use a Logitech 5-button mouse and my laptop is new, so it has multitouch, so I have no problem with context menus. Yes, that's a patch I wrote to fix an accelerator-key problem (the Go menu bug). No, it doesn't really have any bearing on this except that it's also smoothing over a difference in Mac behavior. Regards, John Ralls |
From: jerome <rom...@ya...> - 2011-08-06 14:40:45
|
Note, it is also present with 'Magic Mouse', which seems to be also multi-touch ? (reported by the same user) > No, it doesn't really have any > bearing on this except that it's also smoothing over a > difference in Mac behavior. If so, why not to try to provide an exception with 'constfunc' for matching "MacOS/one_button_mouse"? Or to provide an access to context via menu/navigation bar ! I know, easy to say ... There is already a code like that for the "Jump to ID" feature on some views (list). 1. On plugins/views/...py self.func_list.update({ '<CONTROL>J' : self.jump, '<CONTROL>BackSpace' : self.key_delete, }) 2. On gui/views/navigationview.py def jump(self): """ A dialog to move to a Gramps ID entered by the user. """ About Gramps and OSX Lion, it seems there is 4 testers per day (before week-end) ... http://sourceforge.net/projects/gramps/files/Stable/3.3.0/Gramps-3.3.0.Lion-Beta.dmg/stats/timeline I hope you will get some returns (bad or good) ! Jérôme --- En date de : Sam 6.8.11, John Ralls <jr...@ce...> a écrit : > De: John Ralls <jr...@ce...> > Objet: Re: [Gramps-devel] Gramps and OSX Lion > À: "jerome" <rom...@ya...> > Cc: "Gramps Development List" <gra...@li...> > Date: Samedi 6 août 2011, 16h14 > > On Aug 6, 2011, at 6:44 AM, jerome wrote: > > > John, > > > > Does it mean that users under MacOS cannot call > context menu (ie. quick reports, gramplets on GrampsBars, > exporter preview ?, additional actions on > Pedigree/Fan/Timeline... views) ? > > > >> I guess I should > >> catch that event in Gramps. (I don't want to > change GDK > >> because other apps might actually use > control-leftmousedown > >> for something.) > > > > Current code seems to already provide the environment > for this type of improvement, see http://gramps.svn.sourceforge.net/viewvc/gramps?view=revision&revision=17183 > > Jérôme, > > Not exactly. It means that users with one-button mice or > older (not multitouch) trackpads can't get to the context > menu. I use a Logitech 5-button mouse and my laptop is new, > so it has multitouch, so I have no problem with context > menus. > > Yes, that's a patch I wrote to fix an accelerator-key > problem (the Go menu bug). No, it doesn't really have any > bearing on this except that it's also smoothing over a > difference in Mac behavior. > > Regards, > John Ralls > > |
From: John R. <jr...@ce...> - 2011-08-06 19:32:09
|
On Aug 6, 2011, at 7:40 AM, jerome wrote: > Note, it is also present with 'Magic Mouse', which seems to be also multi-touch ? (reported by the same user) > >> No, it doesn't really have any >> bearing on this except that it's also smoothing over a >> difference in Mac behavior. > > If so, why not to try to provide an exception with 'constfunc' for matching "MacOS/one_button_mouse"? Or to provide an access to context via menu/navigation bar ! I know, easy to say ... > > There is already a code like that for the "Jump to ID" feature on some views (list). > > > 1. On plugins/views/...py > > self.func_list.update({ > '<CONTROL>J' : self.jump, > '<CONTROL>BackSpace' : self.key_delete, > }) > > 2. On gui/views/navigationview.py > > def jump(self): > """ > A dialog to move to a Gramps ID entered by the user. > The Magic Mouse does have a right-click, but it doesn't seem to be getting through to Gtk. I'll have to dig into that. An exception? You mean a "special case", right? (An exception in Python is an error condition.) I don't think there's any need to protect the event, we don't use control-leftdown for anything else, so it's harmless if it also happens to work for X11 and Win32. As for having the option on the Main Menu, yes, I think thats what most HIGs say one should do... context menus are intended to be a convenient addition rather than the only way to access an action. If "Add a gramplet" were implemented as an action, we could also assign an accelerator key for it -- but it seems not to be. Regards, John Ralls |
From: jerome <rom...@ya...> - 2011-08-07 08:12:55
|
> An exception? You mean a "special case", right? (An > exception in Python is an error condition.) Yes, my bad ! An exception also means (by extension) a custom behavior in French, which is something different than the "try/exception" with python. > If "Add a gramplet" were > implemented as an action, we could also assign an > accelerator key for it -- but it seems not to be. On gui/widgets/grampletpane, I see code like: elif event.button == 3: # right mouse #FIXME: add a popup menu with options try: EditPerson(self.dbstate, self.uistate, [], person) return True # handled event except Errors.WindowActiveError: pass On gui/grampsbar.py, there is the same type of code: def __button_press(self, widget, event): """ Called when a button is pressed in the tabs section of the GrampsBar. """ if event.type == gtk.gdk.BUTTON_PRESS and event.button == 3: etc ... def __create_submenu(self, main_menu, gramplet_list, callback_func): """ Create a submenu of the context menu. """ etc ... Maybe not an action, but the "combinaison test" (event.button == 3 and MacOS) is possible. > I don't think there's any need to protect the event, we don't use > control-leftdown for anything else, Agreed, and not all MacOS users are using a mouse with 1 button, but as you said we are also free to add the context menu somewhere on the main menu ! Thank you for enlightenment. Jérôme --- En date de : Sam 6.8.11, John Ralls <jr...@ce...> a écrit : > De: John Ralls <jr...@ce...> > Objet: Re: [Gramps-devel] Gramps and OSX Lion > À: "jerome" <rom...@ya...> > Cc: "Gramps Development List" <gra...@li...> > Date: Samedi 6 août 2011, 21h31 > > On Aug 6, 2011, at 7:40 AM, jerome wrote: > > > Note, it is also present with 'Magic Mouse', which > seems to be also multi-touch ? (reported by the same user) > > > >> No, it doesn't really have any > >> bearing on this except that it's also smoothing > over a > >> difference in Mac behavior. > > > > If so, why not to try to provide an exception with > 'constfunc' for matching "MacOS/one_button_mouse"? Or to > provide an access to context via menu/navigation bar ! I > know, easy to say ... > > > > There is already a code like that for the "Jump to ID" > feature on some views (list). > > > > > > 1. On plugins/views/...py > > > > self.func_list.update({ > > > '<CONTROL>J' : self.jump, > > > '<CONTROL>BackSpace' : self.key_delete, > > }) > > > > 2. On gui/views/navigationview.py > > > > def jump(self): > > """ > > A dialog to move to a > Gramps ID entered by the user. > > > > The Magic Mouse does have a right-click, but it doesn't > seem to be getting through to Gtk. I'll have to dig into > that. > > An exception? You mean a "special case", right? (An > exception in Python is an error condition.) I don't think > there's any need to protect the event, we don't use > control-leftdown for anything else, so it's harmless if it > also happens to work for X11 and Win32. > > As for having the option on the Main Menu, yes, I think > thats what most HIGs say one should do... context menus are > intended to be a convenient addition rather than the only > way to access an action. If "Add a gramplet" were > implemented as an action, we could also assign an > accelerator key for it -- but it seems not to be. > > Regards, > John Ralls > > |
From: John R. <jr...@ce...> - 2011-08-07 16:27:46
|
On Aug 7, 2011, at 1:12 AM, jerome wrote: >> An exception? You mean a "special case", right? (An >> exception in Python is an error condition.) > > Yes, my bad ! > An exception also means (by extension) a custom behavior in French, which is something different than the "try/exception" with python. > >> If "Add a gramplet" were >> implemented as an action, we could also assign an >> accelerator key for it -- but it seems not to be. > > On gui/widgets/grampletpane, I see code like: > > elif event.button == 3: # right mouse > #FIXME: add a popup menu with options > try: > EditPerson(self.dbstate, > self.uistate, > [], person) > return True # handled event > except Errors.WindowActiveError: > pass > > On gui/grampsbar.py, there is the same type of code: > > > def __button_press(self, widget, event): > """ > Called when a button is pressed in the tabs section of the > GrampsBar. > """ > if event.type == gtk.gdk.BUTTON_PRESS and event.button == 3: > etc ... > > def __create_submenu(self, main_menu, gramplet_list, callback_func): > """ > Create a submenu of the context menu. > """ > etc ... > > > Maybe not an action, but the "combinaison test" (event.button == 3 and MacOS) is possible. > >> I don't think there's any need to protect the event, we don't use >> control-leftdown for anything else, > > Agreed, and not all MacOS users are using a mouse with 1 button, but as you said we are also free to add the context menu somewhere on the main menu ! > Jérôme, Oh, "exception" can mean the same in English, too. It just gets confusing when we're talking about code where the special meaning applies. Thanks for the pointers to the code. I'll have a look at it. Regards, John Ralls |
From: jerome <rom...@ya...> - 2011-08-09 15:39:59
|
Hello John, > Thanks for the pointers to the code. I'll have a look at > it. Maybe a better code on plugins/quickview/FilterByName.py ! We can see "Right-click row (or press ENTER) to see selected items" textual string! I suppose it is related to Simple Access (active row/cell, SimpleTable): event.button == 3: button_code = 3 event_time = event.time x = int(event.x) y = int(event.y) path_info = treeview.get_path_at_pos(x, y) func = None if path_info is not None: path, col, cellx, celly = path_info selection = treeview.get_selection() store, paths = selection.get_selected_rows() tpath = paths[0] if len(paths) > 0 else None node = store.get_iter(tpath) if tpath else None if path: treeview.grab_focus() treeview.set_cursor(path, col, 0) if store and node: index = store.get_value(node, 0) # index Below, Going further I am remembering a feature request, which was a good idea but that I better understand right now ... http://www.gramps-project.org/bugs/view.php?id=2519 The reporter was/is (see GEPS0023!) a MacOS user... ;) The patch makes sense. Should we try to add it to trunk, and if possible with 'call context menu' on addition ? Jérôme --- En date de : Dim 7.8.11, John Ralls <jr...@ce...> a écrit : > De: John Ralls <jr...@ce...> > Objet: Re: [Gramps-devel] Gramps and OSX Lion > À: "jerome" <rom...@ya...> > Cc: "Gramps Development List" <gra...@li...> > Date: Dimanche 7 août 2011, 18h27 > > On Aug 7, 2011, at 1:12 AM, jerome wrote: > > >> An exception? You mean a "special case", right? > (An > >> exception in Python is an error condition.) > > > > Yes, my bad ! > > An exception also means (by extension) a custom > behavior in French, which is something different than the > "try/exception" with python. > > > >> If "Add a gramplet" were > >> implemented as an action, we could also assign an > >> accelerator key for it -- but it seems not to be. > > > > On gui/widgets/grampletpane, I see code like: > > > > elif event.button == 3: # right mouse > > #FIXME: add a popup menu with options > > try: > > EditPerson(self.dbstate, > > > self.uistate, > > > [], person) > > return True # handled > event > > except Errors.WindowActiveError: > > pass > > > > On gui/grampsbar.py, there is the same type of code: > > > > > > def __button_press(self, widget, event): > > """ > > Called when a button is > pressed in the tabs section of the > > GrampsBar. > > """ > > if event.type == > gtk.gdk.BUTTON_PRESS and event.button == 3: > > etc ... > > > > def __create_submenu(self, main_menu, gramplet_list, > callback_func): > > """ > > Create a submenu of the > context menu. > > """ > > etc ... > > > > > > Maybe not an action, but the "combinaison test" > (event.button == 3 and MacOS) is possible. > > > >> I don't think there's any need to protect the > event, we don't use > >> control-leftdown for anything else, > > > > Agreed, and not all MacOS users are using a mouse with > 1 button, but as you said we are also free to add the > context menu somewhere on the main menu ! > > > > Jérôme, > > Oh, "exception" can mean the same in English, too. It just > gets confusing when we're talking about code where the > special meaning applies. > > Thanks for the pointers to the code. I'll have a look at > it. > > Regards, > John Ralls > > |
From: jerome <rom...@ya...> - 2011-08-06 15:20:49
|
Something a little bit different. There is some comments about Gramps 3.1.x under MacOS ! # I know some years ago ... http://russellyanderson.com/mac/Mac%20Genealogy%20Syllabus.pdf http://russellyanderson.com/mac/MacSoftware.pdf I do not know when this conference has occurred, but it is good to see Gramps well placed on the Mac world. Jérôme --- En date de : Sam 6.8.11, John Ralls <jr...@ce...> a écrit : > De: John Ralls <jr...@ce...> > Objet: Re: [Gramps-devel] Gramps and OSX Lion > À: "jerome" <rom...@ya...> > Cc: "Gramps Development List" <gra...@li...> > Date: Samedi 6 août 2011, 16h14 > > On Aug 6, 2011, at 6:44 AM, jerome wrote: > > > John, > > > > Does it mean that users under MacOS cannot call > context menu (ie. quick reports, gramplets on GrampsBars, > exporter preview ?, additional actions on > Pedigree/Fan/Timeline... views) ? > > > >> I guess I should > >> catch that event in Gramps. (I don't want to > change GDK > >> because other apps might actually use > control-leftmousedown > >> for something.) > > > > Current code seems to already provide the environment > for this type of improvement, see http://gramps.svn.sourceforge.net/viewvc/gramps?view=revision&revision=17183 > > Jérôme, > > Not exactly. It means that users with one-button mice or > older (not multitouch) trackpads can't get to the context > menu. I use a Logitech 5-button mouse and my laptop is new, > so it has multitouch, so I have no problem with context > menus. > > Yes, that's a patch I wrote to fix an accelerator-key > problem (the Go menu bug). No, it doesn't really have any > bearing on this except that it's also smoothing over a > difference in Mac behavior. > > Regards, > John Ralls > > |