Send commitlog mailing list submissions to
        commitlog@lists.openmoko.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r4439 - in
      trunk/src/target/OM-2007.2/applications/openmoko-appmanager2: .
      src ([EMAIL PROTECTED])
   2. Production testing software for GTA02: Changes to 'master'
      ([EMAIL PROTECTED])
   3. Production testing software for GTA02: Changes to 'master'
      ([EMAIL PROTECTED])
   4. Production testing software for GTA02: Changes to 'master'
      ([EMAIL PROTECTED])
   5. Production testing software for GTA02: Changes to 'master'
      ([EMAIL PROTECTED])
   6. Production testing software for GTA02: Changes to 'master'
      ([EMAIL PROTECTED])
   7. Production testing software for GTA02: Changes to 'master'
      ([EMAIL PROTECTED])
   8. Production testing software for GTA02: Changes to 'master'
      ([EMAIL PROTECTED])
   9. Production testing software for GTA02: Changes to 'master'
      ([EMAIL PROTECTED])
  10. development kernel tree: Changes to 'andy' ([EMAIL PROTECTED])
  11. development kernel tree: Changes to 'andy' ([EMAIL PROTECTED])
--- Begin Message ---
Author: thomas
Date: 2008-05-15 18:34:23 +0200 (Thu, 15 May 2008)
New Revision: 4439

Modified:
   trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/ChangeLog
   trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/src/tool-box.c
Log:
2008-05-15  Thomas Wood  <[EMAIL PROTECTED]>

        * src/tool-box.c: (progress_update_cb),
        (start_install): Add a progress dialog and seperate thread for package
                         install


Modified: trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/ChangeLog      
2008-05-15 13:34:12 UTC (rev 4438)
+++ trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/ChangeLog      
2008-05-15 16:34:23 UTC (rev 4439)
@@ -1,3 +1,9 @@
+2008-05-15  Thomas Wood  <[EMAIL PROTECTED]>
+
+       * src/tool-box.c: (progress_update_cb),
+       (start_install): Add a progress dialog and seperate thread for package
+                        install
+
 2008-05-09  Thomas Wood  <[EMAIL PROTECTED]>
 
        * configure.ac:

Modified: 
trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/src/tool-box.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/src/tool-box.c 
2008-05-15 13:34:12 UTC (rev 4438)
+++ trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/src/tool-box.c 
2008-05-15 16:34:23 UTC (rev 4439)
@@ -25,6 +25,7 @@
 #include "navigation-area.h"
 #include "appmanager-window.h"
 #include "ipkg-utils.h"
+#include "am-progress-dialog.h"
 
 /*
  * @brief The callback function of the button "upgrade"
@@ -62,15 +63,51 @@
   */
 }
 
-
 void
-on_install_clicked (GtkWidget *button, ApplicationManagerData *data)
+progress_update_cb (opkg_t *opkg, const opkg_progress_data_t *pdata, void 
*am_progress_dialog)
 {
+  AmProgressDialog *dlg = AM_PROGRESS_DIALOG (am_progress_dialog);
+  gchar *text, *name;
+
+  if (!dlg)
+    return;
+
+  if (pdata->package)
+     name = pdata->package->name;
+  else
+    name = "";
+
+  gdk_threads_enter();
+  am_progress_dialog_set_progress (dlg, pdata->percentage / 100.0);
+
+  switch (pdata->action)
+  {
+    case OPKG_INSTALL:
+      text = g_strdup_printf ("Installing %s...", name);
+      break;
+    case OPKG_REMOVE:
+      text = g_strdup_printf ("Removing %s...", name);
+      break;
+    case OPKG_DOWNLOAD:
+      text = g_strdup_printf ("Downloading %s...", name);
+      break;
+    default:
+      text = g_strdup ("Please wait...");
+  }
+
+  am_progress_dialog_set_label_text (dlg, text);
+  g_free (text);
+  gdk_threads_leave();
+
+}
+void start_install (ApplicationManagerData *data)
+{
   GtkTreeSelection *sel;
   GtkTreeModel *model;
   GtkTreeIter iter;
   gchar *name;
   GtkWidget *dialog;
+  gint ret;
   
   sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (data->tvpkglist));
   
@@ -78,16 +115,33 @@
     return;
   
   gtk_tree_model_get (model, &iter, COL_NAME, &name, -1);
+
   
-  if (opkg_install_package (data->opkg, name, NULL, NULL) == 0)
+  ret = opkg_install_package (data->opkg, name, progress_update_cb, 
data->installdialog);
+
+  gdk_threads_enter();
+  if (ret == 0)
     dialog = gtk_message_dialog_new (NULL,0, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, 
"%s was installed", name);
   else
     dialog = gtk_message_dialog_new (NULL,0, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, 
"%s could not be installed", name);
+
+  gtk_widget_destroy (data->installdialog);
+
   gtk_dialog_run (GTK_DIALOG (dialog));
   gtk_widget_destroy (dialog);
+  gdk_threads_leave();
 }
 
 void
+on_install_clicked (GtkWidget *button, ApplicationManagerData *data)
+{
+  data->installdialog = am_progress_dialog_new ();
+  gtk_widget_show_all (data->installdialog);
+
+  g_thread_create ((GThreadFunc) start_install, data, FALSE, NULL);
+}
+
+void
 on_remove_clicked (GtkWidget *button, ApplicationManagerData *data)
 {
   GtkTreeSelection *sel;




--- End Message ---
--- Begin Message ---
Rebased ref, commits from common ancestor:
commit abe8038ca289016e11990bd162227f8f9b79ec17
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:29:51 2008 +0100

    improve-motion-test.patch
    Signed-off-by: Andy Green <[EMAIL PROTECTED]>

commit 3f06916a433716d384a4b204ffaa246eedf93f72
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:03:30 2008 +0100

    From: Anthony Chang <[EMAIL PROTECTED]>
    fix-add-pubkey-into-rootfs.patch

commit 7610dea1f142fb97b9099e810c0dac1e535e8bdc
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:03:30 2008 +0100

    From: Anthony Chang <[EMAIL PROTECTED]>
    change-test-script-pwm-hdq.patch

commit fabb3f32329c14b17f6f26385f42a6d3c30ad802
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:03:30 2008 +0100

    From: Anthony Chang <[EMAIL PROTECTED]>
    change-final-pubkey.patch

commit 14ef124adf6366b93a71c44be86bb3441ce7dccd
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:03:30 2008 +0100

    From: Anthony Chang <[EMAIL PROTECTED]>
    update-bru93q-wav.patch

commit c8ced093ffb8fb8b33340154b1a460851fac4bdd
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:03:30 2008 +0100

    add-beep-wav.patch

commit fa709ffa23e8685d20875af3b34c5c5b3690ff32
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 20:49:29 2008 +0100

    fix-literal-filename-for-nor.patch
    Signed-off-by: Andy Green <[EMAIL PROTECTED]>




--- End Message ---
--- Begin Message ---
Rebased ref, commits from common ancestor:
commit abe8038ca289016e11990bd162227f8f9b79ec17
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:29:51 2008 +0100

    improve-motion-test.patch
    Signed-off-by: Andy Green <[EMAIL PROTECTED]>

commit 3f06916a433716d384a4b204ffaa246eedf93f72
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:03:30 2008 +0100

    From: Anthony Chang <[EMAIL PROTECTED]>
    fix-add-pubkey-into-rootfs.patch

commit 7610dea1f142fb97b9099e810c0dac1e535e8bdc
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:03:30 2008 +0100

    From: Anthony Chang <[EMAIL PROTECTED]>
    change-test-script-pwm-hdq.patch

commit fabb3f32329c14b17f6f26385f42a6d3c30ad802
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:03:30 2008 +0100

    From: Anthony Chang <[EMAIL PROTECTED]>
    change-final-pubkey.patch

commit 14ef124adf6366b93a71c44be86bb3441ce7dccd
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:03:30 2008 +0100

    From: Anthony Chang <[EMAIL PROTECTED]>
    update-bru93q-wav.patch

commit c8ced093ffb8fb8b33340154b1a460851fac4bdd
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:03:30 2008 +0100

    add-beep-wav.patch

commit fa709ffa23e8685d20875af3b34c5c5b3690ff32
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 20:49:29 2008 +0100

    fix-literal-filename-for-nor.patch
    Signed-off-by: Andy Green <[EMAIL PROTECTED]>




--- End Message ---
--- Begin Message ---
Rebased ref, commits from common ancestor:
commit 9c580cbaee31d7b2f1d0ea72eda8f214210bff3c
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:16 2008 +0100

    improve-motion-test.patch
    Signed-off-by: Andy Green <[EMAIL PROTECTED]>

commit 499a72e64445438d21ef05f827d28af762eca555
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:16 2008 +0100

    From: Anthony Chang <[EMAIL PROTECTED]>
    fix-add-pubkey-into-rootfs.patch

commit 8a280e49545566c433a9efd8c2d34bf29ff051eb
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:16 2008 +0100

    From: Anthony Chang <[EMAIL PROTECTED]>
    change-test-script-pwm-hdq.patch

commit d80b20f2168b86c87c896a128ff9dd34ae7764f4
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:16 2008 +0100

    From: Anthony Chang <[EMAIL PROTECTED]>
    change-final-pubkey.patch

commit f849e391e7b57e5ec383f7fc7a13191d5d7dbfb8
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:16 2008 +0100

    update-bru93q-wav.patch




--- End Message ---
--- Begin Message ---
Rebased ref, commits from common ancestor:
commit 14c9ad4ea666d903b8bcfe0665ba6f8e2d65e58b
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:38:04 2008 +0100

    improve-motion-test.patch
    Signed-off-by: Andy Green <[EMAIL PROTECTED]>

commit e74536ffa4cb0f6c832da643d8366206e244d383
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:38:04 2008 +0100

    fix-add-pubkey-into-rootfs.patch

commit b882ff62726e0c2f8096aa5edb6d9d1ca4bcc2f1
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:52 2008 +0100

    change-test-script-pwm-hdq.patch

commit 9444a2670edcf7cc1abf9ec2c6af930c6db884ab
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:39 2008 +0100

    change-final-pubkey.patch




--- End Message ---
--- Begin Message ---
Rebased ref, commits from common ancestor:
commit 14c9ad4ea666d903b8bcfe0665ba6f8e2d65e58b
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:38:04 2008 +0100

    improve-motion-test.patch
    Signed-off-by: Andy Green <[EMAIL PROTECTED]>

commit e74536ffa4cb0f6c832da643d8366206e244d383
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:38:04 2008 +0100

    fix-add-pubkey-into-rootfs.patch

commit b882ff62726e0c2f8096aa5edb6d9d1ca4bcc2f1
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:52 2008 +0100

    change-test-script-pwm-hdq.patch

commit 9444a2670edcf7cc1abf9ec2c6af930c6db884ab
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:39 2008 +0100

    change-final-pubkey.patch




--- End Message ---
--- Begin Message ---
Rebased ref, commits from common ancestor:
commit 14c9ad4ea666d903b8bcfe0665ba6f8e2d65e58b
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:38:04 2008 +0100

    improve-motion-test.patch
    Signed-off-by: Andy Green <[EMAIL PROTECTED]>

commit e74536ffa4cb0f6c832da643d8366206e244d383
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:38:04 2008 +0100

    fix-add-pubkey-into-rootfs.patch

commit b882ff62726e0c2f8096aa5edb6d9d1ca4bcc2f1
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:52 2008 +0100

    change-test-script-pwm-hdq.patch

commit 9444a2670edcf7cc1abf9ec2c6af930c6db884ab
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:39 2008 +0100

    change-final-pubkey.patch




--- End Message ---
--- Begin Message ---
Rebased ref, commits from common ancestor:
commit 14c9ad4ea666d903b8bcfe0665ba6f8e2d65e58b
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:38:04 2008 +0100

    improve-motion-test.patch
    Signed-off-by: Andy Green <[EMAIL PROTECTED]>

commit e74536ffa4cb0f6c832da643d8366206e244d383
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:38:04 2008 +0100

    fix-add-pubkey-into-rootfs.patch

commit b882ff62726e0c2f8096aa5edb6d9d1ca4bcc2f1
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:52 2008 +0100

    change-test-script-pwm-hdq.patch

commit 9444a2670edcf7cc1abf9ec2c6af930c6db884ab
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:39 2008 +0100

    change-final-pubkey.patch




--- End Message ---
--- Begin Message ---
Rebased ref, commits from common ancestor:
commit 14c9ad4ea666d903b8bcfe0665ba6f8e2d65e58b
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:38:04 2008 +0100

    improve-motion-test.patch
    Signed-off-by: Andy Green <[EMAIL PROTECTED]>

commit e74536ffa4cb0f6c832da643d8366206e244d383
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:38:04 2008 +0100

    fix-add-pubkey-into-rootfs.patch

commit b882ff62726e0c2f8096aa5edb6d9d1ca4bcc2f1
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:52 2008 +0100

    change-test-script-pwm-hdq.patch

commit 9444a2670edcf7cc1abf9ec2c6af930c6db884ab
Author: Anthony Chang <[EMAIL PROTECTED]>
Date:   Thu May 15 21:37:39 2008 +0100

    change-final-pubkey.patch




--- End Message ---
--- Begin Message ---
Rebased ref, commits from common ancestor:
commit d1d4652424908eb677539e1c24237f165cd30bdc
Author: Holger Freyther <[EMAIL PROTECTED]>
Date:   Thu May 15 21:42:25 2008 +0100

    Fixup hang on resume caused by the s3c2410 touch screen driver
    
    From dc6d335b467646d802a21ea6b925ee97e83e07be Mon Sep 17 00:00:00 2001
    From: Holger Freyther <[EMAIL PROTECTED]>
    Date: Thu, 15 May 2008 01:16:23 +0200
    Subject: [PATCH] Do not use msleep in the resume path of s3c2410_ts as it
    might lockup
    
    For some reason msleep might set the only task running into a suspended
    state and no timer will ever wake it up. Use mdelay to avoid this. I was not
    able to understand the reasoning of sleeping after enabling the clock. So we
    might just remove the msleep/mdelay at all and be fine.
    
    Signed-Off-By: Holger Freyther <[EMAIL PROTECTED]>

commit 060231524d97b40411cdad1c6a4e6ee34527dccd
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:42:06 2008 +0100

    fix-motion-sensor-corruption.patch




--- End Message ---
--- Begin Message ---
Rebased ref, commits from common ancestor:
commit 650b7e2598341281ace453deda29c7de075a4512
Author: Andy Green <[EMAIL PROTECTED]>
Date:   Thu May 15 21:45:30 2008 +0100

    fix-motion-sensor-corruption.patch

commit dec08204d313237d6b5e5a49557f6178ac667f35
Author: Holger Freyther <[EMAIL PROTECTED]>
Date:   Thu May 15 21:45:16 2008 +0100

    Fixup hang on resume caused by the s3c2410 touch screen driver
    
    From dc6d335b467646d802a21ea6b925ee97e83e07be Mon Sep 17 00:00:00 2001
    From: Holger Freyther <[EMAIL PROTECTED]>
    Date: Thu, 15 May 2008 01:16:23 +0200
    Subject: [PATCH] Do not use msleep in the resume path of s3c2410_ts as it
    might lockup
    
    For some reason msleep might set the only task running into a suspended
    state and no timer will ever wake it up. Use mdelay to avoid this. I was not
    able to understand the reasoning of sleeping after enabling the clock. So we
    might just remove the msleep/mdelay at all and be fine.
    
    Signed-Off-By: Holger Freyther <[EMAIL PROTECTED]>




--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to