Re: [patch] use new PackageKit session interface
- From: Alexander Larsson <alexl redhat com>
- To: Richard Hughes <hughsient gmail com>
- Cc: nautilus-list <nautilus-list gnome org>
- Subject: Re: [patch] use new PackageKit session interface
- Date: Wed, 14 Jan 2009 16:45:43 +0100
On Wed, 2009-01-14 at 11:58 +0000, Richard Hughes wrote:
> On Wed, 2009-01-14 at 09:30 +0100, Alexander Larsson wrote:
> > On Tue, 2009-01-13 at 14:55 +0000, Richard Hughes wrote:
> > > + mime_types = g_strsplit (mime_type, "|", 1);
> >
> > I don't understand this. When do we have | in our mimetypes?
>
> We don't. The interface expects a type of as (char**), and we're passing
> it a s (char*) type. The interface was added to pass an array of
> mime-types, rather than the one that we can do now.
>
> Better ways of doing it welcomed.
eh? why not:
char *mimetypes[2];
mimetypes[0] = mimetype;
mimetypes[1] = NULL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]