~smspillaz/unity/unity.6.0.fix_1036521

« back to all changes in this revision

Viewing changes to launcher/FileManagerOpenerImp.cpp

  • Committer: Ugo Riboni
  • Date: 2012-08-31 09:15:33 UTC
  • mfrom: (2644 unity)
  • mto: This revision was merged to the branch mainline in revision 2647.
  • Revision ID: ugo.riboni@canonical.com-20120831091533-60o9ph7zhfxxi6md
Merge changes from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
 
2
/*
 
3
 * Copyright (C) 2012 Canonical Ltd
 
4
 *
 
5
 * This program is free software: you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License version 3 as
 
7
 * published by the Free Software Foundation.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
 *
 
17
 * Authored by: Andrea Azzarone <andrea.azzarone@canonical.com>
 
18
 */
 
19
 
 
20
#include <gio/gio.h>
 
21
 
 
22
#include "FileManagerOpenerImp.h"
 
23
 
 
24
namespace unity
 
25
{
 
26
namespace launcher
 
27
{
 
28
 
 
29
void FileManagerOpenerImp::Open(std::string const& uri)
 
30
{
 
31
  g_app_info_launch_default_for_uri(uri. c_str(), nullptr, nullptr);
 
32
}
 
33
 
 
34
}
 
35
}