st: Use generic marshaller

https://bugzilla.gnome.org/show_bug.cgi?id=662152
This commit is contained in:
Jasper St. Pierre 2011-10-18 18:17:49 -04:00
parent c6e924f788
commit 78fb102002
13 changed files with 15 additions and 71 deletions

View File

@ -11,39 +11,16 @@ st_cflags = \
st_built_sources = \ st_built_sources = \
st-enum-types.h \ st-enum-types.h \
st-enum-types.c \ st-enum-types.c
st-marshal.h \
st-marshal.c
BUILT_SOURCES += $(st_built_sources) BUILT_SOURCES += $(st_built_sources)
EXTRA_DIST += \ EXTRA_DIST += \
st/test-theme.css \ st/test-theme.css \
st/st-marshal.list \
st/st-enum-types.h.in \ st/st-enum-types.h.in \
st/st-enum-types.c.in st/st-enum-types.c.in
CLEANFILES += stamp-st-marshal.h stamp-st-enum-types.h CLEANFILES += stamp-st-enum-types.h
st-marshal.h: stamp-st-marshal.h
@true
stamp-st-marshal.h: Makefile st/st-marshal.list
$(AM_V_GEN) $(GLIB_GENMARSHAL) \
--prefix=_st_marshal \
--header \
$(srcdir)/st/st-marshal.list > $@.tmp && \
(cmp -s $@.tmp st-marshal.h || cp -f $@.tmp st-marshal.h) && \
rm -f $@.tmp && \
echo timestamp > $(@F)
st-marshal.c: Makefile st/st-marshal.list
$(AM_V_GEN) (echo "#include \"st-marshal.h\"" ; \
$(GLIB_GENMARSHAL) \
--prefix=_st_marshal \
--body \
$(srcdir)/st/st-marshal.list ) > $@.tmp && \
cp -f $@.tmp st-marshal.c && \
rm -f $@.tmp
st-enum-types.h: stamp-st-enum-types.h Makefile st-enum-types.h: stamp-st-enum-types.h Makefile
@true @true

View File

@ -34,7 +34,6 @@
#include <clutter/clutter.h> #include <clutter/clutter.h>
#include "st-adjustment.h" #include "st-adjustment.h"
#include "st-marshal.h"
#include "st-private.h" #include "st-private.h"
G_DEFINE_TYPE (StAdjustment, st_adjustment, G_TYPE_OBJECT) G_DEFINE_TYPE (StAdjustment, st_adjustment, G_TYPE_OBJECT)
@ -267,8 +266,7 @@ st_adjustment_class_init (StAdjustmentClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (StAdjustmentClass, changed), G_STRUCT_OFFSET (StAdjustmentClass, changed),
NULL, NULL, NULL, NULL, NULL,
_st_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
} }

View File

@ -41,7 +41,6 @@
#include "st-button.h" #include "st-button.h"
#include "st-enum-types.h" #include "st-enum-types.h"
#include "st-marshal.h"
#include "st-texture-cache.h" #include "st-texture-cache.h"
#include "st-private.h" #include "st-private.h"
@ -444,8 +443,7 @@ st_button_class_init (StButtonClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (StButtonClass, clicked), G_STRUCT_OFFSET (StButtonClass, clicked),
NULL, NULL, NULL, NULL, NULL,
_st_marshal_VOID__INT,
G_TYPE_NONE, 1, G_TYPE_NONE, 1,
G_TYPE_INT); G_TYPE_INT);
} }

View File

@ -184,8 +184,7 @@ st_drawing_area_class_init (StDrawingAreaClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (StDrawingAreaClass, repaint), G_STRUCT_OFFSET (StDrawingAreaClass, repaint),
NULL, NULL, NULL, NULL, NULL,
g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
g_type_class_add_private (gobject_class, sizeof (StDrawingAreaPrivate)); g_type_class_add_private (gobject_class, sizeof (StDrawingAreaPrivate));

View File

@ -62,7 +62,6 @@
#include "st-icon.h" #include "st-icon.h"
#include "st-widget.h" #include "st-widget.h"
#include "st-texture-cache.h" #include "st-texture-cache.h"
#include "st-marshal.h"
#include "st-clipboard.h" #include "st-clipboard.h"
#include "st-private.h" #include "st-private.h"
@ -735,8 +734,7 @@ st_entry_class_init (StEntryClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (StEntryClass, primary_icon_clicked), G_STRUCT_OFFSET (StEntryClass, primary_icon_clicked),
NULL, NULL, NULL, NULL, NULL,
_st_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
/** /**
* StEntry::secondary-icon-clicked: * StEntry::secondary-icon-clicked:
@ -748,8 +746,7 @@ st_entry_class_init (StEntryClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (StEntryClass, secondary_icon_clicked), G_STRUCT_OFFSET (StEntryClass, secondary_icon_clicked),
NULL, NULL, NULL, NULL, NULL,
_st_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
} }

View File

@ -1,13 +0,0 @@
VOID:OBJECT
VOID:VOID
VOID:PARAM
VOID:POINTER
VOID:INT
VOID:UINT
VOID:UINT,UINT
VOID:OBJECT,OBJECT
VOID:STRING,OBJECT
VOID:OBJECT,OBJECT,INT,INT
VOID:OBJECT,FLOAT,FLOAT,INT,ENUM
VOID:FLOAT,FLOAT,INT,ENUM
VOID:FLOAT,FLOAT

View File

@ -36,7 +36,6 @@
#include "st-scroll-bar.h" #include "st-scroll-bar.h"
#include "st-bin.h" #include "st-bin.h"
#include "st-marshal.h"
#include "st-enum-types.h" #include "st-enum-types.h"
#include "st-private.h" #include "st-private.h"
#include "st-button.h" #include "st-button.h"
@ -714,8 +713,7 @@ st_scroll_bar_class_init (StScrollBarClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (StScrollBarClass, scroll_start), G_STRUCT_OFFSET (StScrollBarClass, scroll_start),
NULL, NULL, NULL, NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
signals[SCROLL_STOP] = signals[SCROLL_STOP] =
@ -723,8 +721,7 @@ st_scroll_bar_class_init (StScrollBarClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (StScrollBarClass, scroll_stop), G_STRUCT_OFFSET (StScrollBarClass, scroll_stop),
NULL, NULL, NULL, NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
} }

View File

@ -59,7 +59,6 @@
*/ */
#include "st-scroll-view.h" #include "st-scroll-view.h"
#include "st-marshal.h"
#include "st-scroll-bar.h" #include "st-scroll-bar.h"
#include "st-scrollable.h" #include "st-scrollable.h"
#include "st-scroll-view-fade.h" #include "st-scroll-view-fade.h"

View File

@ -41,7 +41,6 @@
#include <clutter/clutter.h> #include <clutter/clutter.h>
#include "st-enum-types.h" #include "st-enum-types.h"
#include "st-marshal.h"
#include "st-private.h" #include "st-private.h"
#include "st-table-child.h" #include "st-table-child.h"
#include "st-table-private.h" #include "st-table-private.h"

View File

@ -95,8 +95,7 @@ st_texture_cache_class_init (StTextureCacheClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
0, /* no default handler slot */ 0, /* no default handler slot */
NULL, NULL, NULL, NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
} }

View File

@ -86,8 +86,7 @@ st_theme_context_class_init (StThemeContextClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
0, /* no default handler slot */ 0, /* no default handler slot */
NULL, NULL, NULL, NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
} }

View File

@ -454,8 +454,7 @@ st_theme_node_transition_class_init (StThemeNodeTransitionClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (StThemeNodeTransitionClass, completed), G_STRUCT_OFFSET (StThemeNodeTransitionClass, completed),
NULL, NULL, NULL, NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
signals[NEW_FRAME] = signals[NEW_FRAME] =
@ -463,7 +462,6 @@ st_theme_node_transition_class_init (StThemeNodeTransitionClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (StThemeNodeTransitionClass, new_frame), G_STRUCT_OFFSET (StThemeNodeTransitionClass, new_frame),
NULL, NULL, NULL, NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
} }

View File

@ -35,7 +35,6 @@
#include "st-widget.h" #include "st-widget.h"
#include "st-label.h" #include "st-label.h"
#include "st-marshal.h"
#include "st-private.h" #include "st-private.h"
#include "st-texture-cache.h" #include "st-texture-cache.h"
#include "st-theme-context.h" #include "st-theme-context.h"
@ -995,8 +994,7 @@ st_widget_class_init (StWidgetClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (StWidgetClass, style_changed), G_STRUCT_OFFSET (StWidgetClass, style_changed),
NULL, NULL, NULL, NULL, NULL,
_st_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
/** /**
@ -1011,8 +1009,7 @@ st_widget_class_init (StWidgetClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (StWidgetClass, popup_menu), G_STRUCT_OFFSET (StWidgetClass, popup_menu),
NULL, NULL, NULL, NULL, NULL,
_st_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
} }