Strange error in using ThumbnailFactory::create()
- From: Liangxu Wang <wlx mygis org>
- To: gtkmm-list gnome org
- Subject: Strange error in using ThumbnailFactory::create()
- Date: Wed, 10 Oct 2007 20:49:39 +0800
Hi,
I want to load the file's thumbnail, so Gnome::UI is used. The program
can be compiled without any error, but can not start, with error:
--------------
GLib-ERROR **: The thread system is not yet initialized.
aborting...
--------------
Code like this:
#include <gtkmm.h>
#include <libgnomeuimm.h>
----<snip>---
Glib::RefPtr<Gdk::Pixbuf> thumbnail;
Glib::RefPtr<Gnome::UI::ThumbnailFactory > th;
//error with this line
th=Gnome::UI::ThumbnailFactory::create(Gnome::UI::THUMBNAIL_SIZE_NORMAL);
thumbnail=th->generate_thumbnail(uri,"application/pdf");
if (thumbnail) return thumbnail;
----<snip>---
So what's the problem here?
Thanks.
Sincerely yours,
Liangxu Wang
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]