~sil2100/unity-2d/precise-geis-rename

« back to all changes in this revision

Viewing changes to libunity-2d-private/src/unity2ddeclarativeview.cpp

  • Committer: Florian Boucault
  • Date: 2012-02-06 19:38:07 UTC
  • mto: This revision was merged to the branch mainline in revision 897.
  • Revision ID: florian@boucault.net-20120206193807-7u5ezdcl5m58bcvw
Support running installed inside a directory that is a symlink.

isRunningInstalled() is made more reliable by resolving all symlinks contained
in the installation path.
Header inclusions were shuffled around to respect the best practice to include
from the more local to the more global headers and to solve a compilation error
as a result.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
#include "unity2ddeclarativeview.h"
18
18
 
 
19
#include <debug_p.h>
 
20
#include <config.h>
 
21
 
19
22
#include <QDebug>
20
23
#include <QGLWidget>
21
24
#include <QVariant>
26
29
#include <X11/Xlib.h>
27
30
#include <X11/Xatom.h>
28
31
 
29
 
#include <debug_p.h>
30
 
#include <config.h>
31
 
 
32
32
// libwnck
33
33
extern "C" {
34
34
#include <libwnck/libwnck.h>