![]() |
2009-10-01
, 11:34
|
|
Posts: 1,665 |
Thanked: 1,649 times |
Joined on Jun 2008
@ Praha, Czech Republic
|
#2
|
![]() |
2009-10-02
, 02:59
|
|
Posts: 664 |
Thanked: 160 times |
Joined on Jul 2008
@ Australia
|
#3
|
![]() |
2009-10-02
, 13:27
|
|
Posts: 664 |
Thanked: 160 times |
Joined on Jul 2008
@ Australia
|
#4
|
![]() |
2009-10-03
, 06:55
|
|
Posts: 664 |
Thanked: 160 times |
Joined on Jul 2008
@ Australia
|
#5
|
static void populate_image_list(Data *data){ GDir *dir; const gchar *directory = data->directory; const gchar *filename; g_print("Directory to get files from: %s\n", directory); g_dir_open(directory, 0, NULL); g_print("%s directory opened.\n", directory); for (; filename = g_dir_read_name(dir); ){ if (g_str_has_suffix(filename, ".jpg") || g_str_has_suffix(filename, ".JPG") || g_str_has_suffix(filename, ".gif") || g_str_has_suffix(filename, ".GIF") || g_str_has_suffix(filename, ".png") || g_str_has_suffix(filename, ".PNG")){ gchar *path = g_strconcat(directory, "/", filename, NULL); g_print("%s\n", path); data->list = g_list_prepend(data->list, path); data->total_images++; } } g_dir_close(dir); }
![]() |
2009-10-03
, 10:40
|
|
Posts: 664 |
Thanked: 160 times |
Joined on Jul 2008
@ Australia
|
#7
|
I'm learning to write a home(desktop) widget for fremantle. I've created .so file and the .desktop file, I tried the demo given in the tutorial which works fine but when I'm doing my own application I get this message while doing "af-sb-init.sh start":
EDIT: When all the widgets dissapear this message is displayed in the terminal:
[sbox-FREMANTLE_X86: /usr/share/applications/hildon-home] > maemo-launcher: child (pid=7317) terminated due to signal=11
Last edited by jaeezzy; 2009-10-01 at 10:39.