[libwnck/wip/muktupavels/wnck-handle: 3/11] handle: make it public
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck/wip/muktupavels/wnck-handle: 3/11] handle: make it public
- Date: Tue, 22 Feb 2022 19:36:32 +0000 (UTC)
commit 8dd563bebe242d8c25bc781f8b7376961be46738
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Aug 19 16:12:32 2019 +0300
handle: make it public
libwnck/libwnck.h | 2 ++
libwnck/meson.build | 1 +
libwnck/wnck-handle-private.h | 3 +--
libwnck/wnck-handle.c | 10 +++++++---
libwnck/wnck-handle.h | 34 ++++++++++++++++++++++++++++++++++
5 files changed, 45 insertions(+), 5 deletions(-)
---
diff --git a/libwnck/libwnck.h b/libwnck/libwnck.h
index 20f89f6f..7b1860a4 100644
--- a/libwnck/libwnck.h
+++ b/libwnck/libwnck.h
@@ -23,6 +23,8 @@
#define __LIBWNCK_H_INSIDE__
+#include <libwnck/wnck-handle.h>
+
#include <libwnck/window.h>
#include <libwnck/application.h>
#include <libwnck/class-group.h>
diff --git a/libwnck/meson.build b/libwnck/meson.build
index 9f714d0a..ddbff6ec 100644
--- a/libwnck/meson.build
+++ b/libwnck/meson.build
@@ -39,6 +39,7 @@ headers = [
'util.h',
'window.h',
'window-action-menu.h',
+ 'wnck-handle.h',
'workspace.h',
]
diff --git a/libwnck/wnck-handle-private.h b/libwnck/wnck-handle-private.h
index 05ce22bd..417fa136 100644
--- a/libwnck/wnck-handle-private.h
+++ b/libwnck/wnck-handle-private.h
@@ -20,11 +20,10 @@
#include "class-group.h"
#include "util.h"
+#include "wnck-handle.h"
G_BEGIN_DECLS
-typedef struct _WnckHandle WnckHandle;
-
WnckHandle *_wnck_handle_new (WnckClientType client_type);
WnckClientType _wnck_handle_get_client_type (WnckHandle *self);
diff --git a/libwnck/wnck-handle.c b/libwnck/wnck-handle.c
index 157aabea..53ed3794 100644
--- a/libwnck/wnck-handle.c
+++ b/libwnck/wnck-handle.c
@@ -19,6 +19,13 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+/**
+ * SECTION: wnck-handle
+ * @short_description: an object representing a handle.
+ *
+ * This is the main entry point into the libwnck library.
+ */
+
#include "config.h"
#include "wnck-handle-private.h"
@@ -28,9 +35,6 @@
#include "wnck-enum-types.h"
#include "xutils.h"
-#define WNCK_TYPE_HANDLE (wnck_handle_get_type ())
-G_DECLARE_FINAL_TYPE (WnckHandle, wnck_handle, WNCK, HANDLE, GObject)
-
struct _WnckHandle
{
GObject parent;
diff --git a/libwnck/wnck-handle.h b/libwnck/wnck-handle.h
new file mode 100644
index 00000000..1bb2a27d
--- /dev/null
+++ b/libwnck/wnck-handle.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2021 Alberts Muktupāvels
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#if !defined (__LIBWNCK_H_INSIDE__) && !defined (WNCK_COMPILATION)
+#error "Only <libwnck/libwnck.h> can be included directly."
+#endif
+
+#ifndef WNCK_HANDLE_H
+#define WNCK_HANDLE_H
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define WNCK_TYPE_HANDLE (wnck_handle_get_type ())
+G_DECLARE_FINAL_TYPE (WnckHandle, wnck_handle, WNCK, HANDLE, GObject)
+
+G_END_DECLS
+
+#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]