[gnome-panel] libpanel-applet: add panel-applet-private.h...
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] libpanel-applet: add panel-applet-private.h...
- Date: Thu, 6 Nov 2014 22:01:22 +0000 (UTC)
commit c04da8c76ee6f16af44faca2b247df71e98b0a4b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Nov 6 18:28:27 2014 +0200
libpanel-applet: add panel-applet-private.h...
... and move private functions from factory to this file. Later
we will have at least one more private function.
libpanel-applet/Makefile.am | 3 +-
libpanel-applet/panel-applet-factory.c | 2 +-
libpanel-applet/panel-applet-factory.h | 6 -----
libpanel-applet/panel-applet-private.h | 34 ++++++++++++++++++++++++++++++++
libpanel-applet/panel-applet.c | 1 +
5 files changed, 38 insertions(+), 8 deletions(-)
---
diff --git a/libpanel-applet/Makefile.am b/libpanel-applet/Makefile.am
index b84af47..18ae8c3 100644
--- a/libpanel-applet/Makefile.am
+++ b/libpanel-applet/Makefile.am
@@ -21,7 +21,8 @@ libpanel_applet_la_SOURCES = \
panel-applet-factory.h \
panel-applet-factory.c \
panel-applet-bindings.h \
- panel-applet-bindings.c
+ panel-applet-bindings.c \
+ panel-applet-private.h
libpanel_applet_la_LIBADD = \
$(LIBPANEL_APPLET_LIBS) \
diff --git a/libpanel-applet/panel-applet-factory.c b/libpanel-applet/panel-applet-factory.c
index 57ac8f4..21f9014 100644
--- a/libpanel-applet/panel-applet-factory.c
+++ b/libpanel-applet/panel-applet-factory.c
@@ -18,7 +18,7 @@
*/
#include "panel-applet.h"
-
+#include "panel-applet-private.h"
#include "panel-applet-factory.h"
struct _PanelAppletFactory {
diff --git a/libpanel-applet/panel-applet-factory.h b/libpanel-applet/panel-applet-factory.h
index 04c3390..06f1e74 100644
--- a/libpanel-applet/panel-applet-factory.h
+++ b/libpanel-applet/panel-applet-factory.h
@@ -40,12 +40,6 @@ PanelAppletFactory *panel_applet_factory_new (const gchar *a
GClosure *closure);
gboolean panel_applet_factory_register_service (PanelAppletFactory *factory);
-/* This technically belongs to panel-applet.h, but it's not something that
- * should be public API. */
-guint32 panel_applet_get_xid (PanelApplet *applet,
- GdkScreen *screen);
-const gchar *panel_applet_get_object_path (PanelApplet *applet);
-
G_END_DECLS
#endif /* PANEL_APPLET_FACTORY_H */
diff --git a/libpanel-applet/panel-applet-private.h b/libpanel-applet/panel-applet-private.h
new file mode 100644
index 0000000..a78e00a
--- /dev/null
+++ b/libpanel-applet/panel-applet-private.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2010 Carlos Garcia Campos
+ *
+ * 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/>.
+ *
+ * Authors:
+ * Carlos Garcia Campos <carlosgc gnome org>
+ */
+
+#ifndef PANEL_APPLET_PRIVATE_H
+#define PANEL_APPLET_RPIVATE_H
+
+#include "panel-applet.h"
+
+G_BEGIN_DECLS
+
+guint32 panel_applet_get_xid (PanelApplet *applet,
+ GdkScreen *screen);
+const gchar *panel_applet_get_object_path (PanelApplet *applet);
+
+G_END_DECLS
+
+#endif
diff --git a/libpanel-applet/panel-applet.c b/libpanel-applet/panel-applet.c
index e7c042f..cc7b15f 100644
--- a/libpanel-applet/panel-applet.c
+++ b/libpanel-applet/panel-applet.c
@@ -40,6 +40,7 @@
#include <cairo-xlib.h>
#include "panel-applet.h"
+#include "panel-applet-private.h"
#include "panel-applet-bindings.h"
#include "panel-applet-factory.h"
#include "panel-applet-marshal.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]