davemds pushed a commit to branch master.

http://git.enlightenment.org/enlightenment/modules/packagekit.git/commit/?id=fdbc66f7c5b0b985d92e7788d6435a5e2d92c148

commit fdbc66f7c5b0b985d92e7788d6435a5e2d92c148
Author: davemds <[email protected]>
Date:   Mon Nov 4 19:32:13 2013 +0100

    Also show the packagekit version (if available) in case of errors
---
 src/e_mod_packagekit.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/e_mod_packagekit.c b/src/e_mod_packagekit.c
index 973afbc..1a0a3ec 100644
--- a/src/e_mod_packagekit.c
+++ b/src/e_mod_packagekit.c
@@ -53,6 +53,12 @@ packagekit_popup_update(E_PackageKit_Instance *inst)
      {
         e_widget_label_text_set(inst->popup_label, D_("No information 
available"));
         e_widget_ilist_append(inst->popup_ilist, NULL, ctxt->error, NULL, 
NULL, NULL);
+        if ((ctxt->v_maj != -1) && (ctxt->v_min != -1) && (ctxt->v_mic != -1))
+          {
+             snprintf(buf, sizeof(buf), "PackageKit version: %d.%d.%d",
+                      ctxt->v_maj, ctxt->v_min, ctxt->v_mic);
+             e_widget_ilist_append(inst->popup_ilist, NULL, buf, NULL, NULL, 
NULL);
+          }
         return;
      }
 

-- 


Reply via email to