Allow hiding of Docky icon by setting hide_docky_icon:1

(bit of a workaround involved as REGAPP_NoIcon doesn't
appear to check the tag value)

svn path=/trunk/netsurf/; revision=9725
This commit is contained in:
Chris Young 2009-12-13 12:14:43 +00:00
parent 4bcd8ee1ba
commit 4346b2b62b

View File

@ -702,10 +702,13 @@ void gui_init2(int argc, char** argv)
{
if(argc == 0)
{
BOOL noicon = TAG_IGNORE;
if(option_hide_docky_icon) noicon = REGAPP_NoIcon;
ami_appid = RegisterApplication(messages_get("NetSurf"),
REGAPP_URLIdentifier, "netsurf-browser.org",
REGAPP_WBStartup, (struct WBStartup *)argv,
// REGAPP_NoIcon, TRUE,
noicon, TRUE,
REGAPP_HasPrefsWindow, TRUE,
REGAPP_CanCreateNewDocs, TRUE,
REGAPP_UniqueApplication, TRUE,