summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-02-07 23:38:39 +0200
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-02-07 23:38:39 +0200
commit76fc58683c2dc35e0ff8fef2e97662d7cd352264 (patch)
treea20d3eed059acda4e5e13140e3cf4d8a3c514aa5
parent8abae212458d826ec8c85fd539c08e2b57c1c5ed (diff)
downloadmetacity-76fc58683c2dc35e0ff8fef2e97662d7cd352264.tar.gz
libmetacity: don't expose MetaFrameLayout
-rw-r--r--libmetacity/Makefile.am3
-rw-r--r--libmetacity/meta-frame-layout-private.h (renamed from libmetacity/meta-frame-layout.h)9
-rw-r--r--libmetacity/meta-frame-layout.c2
-rw-r--r--libmetacity/meta-frame-style.c1
-rw-r--r--libmetacity/meta-frame-style.h3
-rw-r--r--libmetacity/meta-theme-gtk.c1
-rw-r--r--libmetacity/meta-theme-metacity.c2
-rw-r--r--libmetacity/meta-theme.c1
8 files changed, 15 insertions, 7 deletions
diff --git a/libmetacity/Makefile.am b/libmetacity/Makefile.am
index 03c31569..e063d73a 100644
--- a/libmetacity/Makefile.am
+++ b/libmetacity/Makefile.am
@@ -21,7 +21,7 @@ libmetacity_la_SOURCES = \
meta-frame-borders.h \
meta-frame-enums.h \
meta-frame-layout.c \
- meta-frame-layout.h \
+ meta-frame-layout-private.h \
meta-frame-style.c \
meta-frame-style.h \
meta-gradient.c \
@@ -73,7 +73,6 @@ libmetacity_include_HEADERS = \
meta-enum-types.h \
meta-frame-borders.h \
meta-frame-enums.h \
- meta-frame-layout.h \
meta-frame-style.h \
meta-theme.h \
$(NULL)
diff --git a/libmetacity/meta-frame-layout.h b/libmetacity/meta-frame-layout-private.h
index edcf270a..584ee4bf 100644
--- a/libmetacity/meta-frame-layout.h
+++ b/libmetacity/meta-frame-layout-private.h
@@ -16,8 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef META_FRAME_LAYOUT_H
-#define META_FRAME_LAYOUT_H
+#ifndef META_FRAME_LAYOUT_PRIVATE_H
+#define META_FRAME_LAYOUT_PRIVATE_H
#include <gtk/gtk.h>
@@ -150,14 +150,19 @@ struct _MetaFrameLayout
guint bottom_right_corner_rounded_radius;
};
+G_GNUC_INTERNAL
MetaFrameLayout *meta_frame_layout_new (void);
+G_GNUC_INTERNAL
MetaFrameLayout *meta_frame_layout_copy (const MetaFrameLayout *src);
+G_GNUC_INTERNAL
void meta_frame_layout_ref (MetaFrameLayout *layout);
+G_GNUC_INTERNAL
void meta_frame_layout_unref (MetaFrameLayout *layout);
+G_GNUC_INTERNAL
gboolean meta_frame_layout_validate (const MetaFrameLayout *layout,
GError **error);
diff --git a/libmetacity/meta-frame-layout.c b/libmetacity/meta-frame-layout.c
index 5cf6ae02..9634a9e0 100644
--- a/libmetacity/meta-frame-layout.c
+++ b/libmetacity/meta-frame-layout.c
@@ -20,7 +20,7 @@
#include <glib/gi18n-lib.h>
-#include "meta-frame-layout.h"
+#include "meta-frame-layout-private.h"
#include "meta-theme.h"
/**
diff --git a/libmetacity/meta-frame-style.c b/libmetacity/meta-frame-style.c
index 449312ef..15bd4f5f 100644
--- a/libmetacity/meta-frame-style.c
+++ b/libmetacity/meta-frame-style.c
@@ -22,6 +22,7 @@
#include "meta-color-spec-private.h"
#include "meta-draw-op-private.h"
+#include "meta-frame-layout-private.h"
#include "meta-frame-style.h"
#include "meta-theme.h"
#include "meta-theme-metacity-private.h"
diff --git a/libmetacity/meta-frame-style.h b/libmetacity/meta-frame-style.h
index c7428c6c..511c25ac 100644
--- a/libmetacity/meta-frame-style.h
+++ b/libmetacity/meta-frame-style.h
@@ -19,13 +19,14 @@
#ifndef META_FRAME_STYLE_H
#define META_FRAME_STYLE_H
+#include <gtk/gtk.h>
#include <libmetacity/meta-button-enums.h>
#include <libmetacity/meta-frame-enums.h>
-#include <libmetacity/meta-frame-layout.h>
G_BEGIN_DECLS
typedef struct _MetaColorSpec MetaColorSpec;
+typedef struct _MetaFrameLayout MetaFrameLayout;
typedef struct _MetaFrameStyle MetaFrameStyle;
typedef struct _MetaFrameStyleSet MetaFrameStyleSet;
typedef struct _MetaDrawOpList MetaDrawOpList;
diff --git a/libmetacity/meta-theme-gtk.c b/libmetacity/meta-theme-gtk.c
index 85463358..8269f1ce 100644
--- a/libmetacity/meta-theme-gtk.c
+++ b/libmetacity/meta-theme-gtk.c
@@ -21,6 +21,7 @@
#include <stdlib.h>
#include <string.h>
+#include "meta-frame-layout-private.h"
#include "meta-frame-style.h"
#include "meta-theme-gtk-private.h"
#include "meta-theme.h"
diff --git a/libmetacity/meta-theme-metacity.c b/libmetacity/meta-theme-metacity.c
index c8fa0a27..fbeaa6dd 100644
--- a/libmetacity/meta-theme-metacity.c
+++ b/libmetacity/meta-theme-metacity.c
@@ -24,7 +24,7 @@
#include <string.h>
#include "meta-draw-op-private.h"
-#include "meta-frame-layout.h"
+#include "meta-frame-layout-private.h"
#include "meta-frame-style.h"
#include "meta-theme.h"
#include "meta-theme-metacity-private.h"
diff --git a/libmetacity/meta-theme.c b/libmetacity/meta-theme.c
index f3d24710..48a83c9c 100644
--- a/libmetacity/meta-theme.c
+++ b/libmetacity/meta-theme.c
@@ -21,6 +21,7 @@
#include <string.h>
#include "meta-enum-types.h"
+#include "meta-frame-layout-private.h"
#include "meta-theme.h"
#include "meta-theme-gtk-private.h"
#include "meta-theme-impl-private.h"