Send commitlog mailing list submissions to
        [email protected]

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. r3882 - in trunk/src/target/OM-2007.2/panel-plugins: .
      openmoko-panel-memory openmoko-panel-memory/src
      ([EMAIL PROTECTED])
   2. r3883 - branches/src/target/kernel/2.6.24.x/patches
      ([EMAIL PROTECTED])
   3. r3884 - trunk/src/target/opkg ([EMAIL PROTECTED])
   4. r3885 - trunk/src/target/opkg ([EMAIL PROTECTED])
   5. r3886 - trunk/src/target/opkg ([EMAIL PROTECTED])
--- Begin Message ---
Author: chris
Date: 2008-01-18 13:22:01 +0100 (Fri, 18 Jan 2008)
New Revision: 3882

Added:
   trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/
   trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/AUTHORS
   trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/ChangeLog
   trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/NEWS
   trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/README
   trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/autogen.sh
   trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/configure.ac
   trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/src/
   
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/src/Makefile.am
   
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/src/openmoko-panel-memory.c
Log:
        * AUTHORS:
        * autogen.sh:
        * configure.ac:
        * src/Makefile.am:
        * src/openmoko-panel-memory.c: (blink_idle), (memory_full_cb),
        (mb_panel_applet_create):
        Initial check-in of memory status applet


Added: trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/AUTHORS
===================================================================
--- trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/AUTHORS      
2008-01-18 12:12:47 UTC (rev 3881)
+++ trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/AUTHORS      
2008-01-18 12:22:01 UTC (rev 3882)
@@ -0,0 +1 @@
+Chris Lord <[EMAIL PROTECTED]>

Added: trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/ChangeLog    
2008-01-18 12:12:47 UTC (rev 3881)
+++ trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/ChangeLog    
2008-01-18 12:22:01 UTC (rev 3882)
@@ -0,0 +1,10 @@
+2008-01-18  Chris Lord  <[EMAIL PROTECTED]>
+
+       * AUTHORS:
+       * autogen.sh:
+       * configure.ac:
+       * src/Makefile.am:
+       * src/openmoko-panel-memory.c: (blink_idle), (memory_full_cb),
+       (mb_panel_applet_create):
+       Initial check-in of memory status applet
+

Added: trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/NEWS
===================================================================

Added: trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/README
===================================================================

Added: trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/autogen.sh
===================================================================
--- trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/autogen.sh   
2008-01-18 12:12:47 UTC (rev 3881)
+++ trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/autogen.sh   
2008-01-18 12:22:01 UTC (rev 3882)
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+REQUIRED_AUTOMAKE_VERSION=1.7 exec gnome-autogen.sh $@


Property changes on: 
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/autogen.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: 
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/configure.ac
===================================================================
--- trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/configure.ac 
2008-01-18 12:12:47 UTC (rev 3881)
+++ trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/configure.ac 
2008-01-18 12:22:01 UTC (rev 3882)
@@ -0,0 +1,18 @@
+AC_PREREQ(2.53)
+AC_INIT(openmoko-panel-memory, 0.0, http://www.openmoko.org/)
+AM_INIT_AUTOMAKE()
+AC_CONFIG_SRCDIR(src/openmoko-panel-memory.c)
+AM_CONFIG_HEADER(config.h)
+AM_MAINTAINER_MODE
+
+AC_ISC_POSIX
+AC_PROG_CC
+AC_STDC_HEADERS
+AC_PROG_LIBTOOL
+
+PKG_CHECK_MODULES(APPLET, libmokopanelui2 libnotify dbus-glib-1)
+
+AC_OUTPUT([
+Makefile
+src/Makefile
+])

Added: 
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/src/Makefile.am
===================================================================
--- 
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/src/Makefile.am  
    2008-01-18 12:12:47 UTC (rev 3881)
+++ 
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/src/Makefile.am  
    2008-01-18 12:22:01 UTC (rev 3882)
@@ -0,0 +1,12 @@
+AM_CPPFLAGS = -DDATADIR=\"$(datadir)\" -DPKGDATADIR=\"$(pkgdatadir)\"
+AM_CFLAGS = -Wall @APPLET_CFLAGS@
+
+appletdir = $(libdir)/matchbox-panel/
+applet_LTLIBRARIES = libopenmoko-panel-memory.la
+
+libopenmoko_panel_memory_la_SOURCES = \
+       openmoko-panel-memory.c
+
+libopenmoko_panel_memory_la_LIBADD = @APPLET_LIBS@
+
+MAINTAINERCLEANFILES = Makefile.in

Added: 
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/src/openmoko-panel-memory.c
===================================================================
--- 
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/src/openmoko-panel-memory.c
  2008-01-18 12:12:47 UTC (rev 3881)
+++ 
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-memory/src/openmoko-panel-memory.c
  2008-01-18 12:22:01 UTC (rev 3882)
@@ -0,0 +1,109 @@
+/*  openmoko-panel-memory.c
+ *
+ *  Copyright (C) 2008 OpenMoko Inc.
+ *
+ *  Authored by Chris Lord <[EMAIL PROTECTED]>
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU Lesser Public License as published by
+ *  the Free Software Foundation; version 2 of the license.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Lesser Public License for more details.
+ */
+
+#include <gtk/gtk.h>
+#include <libmokopanelui2/moko-panel-applet.h>
+#include <libnotify/notify.h>
+#include <dbus/dbus-glib.h>
+#include <dbus/dbus-glib-bindings.h>
+
+typedef struct {
+       MokoPanelApplet *applet;
+       GtkWidget *image;
+
+       DBusGProxy *sms_proxy;
+       NotifyNotification *notification;
+       
+       guint blink_idle;
+} MemoryAppletData;
+
+static gboolean
+blink_idle (MemoryAppletData *data)
+{
+       g_object_set (G_OBJECT (data->applet), "visible",
+               !GTK_WIDGET_VISIBLE (data->applet), NULL);
+       
+       return TRUE;
+}
+
+static void
+memory_full_cb (DBusGProxy *proxy, gboolean sim_full, gboolean phone_full,
+               MemoryAppletData *data)
+{
+       if (sim_full || phone_full) {
+               const gchar *message;
+               
+               gtk_widget_show (GTK_WIDGET (data->applet));
+               data->blink_idle = g_timeout_add_seconds (1,
+                       (GSourceFunc)blink_idle, data);
+               
+               if (sim_full && phone_full) {
+                       message = "Phone and SIM memory full";
+               } else if (sim_full) {
+                       message = "SIM memory full";
+               } else {
+                       message = "Phone memory full";
+               }
+               g_object_set (G_OBJECT (data->notification),
+                       "body", message, NULL);
+               
+               notify_notification_show (data->notification, NULL);
+       } else {
+               g_source_remove (data->blink_idle);
+               gtk_widget_hide (GTK_WIDGET (data->applet));
+               notify_notification_close (data->notification, NULL);
+       }
+}
+
+G_MODULE_EXPORT GtkWidget *
+mb_panel_applet_create (const char* id, GtkOrientation orientation)
+{
+       DBusGConnection *connection;
+       MemoryAppletData *data;
+       
+       GError *error = NULL;
+       
+       if (!(connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error))) {
+               g_warning ("Failed to get dbus connection: %s", error->message);
+               g_error_free (error);
+               return NULL;
+       }
+       
+       data = g_slice_new0 (MemoryAppletData);
+       
+       data->sms_proxy = dbus_g_proxy_new_for_name (connection,
+               "org.openmoko.PhoneKit", "/org/openmoko/PhoneKit/Sms",
+               "org.openmoko.PhoneKit.Sms");
+       
+       dbus_g_proxy_add_signal (data->sms_proxy, "MemoryFull",
+               G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_INVALID);
+       dbus_g_proxy_connect_signal (data->sms_proxy, "MemoryFull",
+               G_CALLBACK (memory_full_cb), data, NULL);
+       
+       notify_init ("openmoko-panel-memory");
+       data->notification = notify_notification_new ("Memory full", "",
+               GTK_STOCK_DIALOG_WARNING, NULL);
+       
+       data->applet = MOKO_PANEL_APPLET(moko_panel_applet_new());
+       
+       data->image = gtk_image_new_from_stock (
+               GTK_STOCK_SAVE, GTK_ICON_SIZE_MENU);
+       gtk_widget_show (data->image);
+       moko_panel_applet_set_widget (data->applet, data->image);
+       
+       return GTK_WIDGET (data->applet);
+}
+




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2008-01-18 14:34:48 +0100 (Fri, 18 Jan 2008)
New Revision: 3883

Modified:
   branches/src/target/kernel/2.6.24.x/patches/gta02-bt-fixes.patch
Log:
Reversed sanity check cause PCF50633 driver to BUG.

gta02-bt-fixes.patch:
- drivers/i2c/chips/pcf50633.c (pcf50633_ena_voltage): fail if we don't have a
  valid register, not if we do



Modified: branches/src/target/kernel/2.6.24.x/patches/gta02-bt-fixes.patch
===================================================================
--- branches/src/target/kernel/2.6.24.x/patches/gta02-bt-fixes.patch    
2008-01-18 12:22:01 UTC (rev 3882)
+++ branches/src/target/kernel/2.6.24.x/patches/gta02-bt-fixes.patch    
2008-01-18 13:34:48 UTC (rev 3883)
@@ -234,7 +234,7 @@
 +              return -EINVAL;
 +
 +      regnr = ena_regulator_registers[reg];
-+      BUG_ON(regnr); /* in case we forgot one */
++      BUG_ON(!regnr); /* in case we forgot one */
 +
 +      if (on)
 +              reg_set_bit_mask(pcf, regnr, 0x01, 0x01);




--- End Message ---
--- Begin Message ---
Author: thomas
Date: 2008-01-18 14:36:37 +0100 (Fri, 18 Jan 2008)
New Revision: 3884

Modified:
   trunk/src/target/opkg/opkg_download.c
Log:
opkg: fix progress bar


Modified: trunk/src/target/opkg/opkg_download.c
===================================================================
--- trunk/src/target/opkg/opkg_download.c       2008-01-18 13:34:48 UTC (rev 
3883)
+++ trunk/src/target/opkg/opkg_download.c       2008-01-18 13:36:37 UTC (rev 
3884)
@@ -41,7 +41,7 @@
     printf ("\r%3d%% |", p);
     for (i = 1; i < 73; i++)
     {
-       if (i <= p)
+       if (i <= p * 0.73)
            printf ("=");
        else
            printf ("-");




--- End Message ---
--- Begin Message ---
Author: thomas
Date: 2008-01-18 15:25:29 +0100 (Fri, 18 Jan 2008)
New Revision: 3885

Modified:
   trunk/src/target/opkg/libopkg.h
   trunk/src/target/opkg/opkg_download.c
Log:
opkg: add a download progress callback hook to libopkg


Modified: trunk/src/target/opkg/libopkg.h
===================================================================
--- trunk/src/target/opkg/libopkg.h     2008-01-18 13:36:37 UTC (rev 3884)
+++ trunk/src/target/opkg/libopkg.h     2008-01-18 14:25:29 UTC (rev 3885)
@@ -36,6 +36,7 @@
 typedef int (*opkg_status_callback)(char *name, int istatus, char *desc,
        void *userdata);
 typedef char* (*opkg_response_callback)(char *question);
+typedef void (*opkg_download_progress_callback)(int percent);
 
 extern int opkg_op(int argc, char *argv[]); /* opkglib.c */
 extern int opkg_init (opkg_message_callback mcall, 
@@ -78,6 +79,8 @@
 extern opkg_response_callback opkg_cb_response;
 extern opkg_status_callback opkg_cb_status;
 extern opkg_list_callback opkg_cb_list;
+extern opkg_download_progress_callback opkg_cb_download_progress; /* 
ipkg_download.c */
+
 extern void push_error_list(struct errlist **errors,char * msg);
 extern void reverse_error_list(struct errlist **errors);
 extern void free_error_list();

Modified: trunk/src/target/opkg/opkg_download.c
===================================================================
--- trunk/src/target/opkg/opkg_download.c       2008-01-18 13:36:37 UTC (rev 
3884)
+++ trunk/src/target/opkg/opkg_download.c       2008-01-18 14:25:29 UTC (rev 
3885)
@@ -28,6 +28,10 @@
 #include "file_util.h"
 #include "str_util.h"
 
+#ifdef OPKG_LIB
+#include "libopkg.h"
+opkg_download_progress_callback opkg_cb_download_progress = NULL;
+#endif
 
 int
 curl_progress_func (void* data,
@@ -38,6 +42,15 @@
 {
     int i;
     int p = d*100/t;
+
+#ifdef LIBOPKG
+    if (opkg_cb_download_progress)
+    {
+       opkg_cb_download_progress (p);
+       return 0;
+    }
+#endif
+
     printf ("\r%3d%% |", p);
     for (i = 1; i < 73; i++)
     {




--- End Message ---
--- Begin Message ---
Author: thomas
Date: 2008-01-18 16:05:07 +0100 (Fri, 18 Jan 2008)
New Revision: 3886

Modified:
   trunk/src/target/opkg/opkg_download.c
Log:
* Add proxy username/password support


Modified: trunk/src/target/opkg/opkg_download.c
===================================================================
--- trunk/src/target/opkg/opkg_download.c       2008-01-18 14:25:29 UTC (rev 
3885)
+++ trunk/src/target/opkg/opkg_download.c       2008-01-18 15:05:07 UTC (rev 
3886)
@@ -144,6 +144,14 @@
        curl_easy_setopt (curl, CURLOPT_WRITEDATA, file);
        curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0);
        curl_easy_setopt (curl, CURLOPT_PROGRESSFUNCTION, curl_progress_func);
+       if (conf->http_proxy || conf->ftp_proxy)
+       {
+           char *userpwd;
+           sprintf_alloc (&userpwd, "%s:%s", conf->proxy_user,
+                   conf->proxy_passwd);
+           curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, userpwd);
+           free (userpwd);
+       }
        res = curl_easy_perform (curl);
        curl_easy_cleanup (curl);
        fclose (file);




--- End Message ---
_______________________________________________
commitlog mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to