|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Plugin developmentI am in the process of creating a plugin, and I had a couple questions that I thought some other developers could help me with. As a background so you may be able to understand a little better, my plugin essentially randomly generates a meal list for a number of days. It then has a "generate a shopping list" button that simply calls the shopping list, adding the recipes. (I'll leave some other details out as not to bore anyone.) My plugin generally works fine, but there is one thing annoying me. My window always remains on top when other windows are open, including the main window. This is definitely undesirable behavior. My window is not modal, so I'm not sure why it is doing this. Is there any trick to getting it to go behind when other windows are clicked on? Another thing I noticed, which people may or may not be aware of, is that the shopping list has an error in that when you have it open once, close it, and then try to add recipes again, the user interface is blank for the shopping list. I happened to notice this since I call the shopping list. Thanks for any help, Jason Lutz Express your personality in color! Preview and select themes for Hotmail®. See how. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Grecipe-manager-devel mailing list Grecipe-manager-devel@... https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel |
|
|
Re: Plugin developmentOn Sat, Mar 7, 2009 at 1:53 PM, Jason Lutz <jlutz7777@...> wrote:
Without seeing the code it's hard to know. It should be either because the window is set as modal or set as a transient for the main application window (or both). Check the properties transient_for and modal on your window (window_object.props.transient_for and window_object.props.modal should give you your answer).
Thanks for letting me know about this. This bug would have been introduced when the shopgui got plugin-ified (a version or so ago). The issue was with "X"ing the window out -- closing using "Control-W" or File->Close was working. I just fixed this issue in git (I've set up a git repository for grm to test it out -- it seems enough faster to use than CVS that I'm pretty sure I'll make the switch and phase out CVS).
Hope this helps! Tom ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Grecipe-manager-devel mailing list Grecipe-manager-devel@... https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel |
|
|
Re: Plugin developmentThanks. If my code wasn't so large (glade file and several python files), I would've posted it. I basically was hoping for a wild guess from experience, and you have provided me that, so thank you. I'll do as you suggested and check for transient_for and modal. I have never used git, but I'll work on switching over to it from cvs so I'll be ready for your switch. Jason Date: Sat, 7 Mar 2009 16:01:28 -0500 Subject: Re: [Grecipe-manager-devel] Plugin development From: Thomas_Hinkle@... To: jlutz7777@... CC: grecipe-manager-devel@... On Sat, Mar 7, 2009 at 1:53 PM, Jason Lutz <jlutz7777@...> wrote:
Without seeing the code it's hard to know. It should be either because the window is set as modal or set as a transient for the main application window (or both). Check the properties transient_for and modal on your window (window_object.props.transient_for and window_object.props.modal should give you your answer).
Thanks for letting me know about this. This bug would have been introduced when the shopgui got plugin-ified (a version or so ago). The issue was with "X"ing the window out -- closing using "Control-W" or File->Close was working. I just fixed this issue in git (I've set up a git repository for grm to test it out -- it seems enough faster to use than CVS that I'm pretty sure I'll make the switch and phase out CVS).
Hope this helps! Tom Windows Live™ Contacts: Organize your contact list. Check it out. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Grecipe-manager-devel mailing list Grecipe-manager-devel@... https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel |
| Free embeddable forum powered by Nabble | Forum Help |