Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fun.git;a=commitdiff;h=0f22d9859ff2a24fdb220a01bb6c25bd9387feeb

commit 0f22d9859ff2a24fdb220a01bb6c25bd9387feeb
Author: Priyank <[EMAIL PROTECTED]>
Date:   Thu Dec 20 01:03:56 2007 +0530

fun-dbus: GetPackageInfo: Don't get further info if the first call to 
GetPackageInfo fails
* Report an error to the user if getting update information fails

diff --git a/src/fun-ui.c b/src/fun-ui.c
index 43da8cb..9b1c5c2 100644
--- a/src/fun-ui.c
+++ b/src/fun-ui.c
@@ -555,9 +555,16 @@ fun_populate_updates_tvw (gchar *plist)
{
gchar *ver = NULL;
gchar *desc = NULL;
-               fun_dbus_perform_service (GET_PACKAGE_INFO, l->data, &ver, 
&desc);
-               gtk_list_store_append (store, &iter);
-               gtk_list_store_set (store, &iter, 0, icon, 1, l->data, 2, ver, 
3, desc, -1);
+               if (fun_dbus_perform_service (GET_PACKAGE_INFO, l->data, &ver, 
&desc))
+               {
+                       gtk_list_store_append (store, &iter);
+                       gtk_list_store_set (store, &iter, 0, icon, 1, l->data, 
2, ver, 3, desc, -1);
+               }
+               else
+               {
+                       fun_error (_("Error getting update information"), 
_("There was an error getting update information"));
+                       break;
+               }
}
g_object_unref (icon);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to