diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-05-12 23:31:27 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-05-12 23:31:27 +0200 |
commit | ad79032d86616166cb4b60618577a797a7afb9a5 (patch) | |
tree | 02bce9ba6908489a93d6d47f45056e556fcfcc6f /lib/gtk-experiment-widgets/gtk-experiment-navigator.c | |
parent | c5a44c82919edb92ffbd59252013f533fe61a2bf (diff) | |
download | experiment-player-ad79032d86616166cb4b60618577a797a7afb9a5.tar.gz |
use proper CClosure marshallers for vlc-player and experiment-navigator signals
the ...VOID__LONG standard marshaller used worked for INT64 but this wasn't guaranteed (size of LONG is platform-dependant)
* now, required marshallers are generated if they don't already exist in gobject, if they do, only an alias is defined
* every widget has its own marshaller namespace
* exclude marshallers from Doxygen docs
Diffstat (limited to 'lib/gtk-experiment-widgets/gtk-experiment-navigator.c')
-rw-r--r-- | lib/gtk-experiment-widgets/gtk-experiment-navigator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gtk-experiment-widgets/gtk-experiment-navigator.c b/lib/gtk-experiment-widgets/gtk-experiment-navigator.c index 412c90a..6d76979 100644 --- a/lib/gtk-experiment-widgets/gtk-experiment-navigator.c +++ b/lib/gtk-experiment-widgets/gtk-experiment-navigator.c @@ -17,6 +17,7 @@ #include <gtk/gtk.h> #include <experiment-reader.h> +#include "cclosure-marshallers.h" #include "gtk-experiment-navigator.h" static void gtk_experiment_navigator_class_init(GtkExperimentNavigatorClass *klass); @@ -58,15 +59,14 @@ G_DEFINE_TYPE(GtkExperimentNavigator, gtk_experiment_navigator, GTK_TYPE_TREE_VI static void gtk_experiment_navigator_class_init(GtkExperimentNavigatorClass *klass) { - /** @todo use correct marshal, this one could fail on 32-bit platforms */ gtk_experiment_navigator_signals[TIME_SELECTED_SIGNAL] = g_signal_new("time-selected", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION, G_STRUCT_OFFSET(GtkExperimentNavigatorClass, time_selected), NULL, NULL, - g_cclosure_marshal_VOID__LONG, G_TYPE_NONE, - 1, G_TYPE_INT64); + gtk_experiment_navigator_marshal_VOID__INT64, + G_TYPE_NONE, 1, G_TYPE_INT64); } /** |