/*********************************************************
- * Copyright (C) 2008 VMware, Inc. All rights reserved.
+ * Copyright (C) 2008-2010 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
*
*********************************************************/
+
/*
* ghIntegrationX11.c --
*
GHIHostCallbacks hostCallbacks;
};
-#ifdef GTK2
-
/*
* The GHIMenuItem object represents an individual leaf-node menu item (corresponding to
* a .desktop file).
g_ptr_array_foreach(gmd->items, GHIPlatformDestroyMenuItem, NULL);
g_ptr_array_free(gmd->items, TRUE);
}
-#endif // GTK2
/*
Bool
GHIPlatformIsSupported(void)
{
-#ifdef GTK2
return TRUE;
-#else
- return FALSE;
-#endif
}
}
-#ifdef GTK2
/*
*-----------------------------------------------------------------------------
*
return TRUE;
}
-#endif // GTK2
/*
static void
GHIPlatformCleanupMenuEntries(GHIPlatform *ghip) // IN
{
-#ifdef GTK2
if (ghip->menuHandles) {
g_hash_table_foreach_remove(ghip->menuHandles, GHIPlatformFreeValue, NULL);
g_hash_table_destroy(ghip->menuHandles);
g_tree_destroy(ghip->apps);
ghip->apps = NULL;
}
-#endif // GTK2
}
}
-#ifdef GTK2
-
-
/*
*-----------------------------------------------------------------------------
*
AppUtil_FreeIconArray(pixbufs);
}
-#endif // GTK2
/*
std::string &friendlyName, // OUT: Friendly name
std::list<GHIBinaryIconInfo> &iconList) // OUT: Icons
{
-#ifdef GTK2
const char *realCmd = NULL;
char *keyfilePath = NULL;
unsigned long windowID = 0;
GHIPlatformCollectIconInfo(ghip, ghm, windowID, iconList);
return TRUE;
-#else // !GTK2
- return FALSE;
-#endif // GTK2
}
#endif // OPEN_VM_TOOLS
-#ifdef GTK2
-
-
/*
*-----------------------------------------------------------------------------
*
}
}
}
-#endif // GTK2
/*
uint32 flags, // IN: flags
DynBuf *buf) // OUT: number of items
{
-#ifdef GTK2
char temp[64];
GHIMenuHandle *gmh;
int itemCount = 0;
DynBuf_AppendString(buf, temp);
return TRUE;
-#else // !GTK2
- return FALSE;
-#endif // GTK2
}
-#ifdef GTK2
/*
*-----------------------------------------------------------------------------
*
return FALSE;
}
-#endif // GTK2
/*
uint32 itemIndex, // IN: the index of the item in the tree
DynBuf *buf) // OUT: item
{
-#ifdef GTK2
GHIMenuHandle *gmh;
char *itemName = NULL;
uint itemFlags = 0;
}
return TRUE;
-#else // !GTK2
- return FALSE;
-#endif // GTK2
}
GHIPlatformCloseStartMenuTree(GHIPlatform *ghip, // IN: platform-specific state
uint32 handle) // IN: handle to the tree to be closed
{
-#ifdef GTK2
GHIMenuHandle *gmh;
ASSERT(ghip);
GHIPlatformFreeValue(NULL, gmh, NULL);
return TRUE;
-#else // !GTK2
- return FALSE;
-#endif // GTK2
}