summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalev Lember <kalevlember@gmail.com>2012-04-21 23:29:20 +0300
committerKalev Lember <kalevlember@gmail.com>2012-04-22 00:05:49 +0300
commitc1fa74718aa8c78ecf47357fb759ae071e8d4a02 (patch)
tree7d5f62b6975f00afe856fe9fd1012eff1ad0ddab
parent64b20b098dd24aeb6cea9b95ea861ddd58fde778 (diff)
downloadglibmm-c1fa74718aa8c78ecf47357fb759ae071e8d4a02.tar.gz
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.
-rw-r--r--ChangeLog10
-rw-r--r--gio/src/filelist.am1
-rw-r--r--gio/src/resource.ccg25
-rw-r--r--gio/src/resource.hg31
4 files changed, 67 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0d09c6cb..5b87399e 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 7cd36b79..33a674df 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 00000000..b80d676f
--- /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 00000000..ad1ddd93
--- /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