~ubuntu-branches/ubuntu/precise/evolution/precise

« back to all changes in this revision

Viewing changes to widgets/table/e-table-field-chooser.c

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2011-09-08 09:38:57 UTC
  • mfrom: (1.1.84 upstream)
  • Revision ID: package-import@ubuntu.com-20110908093857-6lfl04ke2ns3kx2o
Tags: 3.1.91-0ubuntu1
* New upstream release. (LP: #843769)
* debian/control: bump e-d-s Build-Depends to 3.1.91. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include "e-table-field-chooser.h"
37
37
#include "e-table-field-chooser-item.h"
38
38
 
39
 
static void e_table_field_chooser_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec);
40
 
static void e_table_field_chooser_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec);
 
39
static void e_table_field_chooser_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec);
 
40
static void e_table_field_chooser_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec);
41
41
static void e_table_field_chooser_dispose (GObject *object);
42
42
 
43
43
/* The arguments we take */
55
55
{
56
56
        GObjectClass *object_class;
57
57
 
58
 
        object_class = (GObjectClass*) class;
 
58
        object_class = (GObjectClass *) class;
59
59
 
60
60
        object_class->set_property = e_table_field_chooser_set_property;
61
61
        object_class->get_property = e_table_field_chooser_get_property;
202
202
                                           "dnd_code", etfc->dnd_code,
203
203
                                           NULL );
204
204
 
205
 
        g_signal_connect( etfc->canvas, "reflow",
 
205
        g_signal_connect ( etfc->canvas, "reflow",
206
206
                          G_CALLBACK ( resize ),
207
207
                          etfc);
208
208
 
238
238
        G_OBJECT_CLASS (e_table_field_chooser_parent_class)->dispose (object);
239
239
}
240
240
 
241
 
GtkWidget*
 
241
GtkWidget *
242
242
e_table_field_chooser_new (void)
243
243
{
244
244
        return g_object_new (E_TYPE_TABLE_FIELD_CHOOSER, NULL);
245
245
}
246
246
 
247
247
static void
248
 
e_table_field_chooser_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
 
248
e_table_field_chooser_set_property (GObject *object,
 
249
                                    guint property_id,
 
250
                                    const GValue *value,
 
251
                                    GParamSpec *pspec)
249
252
{
250
253
        ETableFieldChooser *etfc = E_TABLE_FIELD_CHOOSER (object);
251
254
 
252
 
        switch (prop_id) {
 
255
        switch (property_id) {
253
256
        case PROP_DND_CODE:
254
257
                g_free (etfc->dnd_code);
255
258
                etfc->dnd_code = g_strdup (g_value_get_string (value));
292
295
}
293
296
 
294
297
static void
295
 
e_table_field_chooser_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
 
298
e_table_field_chooser_get_property (GObject *object,
 
299
                                    guint property_id,
 
300
                                    GValue *value,
 
301
                                    GParamSpec *pspec)
296
302
{
297
303
        ETableFieldChooser *etfc = E_TABLE_FIELD_CHOOSER (object);
298
304
 
299
 
        switch (prop_id) {
 
305
        switch (property_id) {
300
306
        case PROP_DND_CODE:
301
307
                g_value_set_string (value, etfc->dnd_code);
302
308
                break;
307
313
                g_value_set_object (value, etfc->header);
308
314
                break;
309
315
        default:
310
 
                G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
 
316
                G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
311
317
                break;
312
318
        }
313
319
}