mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
Use generic marshaller
https://bugzilla.gnome.org/show_bug.cgi?id=662153
This commit is contained in:
parent
eb0185c1b1
commit
3a4512cd91
@ -27,8 +27,6 @@ INCLUDES= \
|
|||||||
-DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\"
|
-DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\"
|
||||||
|
|
||||||
mutter_built_sources = \
|
mutter_built_sources = \
|
||||||
mutter-marshal.h \
|
|
||||||
mutter-marshal.c \
|
|
||||||
mutter-enum-types.h \
|
mutter-enum-types.h \
|
||||||
mutter-enum-types.c
|
mutter-enum-types.c
|
||||||
|
|
||||||
@ -307,33 +305,12 @@ EXTRA_DIST=$(desktopfiles_files) \
|
|||||||
libmutter.pc.in \
|
libmutter.pc.in \
|
||||||
mutter-plugins.pc.in \
|
mutter-plugins.pc.in \
|
||||||
mutter-enum-types.h.in \
|
mutter-enum-types.h.in \
|
||||||
mutter-enum-types.c.in \
|
mutter-enum-types.c.in
|
||||||
mutter-marshal.list
|
|
||||||
|
|
||||||
BUILT_SOURCES += $(mutter_built_sources)
|
BUILT_SOURCES += $(mutter_built_sources)
|
||||||
MUTTER_STAMP_FILES = stamp-mutter-marshal.h stamp-mutter-enum-types.h
|
MUTTER_STAMP_FILES = stamp-mutter-enum-types.h
|
||||||
CLEANFILES += $(MUTTER_STAMP_FILES)
|
CLEANFILES += $(MUTTER_STAMP_FILES)
|
||||||
|
|
||||||
mutter-marshal.h: stamp-mutter-marshal.h
|
|
||||||
@true
|
|
||||||
stamp-mutter-marshal.h: Makefile mutter-marshal.list
|
|
||||||
$(AM_V_GEN) $(GLIB_GENMARSHAL) \
|
|
||||||
--prefix=_mutter_marshal \
|
|
||||||
--header \
|
|
||||||
$(srcdir)/mutter-marshal.list > xgen-tmh && \
|
|
||||||
(cmp -s xgen-tmh mutter-marshal.h || cp -f xgen-tmh mutter-marshal.h) && \
|
|
||||||
rm -f xgen-tmh && \
|
|
||||||
echo timestamp > $(@F)
|
|
||||||
|
|
||||||
mutter-marshal.c: Makefile mutter-marshal.list
|
|
||||||
$(AM_V_GEN) (echo "#include \"mutter-marshal.h\"" ; \
|
|
||||||
$(GLIB_GENMARSHAL) \
|
|
||||||
--prefix=_mutter_marshal \
|
|
||||||
--body \
|
|
||||||
$(srcdir)/mutter-marshal.list ) > xgen-tmc && \
|
|
||||||
cp -f xgen-tmc mutter-marshal.c && \
|
|
||||||
rm -f xgen-tmc
|
|
||||||
|
|
||||||
mutter-enum-types.h: stamp-mutter-enum-types.h Makefile
|
mutter-enum-types.h: stamp-mutter-enum-types.h Makefile
|
||||||
@true
|
@true
|
||||||
stamp-mutter-enum-types.h: $(libmutterinclude_base_headers) mutter-enum-types.h.in
|
stamp-mutter-enum-types.h: $(libmutterinclude_base_headers) mutter-enum-types.h.in
|
||||||
|
@ -442,8 +442,7 @@ meta_shadow_factory_class_init (MetaShadowFactoryClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (object_class),
|
G_TYPE_FROM_CLASS (object_class),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__VOID,
|
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -232,15 +232,13 @@ meta_window_actor_class_init (MetaWindowActorClass *klass)
|
|||||||
g_signal_new ("position-changed",
|
g_signal_new ("position-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0, NULL, NULL,
|
0, NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__VOID,
|
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
signals[SIZE_CHANGED] =
|
signals[SIZE_CHANGED] =
|
||||||
g_signal_new ("size-changed",
|
g_signal_new ("size-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0, NULL, NULL,
|
0, NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__VOID,
|
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -230,8 +230,7 @@ meta_display_class_init (MetaDisplayClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__VOID,
|
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
display_signals[WINDOW_CREATED] =
|
display_signals[WINDOW_CREATED] =
|
||||||
@ -239,8 +238,7 @@ meta_display_class_init (MetaDisplayClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__OBJECT,
|
|
||||||
G_TYPE_NONE, 1, META_TYPE_WINDOW);
|
G_TYPE_NONE, 1, META_TYPE_WINDOW);
|
||||||
|
|
||||||
display_signals[WINDOW_DEMANDS_ATTENTION] =
|
display_signals[WINDOW_DEMANDS_ATTENTION] =
|
||||||
@ -248,8 +246,7 @@ meta_display_class_init (MetaDisplayClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__OBJECT,
|
|
||||||
G_TYPE_NONE, 1, META_TYPE_WINDOW);
|
G_TYPE_NONE, 1, META_TYPE_WINDOW);
|
||||||
|
|
||||||
display_signals[WINDOW_MARKED_URGENT] =
|
display_signals[WINDOW_MARKED_URGENT] =
|
||||||
@ -257,8 +254,7 @@ meta_display_class_init (MetaDisplayClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__OBJECT,
|
|
||||||
G_TYPE_NONE, 1,
|
G_TYPE_NONE, 1,
|
||||||
META_TYPE_WINDOW);
|
META_TYPE_WINDOW);
|
||||||
|
|
||||||
|
@ -39,7 +39,6 @@
|
|||||||
#include "stack.h"
|
#include "stack.h"
|
||||||
#include "xprops.h"
|
#include "xprops.h"
|
||||||
#include <meta/compositor.h>
|
#include <meta/compositor.h>
|
||||||
#include "mutter-marshal.h"
|
|
||||||
#include "mutter-enum-types.h"
|
#include "mutter-enum-types.h"
|
||||||
|
|
||||||
#ifdef HAVE_SOLARIS_XINERAMA
|
#ifdef HAVE_SOLARIS_XINERAMA
|
||||||
@ -162,8 +161,7 @@ meta_screen_class_init (MetaScreenClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (object_class),
|
G_TYPE_FROM_CLASS (object_class),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (MetaScreenClass, restacked),
|
G_STRUCT_OFFSET (MetaScreenClass, restacked),
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__VOID,
|
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
pspec = g_param_spec_int ("n-workspaces",
|
pspec = g_param_spec_int ("n-workspaces",
|
||||||
@ -177,8 +175,7 @@ meta_screen_class_init (MetaScreenClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__INT,
|
|
||||||
G_TYPE_NONE,
|
G_TYPE_NONE,
|
||||||
1,
|
1,
|
||||||
G_TYPE_INT);
|
G_TYPE_INT);
|
||||||
@ -188,8 +185,7 @@ meta_screen_class_init (MetaScreenClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__INT,
|
|
||||||
G_TYPE_NONE,
|
G_TYPE_NONE,
|
||||||
1,
|
1,
|
||||||
G_TYPE_INT);
|
G_TYPE_INT);
|
||||||
@ -199,8 +195,7 @@ meta_screen_class_init (MetaScreenClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
_mutter_marshal_VOID__INT_INT_ENUM,
|
|
||||||
G_TYPE_NONE,
|
G_TYPE_NONE,
|
||||||
3,
|
3,
|
||||||
G_TYPE_INT,
|
G_TYPE_INT,
|
||||||
@ -212,8 +207,7 @@ meta_screen_class_init (MetaScreenClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
_mutter_marshal_VOID__INT_OBJECT,
|
|
||||||
G_TYPE_NONE, 2,
|
G_TYPE_NONE, 2,
|
||||||
G_TYPE_INT,
|
G_TYPE_INT,
|
||||||
META_TYPE_WINDOW);
|
META_TYPE_WINDOW);
|
||||||
@ -223,8 +217,7 @@ meta_screen_class_init (MetaScreenClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
_mutter_marshal_VOID__INT_OBJECT,
|
|
||||||
G_TYPE_NONE, 2,
|
G_TYPE_NONE, 2,
|
||||||
G_TYPE_INT,
|
G_TYPE_INT,
|
||||||
META_TYPE_WINDOW);
|
META_TYPE_WINDOW);
|
||||||
@ -234,8 +227,7 @@ meta_screen_class_init (MetaScreenClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__POINTER,
|
|
||||||
G_TYPE_NONE, 1, G_TYPE_POINTER);
|
G_TYPE_NONE, 1, G_TYPE_POINTER);
|
||||||
|
|
||||||
screen_signals[TOGGLE_RECORDING] =
|
screen_signals[TOGGLE_RECORDING] =
|
||||||
@ -243,8 +235,7 @@ meta_screen_class_init (MetaScreenClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__VOID,
|
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
screen_signals[WORKAREAS_CHANGED] =
|
screen_signals[WORKAREAS_CHANGED] =
|
||||||
@ -252,8 +243,7 @@ meta_screen_class_init (MetaScreenClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (object_class),
|
G_TYPE_FROM_CLASS (object_class),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (MetaScreenClass, workareas_changed),
|
G_STRUCT_OFFSET (MetaScreenClass, workareas_changed),
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__VOID,
|
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
screen_signals[MONITORS_CHANGED] =
|
screen_signals[MONITORS_CHANGED] =
|
||||||
@ -261,8 +251,7 @@ meta_screen_class_init (MetaScreenClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (object_class),
|
G_TYPE_FROM_CLASS (object_class),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (MetaScreenClass, monitors_changed),
|
G_STRUCT_OFFSET (MetaScreenClass, monitors_changed),
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__VOID,
|
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
g_object_class_install_property (object_class,
|
g_object_class_install_property (object_class,
|
||||||
|
@ -455,8 +455,7 @@ meta_window_class_init (MetaWindowClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (object_class),
|
G_TYPE_FROM_CLASS (object_class),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (MetaWindowClass, workspace_changed),
|
G_STRUCT_OFFSET (MetaWindowClass, workspace_changed),
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__INT,
|
|
||||||
G_TYPE_NONE, 1,
|
G_TYPE_NONE, 1,
|
||||||
G_TYPE_INT);
|
G_TYPE_INT);
|
||||||
|
|
||||||
@ -465,8 +464,7 @@ meta_window_class_init (MetaWindowClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (object_class),
|
G_TYPE_FROM_CLASS (object_class),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (MetaWindowClass, focus),
|
G_STRUCT_OFFSET (MetaWindowClass, focus),
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__VOID,
|
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
window_signals[RAISED] =
|
window_signals[RAISED] =
|
||||||
@ -474,8 +472,7 @@ meta_window_class_init (MetaWindowClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (object_class),
|
G_TYPE_FROM_CLASS (object_class),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (MetaWindowClass, raised),
|
G_STRUCT_OFFSET (MetaWindowClass, raised),
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__VOID,
|
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
window_signals[UNMANAGED] =
|
window_signals[UNMANAGED] =
|
||||||
@ -483,8 +480,7 @@ meta_window_class_init (MetaWindowClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (object_class),
|
G_TYPE_FROM_CLASS (object_class),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (MetaWindowClass, unmanaged),
|
G_STRUCT_OFFSET (MetaWindowClass, unmanaged),
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__VOID,
|
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,16 +121,14 @@ meta_workspace_class_init (MetaWorkspaceClass *klass)
|
|||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__OBJECT,
|
|
||||||
G_TYPE_NONE, 1,
|
G_TYPE_NONE, 1,
|
||||||
META_TYPE_WINDOW);
|
META_TYPE_WINDOW);
|
||||||
signals[WINDOW_REMOVED] = g_signal_new ("window-removed",
|
signals[WINDOW_REMOVED] = g_signal_new ("window-removed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__OBJECT,
|
|
||||||
G_TYPE_NONE, 1,
|
G_TYPE_NONE, 1,
|
||||||
META_TYPE_WINDOW);
|
META_TYPE_WINDOW);
|
||||||
|
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
VOID:INT,INT,ENUM
|
|
||||||
VOID:INT,OBJECT
|
|
Loading…
Reference in New Issue
Block a user