X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=hildon-widgets%2Fhildon-marshalers.c;h=b5dd8995ef8e5e545564e9ed0084f6d13b365a60;hb=c60fd7a14e55bd278d2c836940e44b79500e5e59;hp=52810457b961c212542a5ae2a8600438c2924930;hpb=012407abbbf8ca1283da080022128771ff95b0a3;p=hildon diff --git a/hildon-widgets/hildon-marshalers.c b/hildon-widgets/hildon-marshalers.c index 5281045..b5dd899 100644 --- a/hildon-widgets/hildon-marshalers.c +++ b/hildon-widgets/hildon-marshalers.c @@ -1,28 +1,4 @@ -/* - * This file is part of hildon-libs - * - * Copyright (C) 2005 Nokia Corporation. - * - * Contact: Luc Pionchon - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 2.1 of - * the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA - * 02110-1301 USA - * - */ - -#include "hildon-marshalers.h" +#include #include @@ -72,19 +48,19 @@ #endif /* !G_ENABLE_DEBUG */ -/* BOOLEAN:INT (hildon-marshalers.list:26) */ +/* BOOLEAN:ENUM (hildon-marshalers.list:26) */ void -_hildon_marshal_BOOLEAN__INT (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) +_hildon_marshal_BOOLEAN__ENUM (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data) { - typedef gboolean (*GMarshalFunc_BOOLEAN__INT) (gpointer data1, - gint arg_1, - gpointer data2); - register GMarshalFunc_BOOLEAN__INT callback; + typedef gboolean (*GMarshalFunc_BOOLEAN__ENUM) (gpointer data1, + gint arg_1, + gpointer data2); + register GMarshalFunc_BOOLEAN__ENUM callback; register GCClosure *cc = (GCClosure*) closure; register gpointer data1, data2; gboolean v_return; @@ -102,10 +78,10 @@ _hildon_marshal_BOOLEAN__INT (GClosure *closure, data1 = g_value_peek_pointer (param_values + 0); data2 = closure->data; } - callback = (GMarshalFunc_BOOLEAN__INT) (marshal_data ? marshal_data : cc->callback); + callback = (GMarshalFunc_BOOLEAN__ENUM) (marshal_data ? marshal_data : cc->callback); v_return = callback (data1, - g_marshal_value_peek_int (param_values + 1), + g_marshal_value_peek_enum (param_values + 1), data2); g_value_set_boolean (return_value, v_return); @@ -154,3 +130,5 @@ _hildon_marshal_BOOLEAN__INT_INT_INT (GClosure *closure, g_value_set_boolean (return_value, v_return); } +/* VOID:OBJECT (hildon-marshalers.list:28) */ +