~ubuntu-branches/ubuntu/precise/evince/precise-updates

« back to all changes in this revision

Viewing changes to shell/ev-marshal.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-01-19 10:39:43 UTC
  • mto: (1.6.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 70.
  • Revision ID: james.westby@ubuntu.com-20090119103943-dhe56g9rmuq7khys
Tags: upstream-2.25.5
ImportĀ upstreamĀ versionĀ 2.25.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
#endif /* !G_ENABLE_DEBUG */
49
49
 
50
50
 
51
 
/* VOID:NONE (./ev-marshal.list:1) */
52
 
 
53
 
/* VOID:OBJECT,OBJECT (./ev-marshal.list:2) */
54
 
void
55
 
ev_marshal_VOID__OBJECT_OBJECT (GClosure     *closure,
56
 
                                GValue       *return_value G_GNUC_UNUSED,
57
 
                                guint         n_param_values,
58
 
                                const GValue *param_values,
59
 
                                gpointer      invocation_hint G_GNUC_UNUSED,
60
 
                                gpointer      marshal_data)
61
 
{
62
 
  typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer     data1,
63
 
                                                    gpointer     arg_1,
64
 
                                                    gpointer     arg_2,
65
 
                                                    gpointer     data2);
66
 
  register GMarshalFunc_VOID__OBJECT_OBJECT callback;
67
 
  register GCClosure *cc = (GCClosure*) closure;
68
 
  register gpointer data1, data2;
69
 
 
70
 
  g_return_if_fail (n_param_values == 3);
71
 
 
72
 
  if (G_CCLOSURE_SWAP_DATA (closure))
73
 
    {
74
 
      data1 = closure->data;
75
 
      data2 = g_value_peek_pointer (param_values + 0);
76
 
    }
77
 
  else
78
 
    {
79
 
      data1 = g_value_peek_pointer (param_values + 0);
80
 
      data2 = closure->data;
81
 
    }
82
 
  callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
83
 
 
84
 
  callback (data1,
85
 
            g_marshal_value_peek_object (param_values + 1),
86
 
            g_marshal_value_peek_object (param_values + 2),
87
 
            data2);
88
 
}
89
 
 
90
 
/* VOID:ENUM,BOOLEAN (./ev-marshal.list:3) */
91
 
void
92
 
ev_marshal_VOID__ENUM_BOOLEAN (GClosure     *closure,
93
 
                               GValue       *return_value G_GNUC_UNUSED,
94
 
                               guint         n_param_values,
95
 
                               const GValue *param_values,
96
 
                               gpointer      invocation_hint G_GNUC_UNUSED,
97
 
                               gpointer      marshal_data)
98
 
{
99
 
  typedef void (*GMarshalFunc_VOID__ENUM_BOOLEAN) (gpointer     data1,
100
 
                                                   gint         arg_1,
101
 
                                                   gboolean     arg_2,
102
 
                                                   gpointer     data2);
103
 
  register GMarshalFunc_VOID__ENUM_BOOLEAN callback;
104
 
  register GCClosure *cc = (GCClosure*) closure;
105
 
  register gpointer data1, data2;
106
 
 
107
 
  g_return_if_fail (n_param_values == 3);
108
 
 
109
 
  if (G_CCLOSURE_SWAP_DATA (closure))
110
 
    {
111
 
      data1 = closure->data;
112
 
      data2 = g_value_peek_pointer (param_values + 0);
113
 
    }
114
 
  else
115
 
    {
116
 
      data1 = g_value_peek_pointer (param_values + 0);
117
 
      data2 = closure->data;
118
 
    }
119
 
  callback = (GMarshalFunc_VOID__ENUM_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
120
 
 
121
 
  callback (data1,
122
 
            g_marshal_value_peek_enum (param_values + 1),
123
 
            g_marshal_value_peek_boolean (param_values + 2),
124
 
            data2);
125
 
}
126
 
 
127
 
/* VOID:STRING,STRING (./ev-marshal.list:4) */
 
51
/* VOID:STRING,STRING (./ev-marshal.list:1) */
128
52
void
129
53
ev_marshal_VOID__STRING_STRING (GClosure     *closure,
130
54
                                GValue       *return_value G_GNUC_UNUSED,