an0nym0u5 / growl

Automatically exported from code.google.com/p/growl
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Growl.app should remove its dock icon without requiring restart #486

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What feature or enhancement do you propose?
Growl.app presently requires a restart to remove the icon.  This is not needed 
on 10.7, we presently use NSApp's setActivationPolicy to add the dock icon, but 
it does not work in reverse.  However, TransformProcessType allows us to do 
this in 10.7, the declaration of the constant is in the public header, but not 
listed in the documentation.

ProcessSerialNumber psn = { 0, kCurrentProcess };
TransformProcessType(&psn, kProcessTransformToUIElementApplication);

The drawback is that it is making the preferences window close, but not 
notification windows, so some additional investigation is required

What problem does it solve/What benefit does it provide?
This keeps us from having to have a warning about needing to restart, and not 
providing that restart.

Additionaly, this API could be used to have the dock icon dynamically appear 
for a couple of different things, the simplest of which is when the preferences 
window is open, more complicated might be for when there are notes that the 
user missed.

I flagged this as 2.0 so that when it goes in, it can get proper testing, and 
we can have some discussion on the other potential applications of being able 
to use the icon more dynamically.

Original issue reported on code.google.com by dan...@growl.info on 24 May 2012 at 10:03

GoogleCodeExporter commented 8 years ago
This works in Growl 2 now. Marking as FixedInSource.

Original comment by ch...@growl.info on 18 Jul 2012 at 5:16

GoogleCodeExporter commented 8 years ago
Growl 2 is released, marking these as fixed.

Original comment by ch...@growl.info on 20 Sep 2012 at 3:16

GoogleCodeExporter commented 8 years ago

Original comment by ch...@growl.info on 11 Jan 2013 at 6:27