Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Use generic marshaler
Browse files Browse the repository at this point in the history
If only to keep people from refiling the same issue over
and over again...
  • Loading branch information
Matthias Clasen committed Jul 22, 2011
1 parent edcce8e commit 71a70a7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
18 changes: 0 additions & 18 deletions perf/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -30,41 +30,24 @@ testperf_SOURCES = \
gtkwidgetprofiler.c \
gtkwidgetprofiler.h \
main.c \
marshalers.c \
marshalers.h \
textview.c \
treeview.c \
typebuiltins.c \
typebuiltins.h \
widgets.h

BUILT_SOURCES = \
marshalers.c \
marshalers.h \
typebuiltins.c \
typebuiltins.h

stamp_files = \
stamp-marshalers.h \
stamp-typebuiltins.h

headers_with_enums = \
gtkwidgetprofiler.h

MAINTAINERCLEANFILES = $(BUILT_SOURCES) $(stamp_files)

marshalers.h: stamp-marshalers.h
@true

stamp-marshalers.h: @REBUILD@ marshalers.list
$(GLIB_GENMARSHAL) --prefix=_testperf_marshal $(srcdir)/marshalers.list --header >> xgen-gmlh \
&& (cmp -s xgen-gmlh marshalers.h || cp xgen-gmlh marshalers.h) \
&& rm -f xgen-gmlh \
&& echo timestamp > $(@F)
marshalers.c: @REBUILD@ marshalers.list
$(GLIB_GENMARSHAL) --prefix=_testperf_marshal $(srcdir)/marshalers.list --body >> xgen-gmlc \
&& cp xgen-gmlc marshalers.c \
&& rm -f xgen-gmlc

typebuiltins.h: stamp-typebuiltins.h
@true
Expand All @@ -83,7 +66,6 @@ typebuiltins.c: @REBUILD@ $(headers_with_enums) typebuiltins.c.template

EXTRA_DIST += \
README \
marshalers.list \
typebuiltins.c.template \
typebuiltins.h.template \
$(BUILT_SOURCES)
Expand Down
5 changes: 2 additions & 3 deletions perf/gtkwidgetprofiler.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "config.h"
#include <string.h>
#include "gtkwidgetprofiler.h"
#include "marshalers.h"
#include "typebuiltins.h"

typedef enum {
Expand Down Expand Up @@ -53,7 +52,7 @@ gtk_widget_profiler_class_init (GtkWidgetProfilerClass *class)
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkWidgetProfilerClass, create_widget),
NULL, NULL,
_testperf_marshal_OBJECT__VOID,
NULL,
G_TYPE_OBJECT, 0);

signals[REPORT] =
Expand All @@ -62,7 +61,7 @@ gtk_widget_profiler_class_init (GtkWidgetProfilerClass *class)
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GtkWidgetProfilerClass, report),
NULL, NULL,
_testperf_marshal_VOID__ENUM_OBJECT_DOUBLE,
NULL,
G_TYPE_NONE, 3,
GTK_TYPE_WIDGET_PROFILER_REPORT,
G_TYPE_OBJECT,
Expand Down
2 changes: 0 additions & 2 deletions perf/marshalers.list

This file was deleted.

0 comments on commit 71a70a7

Please sign in to comment.