Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=fun.git;a=commitdiff;h=9a3e5ee59becde27dc13ede8b6317fe4e9e2acfa
commit 9a3e5ee59becde27dc13ede8b6317fe4e9e2acfa
Author: Priyank <[EMAIL PROTECTED]>
Date: Fri Sep 19 21:35:34 2008 +0530
stupidity fixes
diff --git a/configure.ac b/configure.ac
index b17d0a9..1b8fc14 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,7 +59,7 @@ if test "x$DBUSBINDINGTOOL" = "xno"; then
fi
AC_SUBST(DBUS_BINDING_TOOL)
-ui_modules="gtk+-2.0 >= 2.12.0 libglade-2.0 >= 2.6.0 libnotify nxml"
+ui_modules="gtk+-2.0 >= 2.12.0 libglade-2.0 >= 2.6.0 gthread-2.0 libnotify
nxml"
PKG_CHECK_MODULES([FUND], [dbus-glib-1 >= 0.73])
PKG_CHECK_MODULES([FUN], [$ui_modules])
diff --git a/src/fun-news_backend.c b/src/fun-news_backend.c
index e1d7b51..2d3bdb7 100644
--- a/src/fun-news_backend.c
+++ b/src/fun-news_backend.c
@@ -337,6 +337,9 @@ fun_fetch_news_xml (void)
char *str = NULL;
nxml_error_t e;
+ /* free the old news list */
+ g_list_free (news_item_list);
+
e = nxml_new (&nxml);
nxml_parse_url (nxml, NEWS_URL);
nxml_root_element (nxml, &nroot);
diff --git a/src/fun.c b/src/fun.c
index 60efefa..7d6a82f 100644
--- a/src/fun.c
+++ b/src/fun.c
@@ -49,6 +49,9 @@ fun_glade_init (void)
int
main (int argc, char **argv)
{
+ /* initialize gthread */
+ g_thread_init (NULL);
+
/* set the locale */
setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git