~n-muench/ubuntu/precise/open-vm-tools/open-vm-tools.raring-precise.backport

« back to all changes in this revision

Viewing changes to services/plugins/dndcp/copyPasteDnDX11.cpp

  • Committer: Package Import Robot
  • Author(s): Nate Muench
  • Date: 2012-01-23 16:09:45 UTC
  • mfrom: (1.4.6) (2.4.26 sid)
  • Revision ID: package-import@ubuntu.com-20120123160945-b6s0r1vkcovucpf3
Tags: 2011.12.20-562307-0ubuntu1
* Merge latest upstream git tag. Fixes building on Precise
  (LP: #898289, LP: #905612)

* Items merged from Debian unstable:
  - debian/control:
    + open-vm-tools recommends open-vm-dkms. (LP: #598933)
    + open-vm-tools now suggests open-vm-toolbox. (LP: #604998)
  (From 2011.08.21-471295-1 release)
  - Updating maintainer and uploaders fields.
  - Removing vcs fields.
  - Removing references to Daniel's old email address.
  - Updating years in copyright file.
  - Updating to standards version 3.9.2.
  - Updating to debhelper version 8.
  - Switching to source format 3.0 (quilt).
  - Removing manual chrpath setting.
  - Removing exclusion from plugins from debhelper shlibs.
  - Rediffing kvers.patch.
  (From 2011.09.23-491607-1 release)
  - Marking binary architecture-dependend packages as linux and kfreebsd
  only.
  - Removing liburiparser-dev from build-depends as upstream dropped
  unity support.
  - Building with libproc-dev on amd64 again.
  - Dropping disabling of dnet support.
  (From 2011.09.23-491607-2 release)
  - Adding doxygen to build-depends for api documentation.
  - Adding libcunit1-dev to build-depends for test suites.
  - Minimizing rules file.
  - Adding open-vm-tools-dev package, containing only the api
    documentation for now.
  (From 2011.09.23-491607-3 release)
  - Sorting overrides in rules alphabetically.
  - Compacting copyright file.
  - Adding udev rule to set timeout for vmware scsi devices
  (From 2011.12.20-562307-1 release)
  - Adding patch to correct typo in upstreams dkms configuration

* Remaining Changes:
  - Remove Stable part of version numbering.
  - debian folder:
    + Re-added open-vm-dkms.postinst & open-vm-dkms.prerm.
      * Allows dkms modules to compile upon installation.
  - debian/control:
    + Re-add open-vm-source and make into a transitional package
      for open-vm-toolbox.
    + Return dependancies that were moved to open-vm-tools back to
      open-vm-toolbox.
  - debian/rules and debian/open-vm-toolbox.lintian-overrides:
    + Make vmware-user-suid-wrapper suid-root
  - debian/rules:
    + Added CFLAGS field with -Wno-deprecated-declarations
      * Will suppress issues with glib 2.31 or later.
    + Add line to copy vmware-xdg-detect-de into place.
    + Install vmware-user.desktop through toolbox package.
  - debian/open-vm-tools.init:
    + Re-add 'modprobe [-r] vmblock'.
    + Add 'modprobe [-r] vmxnet'.
      * Incase it's not loaded during boot.
    + Remove and re-add pcnet32 module
      * Will be done before (remove) and after (readd) vmxnet module
        is added.
      * If vmxnet doesn't exist (aka modules fail to build), pcnet32 can be
        still used for network connectivity.
      * Workaround until a better fix can be done.
  - Re-add gnome-session to debian/local/xautostart.conf
  - Manpages removed (from debian/manpages):
    + vmmemctl.9
    + vmxnet3.9
    + Remove references to manpages that have been removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
extern "C" {
37
37
#include "copyPasteCompat.h"
38
 
#include "dndGuest.h"
39
38
#include "vmware/tools/plugin.h"
40
 
#if defined(NOT_YET)
41
 
#include "unity.h"
42
 
#endif
43
39
 
44
40
void CopyPaste_Register(GtkWidget *mainWnd, ToolsAppCtx *ctx);
45
41
void CopyPaste_Unregister(GtkWidget *mainWnd);
189
185
}
190
186
 
191
187
 
192
 
extern "C" {
193
 
 
194
 
/**
195
 
 *
196
 
 * Enter or leave unity mode.
197
 
 *
198
 
 * @param[in] mode enter unity mode if TRUE, else leave.
199
 
 */
200
 
 
201
 
#if defined(NOT_YET)
202
 
void
203
 
CopyPasteDnDX11_SetUnityMode(Bool mode)
204
 
{
205
 
   CopyPasteDnDWrapper *wrapper = CopyPasteDnDWrapper::GetInstance();
206
 
   ASSERT(wrapper);
207
 
 
208
 
   wrapper->SetUnityMode(mode);
209
 
}
210
 
#endif
211
 
}
212
 
 
213
188
/**
214
189
 *
215
190
 * Constructor.
357
332
         BlockService *bs = BlockService::GetInstance();
358
333
         m_dndUI->SetBlockControl(bs->GetBlockCtrl());
359
334
         if (m_dndUI->Init()) {
360
 
#if defined(NOT_YET)
361
 
            UnityDnD state;
362
 
            state.detWnd = m_dndUI->GetDetWndAsWidget();
363
 
            state.setMode = CopyPasteDnDX11_SetUnityMode;
364
 
            Unity_SetActiveDnDDetWnd(&state);
365
 
#endif
366
335
            wrapper->SetDnDIsRegistered(TRUE);
367
336
            m_dndUI->SetDnDAllowed(TRUE);
368
337
            int version = wrapper->GetDnDVersion();
414
383
   g_debug("%s: enter\n", __FUNCTION__);
415
384
   CopyPasteDnDWrapper *wrapper = CopyPasteDnDWrapper::GetInstance();
416
385
   if (wrapper->IsDnDRegistered()) {
417
 
      /*
418
 
       * Detach the DnD detection window from Unity.
419
 
       */
420
 
#if defined(NOT_YET)
421
 
      UnityDnD state = { NULL, NULL };
422
 
      Unity_SetActiveDnDDetWnd(&state);
423
 
#endif
424
 
 
425
386
      if (m_dndUI) {
426
387
         delete m_dndUI;
427
388
         m_dndUI = NULL;