mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 13:16:27 +01:00
git-svn-id: svn://localhost/ardour2/branches/3.0@5306 d708f5d6-7413-0410-9779-e7cbd77b26cf
55 lines
1.8 KiB
Text
55 lines
1.8 KiB
Text
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
/* Copyright (C) 2007 The gtkmm Development Team
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the Free
|
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
#include <glibmm/object.h>
|
|
#include <giomm/appinfo.h>
|
|
|
|
_DEFS(giomm,gio)
|
|
_PINCLUDE(glibmm/private/object_p.h)
|
|
|
|
namespace Gio
|
|
{
|
|
|
|
/**
|
|
* DesktopAppInfo is an implementation of AppInfo based on desktop files.
|
|
*
|
|
* @newin2p16
|
|
*/
|
|
class DesktopAppInfo
|
|
: public Glib::Object,
|
|
public AppInfo
|
|
{
|
|
_CLASS_GOBJECT(DesktopAppInfo, GDesktopAppInfo, G_DESKTOP_APP_INFO, Glib::Object, GObject)
|
|
_IMPLEMENTS_INTERFACE(AppInfo)
|
|
_GTKMMPROC_WIN32_NO_WRAP
|
|
|
|
protected:
|
|
_WRAP_CTOR(DesktopAppInfo(const std::string& desktop_id), g_desktop_app_info_new)
|
|
|
|
public:
|
|
_WRAP_CREATE(const std::string& desktop_id)
|
|
|
|
//TODO: Use _WRAP_CREATE(), but how do we override the constructor for this? murrayc.
|
|
_WRAP_METHOD(static Glib::RefPtr<DesktopAppInfo> create_from_filename(const std::string& filename), g_desktop_app_info_new_from_filename)
|
|
|
|
_WRAP_METHOD(bool is_hidden() const, g_desktop_app_info_get_is_hidden)
|
|
_WRAP_METHOD(static void set_desktop_env(const std::string& desktop_env), g_desktop_app_info_set_desktop_env)
|
|
};
|
|
|
|
} // namespace Gio
|