~ubuntu-branches/ubuntu/precise/telepathy-mission-control-5/precise

« back to all changes in this revision

Viewing changes to src/mcd-misc.c

Tags: upstream-5.5.0
ImportĀ upstreamĀ versionĀ 5.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
 
243
243
    return ret;
244
244
}
245
 
 
246
 
/* FIXME: fd.o#24876: remove this when we depend on GLib 2.22 */
247
 
GError *
248
 
_mcd_g_error_new_valist (GQuark domain,
249
 
                         gint code,
250
 
                         const gchar *format,
251
 
                         va_list ap)
252
 
{
253
 
    gchar *message = g_strdup_vprintf (format, ap);
254
 
    GError *error = g_error_new_literal (domain, code, message);
255
 
 
256
 
    g_free (message);
257
 
    return error;
258
 
}