[glibmm] Gio: Start wrapping GResource.
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Gio: Start wrapping GResource.
- Date: Thu, 26 Apr 2012 11:38:08 +0000 (UTC)
commit c1fa74718aa8c78ecf47357fb759ae071e8d4a02
Author: Kalev Lember <kalevlember gmail com>
Date: Sat Apr 21 23:29:20 2012 +0300
Gio: Start wrapping GResource.
* gio/src/resource.[hg|ccg]: Add Gio::ResourceError so that the
resource handling functions in gtkmm could use it. The rest of the
GResource API is unwrapped.
* gio/src/filelist.am: List new resource.hg file.
Bug #674545.
ChangeLog | 10 ++++++++++
gio/src/filelist.am | 1 +
gio/src/resource.ccg | 25 +++++++++++++++++++++++++
gio/src/resource.hg | 31 +++++++++++++++++++++++++++++++
4 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0d09c6c..5b87399 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-04-21 Kalev Lember <kalevlember gmail com>
+
+ Gio: Start wrapping GResource.
+
+ * gio/src/resource.[hg|ccg]: Add Gio::ResourceError so that the
+ resource handling functions in gtkmm could use it. The rest of the
+ GResource API is unwrapped.
+ * gio/src/filelist.am: List new resource.hg file.
+ Bug #674545.
+
2012-04-17 Krzesimir Nowak <qdlacz gmail com>
Miscutils: Fix typos.
diff --git a/gio/src/filelist.am b/gio/src/filelist.am
index 7cd36b7..33a674d 100644
--- a/gio/src/filelist.am
+++ b/gio/src/filelist.am
@@ -89,6 +89,7 @@ giomm_files_any_hg = \
proxyresolver.hg \
remoteactiongroup.hg \
resolver.hg \
+ resource.hg \
seekable.hg \
settings.hg \
simpleaction.hg \
diff --git a/gio/src/resource.ccg b/gio/src/resource.ccg
new file mode 100644
index 0000000..b80d676
--- /dev/null
+++ b/gio/src/resource.ccg
@@ -0,0 +1,25 @@
+// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+
+/* Copyright (C) 2012 The giomm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gio/gio.h>
+
+namespace Gio
+{
+
+} // namespace Gio
diff --git a/gio/src/resource.hg b/gio/src/resource.hg
new file mode 100644
index 0000000..ad1ddd9
--- /dev/null
+++ b/gio/src/resource.hg
@@ -0,0 +1,31 @@
+// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+
+/* Copyright (C) 2012 The gtkmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser 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/error.h>
+
+_DEFS(giomm,gio)
+
+namespace Gio
+{
+
+/** Exception class for resource file handling errors.
+ */
+_WRAP_GERROR(ResourceError, GResourceError, G_RESOURCE_ERROR, NO_GTYPE)
+
+} // namespace Gio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]