~ubuntu-branches/ubuntu/saucy/almanah/saucy

« back to all changes in this revision

Viewing changes to src/almanah-marshal.c

  • Committer: Package Import Robot
  • Author(s): Angel Abad
  • Date: 2013-05-14 10:27:40 UTC
  • mfrom: (10.1.6 experimental)
  • Revision ID: package-import@ubuntu.com-20130514102740-llxargofarqlytwv
Tags: 0.10.8-1
* Imported Upstream version 0.10.8
* debian/control:
  - Build-Depends on versioned libgtk-3-dev (>= 3.5.6)
  - Remove libedataserverui-3.0-dev from Build-Depends
  - Build-Depends on libgtkspell3-3-dev
* debian/patches/desktop_keywords:
  - Add Keywords entry in .desktop file
* debian/patches/spellchecking_error:
  - Fix spellchecking errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
            data2);
97
97
}
98
98
 
 
99
/* VOID:OBJECT,STRING (almanah-marshal.list:2) */
 
100
extern void almanah_marshal_VOID__OBJECT_STRING (GClosure     *closure,
 
101
                                                 GValue       *return_value,
 
102
                                                 guint         n_param_values,
 
103
                                                 const GValue *param_values,
 
104
                                                 gpointer      invocation_hint,
 
105
                                                 gpointer      marshal_data);
 
106
void
 
107
almanah_marshal_VOID__OBJECT_STRING (GClosure     *closure,
 
108
                                     GValue       *return_value G_GNUC_UNUSED,
 
109
                                     guint         n_param_values,
 
110
                                     const GValue *param_values,
 
111
                                     gpointer      invocation_hint G_GNUC_UNUSED,
 
112
                                     gpointer      marshal_data)
 
113
{
 
114
  typedef void (*GMarshalFunc_VOID__OBJECT_STRING) (gpointer     data1,
 
115
                                                    gpointer     arg_1,
 
116
                                                    gpointer     arg_2,
 
117
                                                    gpointer     data2);
 
118
  register GMarshalFunc_VOID__OBJECT_STRING callback;
 
119
  register GCClosure *cc = (GCClosure*) closure;
 
120
  register gpointer data1, data2;
 
121
 
 
122
  g_return_if_fail (n_param_values == 3);
 
123
 
 
124
  if (G_CCLOSURE_SWAP_DATA (closure))
 
125
    {
 
126
      data1 = closure->data;
 
127
      data2 = g_value_peek_pointer (param_values + 0);
 
128
    }
 
129
  else
 
130
    {
 
131
      data1 = g_value_peek_pointer (param_values + 0);
 
132
      data2 = closure->data;
 
133
    }
 
134
  callback = (GMarshalFunc_VOID__OBJECT_STRING) (marshal_data ? marshal_data : cc->callback);
 
135
 
 
136
  callback (data1,
 
137
            g_marshal_value_peek_object (param_values + 1),
 
138
            g_marshal_value_peek_string (param_values + 2),
 
139
            data2);
 
140
}
 
141
 
99
142
G_END_DECLS
100
143
 
101
144
#endif /* __almanah_marshal_MARSHAL_H__ */