~fboucault/unity-2d/keyboard_navigation_experimental

« back to all changes in this revision

Viewing changes to libunity-2d-private/Unity2d/launchermenu.cpp

  • Committer: Florian Boucault
  • Date: 2011-06-08 20:43:09 UTC
  • mto: This revision was merged to the branch mainline in revision 601.
  • Revision ID: florian@boucault.net-20110608204309-k2us71ubgytrm37k
Moved all launcher's contextual menu artwork (artwork/tooltip/* and
artwork/launchermenu.css) to libunity-2d-private's QML plugin.

The artwork is now located in libunity-2d-private/Unity2d/launchermenu and
embedded into libunity-2d-private-qml.so using the Qt resource mechanism.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
 */
19
19
 
20
 
#include "config.h"
21
20
#include "launchermenu.h"
22
21
#include "launcheritem.h"
23
22
 
59
58
    /* Load the pixmap for the arrow. It is drawn separately as its position
60
59
       may vary depending on the position of the menu on the screen. */
61
60
    if (transparencyAvailable()) {
62
 
        m_arrow.load("artwork:tooltip/arrow.png");
 
61
        m_arrow.load(":/launchermenu/arrow.png");
63
62
    } else {
64
 
        m_arrow.load("artwork:tooltip/arrow_no_transparency.png");
 
63
        m_arrow.load(":/launchermenu/arrow_no_transparency.png");
65
64
    }
66
65
 
67
66
    /* First action used to display the title of the item */
77
76
void
78
77
LauncherContextualMenu::loadCSS()
79
78
{
80
 
    QString cssFilePath = unity2dDirectory() + "/launcher/launchermenu.css";
 
79
    QString cssFilePath = ":/launchermenu/launchermenu.css";
81
80
 
82
81
    QFile file(cssFilePath);
83
82
    if (!file.open(QIODevice::ReadOnly | QIODevice::Text))