[metacity] libmetacity: don't expose MetaDrawSpec
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] libmetacity: don't expose MetaDrawSpec
- Date: Sun, 7 Feb 2016 21:47:17 +0000 (UTC)
commit ab3586203f2a12fc8bd2201d5dcfe4ebfd5869e5
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Feb 7 23:23:04 2016 +0200
libmetacity: don't expose MetaDrawSpec
libmetacity/Makefile.am | 3 +--
libmetacity/meta-draw-op-private.h | 2 +-
.../{meta-draw-spec.h => meta-draw-spec-private.h} | 9 +++++++--
libmetacity/meta-draw-spec.c | 2 +-
4 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/libmetacity/Makefile.am b/libmetacity/Makefile.am
index f445204..03c3156 100644
--- a/libmetacity/Makefile.am
+++ b/libmetacity/Makefile.am
@@ -16,7 +16,7 @@ libmetacity_la_SOURCES = \
meta-draw-op.c \
meta-draw-op-private.h \
meta-draw-spec.c \
- meta-draw-spec.h \
+ meta-draw-spec-private.h \
meta-frame-borders.c \
meta-frame-borders.h \
meta-frame-enums.h \
@@ -70,7 +70,6 @@ libmetacity_include_HEADERS = \
meta-button-function.h \
meta-button-layout.h \
meta-color.h \
- meta-draw-spec.h \
meta-enum-types.h \
meta-frame-borders.h \
meta-frame-enums.h \
diff --git a/libmetacity/meta-draw-op-private.h b/libmetacity/meta-draw-op-private.h
index c56ea36..3f77746 100644
--- a/libmetacity/meta-draw-op-private.h
+++ b/libmetacity/meta-draw-op-private.h
@@ -22,7 +22,7 @@
#include <gtk/gtk.h>
#include "meta-color-spec-private.h"
-#include "meta-draw-spec.h"
+#include "meta-draw-spec-private.h"
#include "meta-frame-borders.h"
#include "meta-gradient-spec-private.h"
diff --git a/libmetacity/meta-draw-spec.h b/libmetacity/meta-draw-spec-private.h
similarity index 93%
rename from libmetacity/meta-draw-spec.h
rename to libmetacity/meta-draw-spec-private.h
index a17d9a0..5a36dfc 100644
--- a/libmetacity/meta-draw-spec.h
+++ b/libmetacity/meta-draw-spec-private.h
@@ -16,8 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef META_DRAW_SPEC_H
-#define META_DRAW_SPEC_H
+#ifndef META_DRAW_SPEC_PRIVATE_H
+#define META_DRAW_SPEC_PRIVATE_H
#include <gdk/gdk.h>
@@ -48,18 +48,23 @@ struct _MetaPositionExprEnv
int icon_height;
};
+G_GNUC_INTERNAL
MetaDrawSpec *meta_draw_spec_new (MetaThemeMetacity *metacity,
const char *expr,
GError **error);
+G_GNUC_INTERNAL
void meta_draw_spec_free (MetaDrawSpec *spec);
+G_GNUC_INTERNAL
gint meta_draw_spec_parse_x_position (MetaDrawSpec *spec,
const MetaPositionExprEnv *env);
+G_GNUC_INTERNAL
gint meta_draw_spec_parse_y_position (MetaDrawSpec *spec,
const MetaPositionExprEnv *env);
+G_GNUC_INTERNAL
gint meta_draw_spec_parse_size (MetaDrawSpec *spec,
const MetaPositionExprEnv *env);
diff --git a/libmetacity/meta-draw-spec.c b/libmetacity/meta-draw-spec.c
index 716c8ac..bd9f816 100644
--- a/libmetacity/meta-draw-spec.c
+++ b/libmetacity/meta-draw-spec.c
@@ -21,7 +21,7 @@
#include <glib/gi18n-lib.h>
#include <stdlib.h>
-#include "meta-draw-spec.h"
+#include "meta-draw-spec-private.h"
#include "meta-theme.h"
#include "meta-theme-metacity-private.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]