Re: Help packaging the latest pidgin.
"Neil Munro" <[email protected]>
| Newsgroups | gmane.comp.autopackage.devel |
|---|---|
| Message-ID | <[email protected]> |
Ok, i think I might have it then. So, I have decided against Pidgin as my
first autopackage instead opting for a GTK theme engine called Aurora, I
have run the aspec program on it. Now, I have checked the /src directory
there don't appear to any hard coded paths in the existing code, so I have
generated the two bin reloc files using glib mode, drop them into the /src
folder and included them into the main.c file, so because of the lack of
hard coded paths do I need to include this?:
static gchar *imagedir;
/* will be called automatically before main() */
static void __attribute__((constructor))
locate_image_dir ()
{
if (gbr_init (NULL))
imagedir = g_build_filename (gbr_find_data_dir (DATADIR),
"lb", "images", NULL);
else
imagedir = DATADIR "/lb/images";
}
I did try and include it at the beginning of main.c however make would not
run correctly with it included, not sure why this is though. I will
continue to look into this.
On 02/02/2008, Isak Savo <[email protected]> wrote:
>
> 2008/2/1, Neil Munro <[email protected]>:
> > Ok here's the latest attempt. I looked at the patch file which shows
> this:
> >
> > - piece = gdk_pixbuf_new_from_file_at_scale (IMAGEDIR
> > "/lb-middle.png",
> > + filename = g_build_filename (imagedir, "lb-middle.png", NULL);
> > +
> > + piece = gdk_pixbuf_new_from_file_at_scale (filename,
> > width, height,
> > FALSE,
> > NULL);
> >
> > I assume this is to make it easier to free the memory at the end of the
> > function and g_free is run on filename?
>
> Yes. This is corrent.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
> For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
>
>