loudmouth/lm-dummy.c
author Mikael Hallendal <micke@imendio.com>
Sun, 22 Jun 2008 23:11:53 +0200
changeset 424 0603668c7ddc
child 426 ab47db6da589
permissions -rw-r--r--
Added lm-marshal.list and lm-marshal-main.c Also added lm-dummy.[ch] for a copy/paste GObject.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     2
/*
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     3
 * Copyright (C) 2007 Imendio AB
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     4
 *
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     6
 * modify it under the terms of the GNU Lesser General Public License as
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     7
 * published by the Free Software Foundation; either version 2 of the
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     8
 * License, or (at your option) any later version.
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     9
 *
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    10
 * This program is distributed in the hope that it will be useful,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    13
 * Lesser General Public License for more details.
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    14
 *
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    15
 * You should have received a copy of the GNU Lesser General Public
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    16
 * License along with this program; if not, write to the
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    17
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    18
 * Boston, MA 02111-1307, USA.
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    19
 */
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    20
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    21
#include <config.h>
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    22
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    23
#include "lm-marshal.h"
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    24
#include "lm-dummy.h"
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    25
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    26
#define GET_PRIV(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), LM_TYPE_DUMMY, LmDummyPriv))
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    27
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    28
typedef struct LmDummyPriv LmDummyPriv;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    29
struct LmDummyPriv {
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    30
	gint my_prop;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    31
};
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    32
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    33
static void     dummy_finalize            (GObject           *object);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    34
static void     dummy_get_property        (GObject           *object,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    35
					   guint              param_id,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    36
					   GValue            *value,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    37
					   GParamSpec        *pspec);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    38
static void     dummy_set_property        (GObject           *object,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    39
					   guint              param_id,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    40
					   const GValue      *value,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    41
					   GParamSpec        *pspec);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    42
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    43
G_DEFINE_TYPE (LmDummy, lm_dummy, G_TYPE_OBJECT)
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    44
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    45
enum {
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    46
	PROP_0,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    47
	PROP_MY_PROP
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    48
};
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    49
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    50
enum {
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    51
	SIGNAL_NAME,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    52
	LAST_SIGNAL
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    53
};
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    54
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    55
static guint signals[LAST_SIGNAL] = { 0 };
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    56
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    57
static void
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    58
lm_dummy_class_init (LmDummyClass *class)
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    59
{
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    60
	GObjectClass *object_class = G_OBJECT_CLASS (class);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    61
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    62
	object_class->finalize     = dummy_finalize;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    63
	object_class->get_property = dummy_get_property;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    64
	object_class->set_property = dummy_set_property;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    65
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    66
	g_object_class_install_property (object_class,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    67
					 PROP_MY_PROP,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    68
					 g_param_spec_string ("my-prop",
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    69
							      "My Prop",
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    70
							      "My Property",
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    71
							      NULL,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    72
							      G_PARAM_READWRITE));
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    73
	
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    74
	signals[SIGNAL_NAME] = 
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    75
		g_signal_new ("signal-name",
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    76
			      G_OBJECT_CLASS_TYPE (object_class),
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    77
			      G_SIGNAL_RUN_LAST,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    78
			      0,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    79
			      NULL, NULL,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    80
			      lm_marshal_VOID__INT,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    81
			      G_TYPE_NONE, 
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    82
			      1, G_TYPE_INT);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    83
	
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    84
	g_type_class_add_private (object_class, sizeof (LmDummyPriv));
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    85
}
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    86
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    87
static void
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    88
lm_dummy_init (LmDummy *dummy)
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    89
{
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    90
	LmDummyPriv *priv;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    91
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    92
	priv = GET_PRIV (dummy);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    93
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    94
}
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    95
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    96
static void
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    97
dummy_finalize (GObject *object)
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    98
{
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    99
	LmDummyPriv *priv;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   100
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   101
	priv = GET_PRIV (object);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   102
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   103
	(G_OBJECT_CLASS (lm_dummy_parent_class)->finalize) (object);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   104
}
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   105
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   106
static void
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   107
dummy_get_property (GObject    *object,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   108
		   guint       param_id,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   109
		   GValue     *value,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   110
		   GParamSpec *pspec)
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   111
{
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   112
	LmDummyPriv *priv;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   113
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   114
	priv = GET_PRIV (object);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   115
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   116
	switch (param_id) {
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   117
	case PROP_MY_PROP:
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   118
		g_value_set_int (value, priv->my_prop);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   119
		break;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   120
	default:
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   121
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   122
		break;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   123
	};
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   124
}
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   125
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   126
static void
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   127
dummy_set_property (GObject      *object,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   128
		   guint         param_id,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   129
		   const GValue *value,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   130
		   GParamSpec   *pspec)
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   131
{
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   132
	LmDummyPriv *priv;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   133
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   134
	priv = GET_PRIV (object);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   135
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   136
	switch (param_id) {
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   137
	case PROP_MY_PROP:
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   138
		priv->my_prop = g_value_get_int (value);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   139
		break;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   140
	default:
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   141
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   142
		break;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   143
	};
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   144
}
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   145