[mutter] common: Do not leak MetaResizePopup to the public api
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] common: Do not leak MetaResizePopup to the public api
- Date: Wed, 4 Jun 2014 14:25:01 +0000 (UTC)
commit 8766db2593ebc7cf0e5495d9c3b1f2e0b523f384
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Jun 4 15:53:29 2014 +0200
common: Do not leak MetaResizePopup to the public api
src/meta/common.h | 2 --
src/ui/resizepopup.h | 2 ++
src/x11/window-x11-private.h | 5 +++--
3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/meta/common.h b/src/meta/common.h
index 411ac37..9fc0297 100644
--- a/src/meta/common.h
+++ b/src/meta/common.h
@@ -43,8 +43,6 @@
#define META_VIRTUAL_CORE_POINTER_ID 2
#define META_VIRTUAL_CORE_KEYBOARD_ID 3
-typedef struct _MetaResizePopup MetaResizePopup;
-
/**
* MetaFrameFlags:
* @META_FRAME_ALLOWS_DELETE: frame allows delete
diff --git a/src/ui/resizepopup.h b/src/ui/resizepopup.h
index 9b51b59..2b83ea3 100644
--- a/src/ui/resizepopup.h
+++ b/src/ui/resizepopup.h
@@ -29,6 +29,8 @@
#include <glib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
+typedef struct _MetaResizePopup MetaResizePopup;
+
MetaResizePopup* meta_ui_resize_popup_new (Display *display,
int screen_number);
void meta_ui_resize_popup_free (MetaResizePopup *popup);
diff --git a/src/x11/window-x11-private.h b/src/x11/window-x11-private.h
index 4a18c41..0fe90b8 100644
--- a/src/x11/window-x11-private.h
+++ b/src/x11/window-x11-private.h
@@ -20,11 +20,12 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#include "window-private.h"
-
#ifndef META_WINDOW_X11_PRIVATE_H
#define META_WINDOW_X11_PRIVATE_H
+#include "window-private.h"
+#include "ui/resizepopup.h"
+
G_BEGIN_DECLS
typedef struct _MetaWindowX11Private MetaWindowX11Private;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]