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. r1125 - trunk/src/target/kernel/patches
      ([EMAIL PROTECTED])
   2. r1126 -
      trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep
      ([EMAIL PROTECTED])
--- Begin Message ---
Author: laforge
Date: 2007-02-26 00:46:40 +0100 (Mon, 26 Feb 2007)
New Revision: 1125

Added:
   trunk/src/target/kernel/patches/s3c2410-qt2410-buttons.patch
Modified:
   trunk/src/target/kernel/patches/qt2410-base.patch
   trunk/src/target/kernel/patches/series
Log:
* add driver for qt2410 buttons (wakeup source). this is really ugly copy+paste
  of something else that's ugly copy+paste, don't look at it.
* qt2410: remove static partition table and rather use mtdparts 


Modified: trunk/src/target/kernel/patches/qt2410-base.patch
===================================================================
--- trunk/src/target/kernel/patches/qt2410-base.patch   2007-02-25 20:45:53 UTC 
(rev 1124)
+++ trunk/src/target/kernel/patches/qt2410-base.patch   2007-02-25 23:46:40 UTC 
(rev 1125)
@@ -1,7 +1,7 @@
-Index: linux-2.6.20/arch/arm/mach-s3c2410/Kconfig
+Index: linux-2.6.20.1/arch/arm/mach-s3c2410/Kconfig
 ===================================================================
---- linux-2.6.20.orig/arch/arm/mach-s3c2410/Kconfig    2007-02-17 
00:43:51.000000000 +0100
-+++ linux-2.6.20/arch/arm/mach-s3c2410/Kconfig 2007-02-17 00:43:54.000000000 
+0100
+--- linux-2.6.20.1.orig/arch/arm/mach-s3c2410/Kconfig  2007-02-20 
21:32:44.000000000 +0100
++++ linux-2.6.20.1/arch/arm/mach-s3c2410/Kconfig       2007-02-21 
16:28:00.000000000 +0100
 @@ -80,6 +80,12 @@
           Say Y here if you are using the SMDK2410 or the derived module 
A9M2410
             <http://www.fsforth.de>
@@ -15,10 +15,10 @@
  config ARCH_S3C2440
        bool "SMDK2440"
        select CPU_S3C2440
-Index: linux-2.6.20/arch/arm/mach-s3c2410/Makefile
+Index: linux-2.6.20.1/arch/arm/mach-s3c2410/Makefile
 ===================================================================
---- linux-2.6.20.orig/arch/arm/mach-s3c2410/Makefile   2007-02-17 
00:43:51.000000000 +0100
-+++ linux-2.6.20/arch/arm/mach-s3c2410/Makefile        2007-02-17 
00:43:54.000000000 +0100
+--- linux-2.6.20.1.orig/arch/arm/mach-s3c2410/Makefile 2007-02-20 
21:32:44.000000000 +0100
++++ linux-2.6.20.1/arch/arm/mach-s3c2410/Makefile      2007-02-21 
16:28:00.000000000 +0100
 @@ -88,5 +88,6 @@
  obj-$(CONFIG_MACH_OTOM)               += mach-otom.o
  obj-$(CONFIG_MACH_NEXCODER_2440) += mach-nexcoder.o
@@ -28,11 +28,11 @@
 -obj-$(CONFIG_MACH_SMDK)               += common-smdk.o
 \ No newline at end of file
 +obj-$(CONFIG_MACH_SMDK)               += common-smdk.o
-Index: linux-2.6.20/arch/arm/mach-s3c2410/mach-qt2410.c
+Index: linux-2.6.20.1/arch/arm/mach-s3c2410/mach-qt2410.c
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.20/arch/arm/mach-s3c2410/mach-qt2410.c   2007-02-17 
00:44:07.000000000 +0100
-@@ -0,0 +1,386 @@
++++ linux-2.6.20.1/arch/arm/mach-s3c2410/mach-qt2410.c 2007-02-21 
16:28:56.000000000 +0100
+@@ -0,0 +1,356 @@
 +/*
 + *
 + * linux/arch/arm/mach-s3c2410/mach-qt2410.c
@@ -231,40 +231,10 @@
 +      .devices_count = ARRAY_SIZE(qt2410_devices)
 +};
 +
-+static struct mtd_partition qt2410_nand_part[] = {
-+      [0] = {
-+              .name   = "U-Boot",
-+              .size   = 0x30000,
-+              .offset = 0,
-+      },
-+      [1] = {
-+              .name   = "U-Boot environment",
-+              .offset = 0x30000,
-+              .size   = 0x4000,
-+      },
-+      [2] = {
-+              .name   = "kernel",
-+              .offset = 0x34000,
-+              .size   = SZ_2M,
-+      },
-+      [3] = {
-+              .name   = "initrd",
-+              .offset = 0x234000,
-+              .size   = SZ_4M,
-+      },
-+      [4] = {
-+              .name   = "jffs2",
-+              .offset = 0x634000,
-+              .size   = 0x39cc000,
-+      },
-+};
-+
 +static struct s3c2410_nand_set qt2410_nand_sets[] = {
 +      [0] = {
-+              .name           = "NAND",
++              .name           = "qt2410-nand",
 +              .nr_chips       = 1,
-+              .nr_partitions  = ARRAY_SIZE(qt2410_nand_part),
-+              .partitions     = qt2410_nand_part,
 +      },
 +};
 +

Added: trunk/src/target/kernel/patches/s3c2410-qt2410-buttons.patch
===================================================================
--- trunk/src/target/kernel/patches/s3c2410-qt2410-buttons.patch        
2007-02-25 20:45:53 UTC (rev 1124)
+++ trunk/src/target/kernel/patches/s3c2410-qt2410-buttons.patch        
2007-02-25 23:46:40 UTC (rev 1125)
@@ -0,0 +1,287 @@
+Index: linux-2.6.20.1/arch/arm/mach-s3c2410/mach-qt2410.c
+===================================================================
+--- linux-2.6.20.1.orig/arch/arm/mach-s3c2410/mach-qt2410.c    2007-02-21 
17:23:47.000000000 +0100
++++ linux-2.6.20.1/arch/arm/mach-s3c2410/mach-qt2410.c 2007-02-21 
17:26:52.000000000 +0100
+@@ -457,6 +457,24 @@
+       .ocr_avail      = MMC_VDD_32_33,
+ };
+ 
++static struct resource qt2410_button_resources[] = {
++      [0] = {
++              .start = S3C2410_GPF0,
++              .end   = S3C2410_GPF0,
++      },
++      [1] = {
++              .start = S3C2410_GPF2,
++              .end   = S3C2410_GPF2,
++      },
++};
++
++struct platform_device qt2410_button_dev = {
++      .name           ="qt2410-button",
++      .num_resources  = ARRAY_SIZE(qt2410_button_resources),
++      .resource       = qt2410_button_resources,
++};
++
++
+ static void __init qt2410_map_io(void)
+ {
+       s3c24xx_init_io(qt2410_iodesc, ARRAY_SIZE(qt2410_iodesc));
+@@ -502,6 +520,7 @@
+       spi_register_board_info(qt2410_spi_board_info,
+                               ARRAY_SIZE(qt2410_spi_board_info));
+       platform_device_register(&s3c_device_spi_lcm);
++      platform_device_register(&qt2410_button_dev);
+ 
+       s3c2410_pm_init();
+ }
+Index: linux-2.6.20.1/drivers/input/keyboard/Kconfig
+===================================================================
+--- linux-2.6.20.1.orig/drivers/input/keyboard/Kconfig 2007-02-21 
17:22:08.000000000 +0100
++++ linux-2.6.20.1/drivers/input/keyboard/Kconfig      2007-02-21 
17:22:39.000000000 +0100
+@@ -225,5 +225,10 @@
+         To compile this driver as a module, choose M here: the
+         module will be called gta01kbd.
+ 
++config KEYBOARD_QT2410
++      tristate "QT2410 buttons"
++      depends on MACH_QT2410
++      default y
++
+ 
+ endif
+Index: linux-2.6.20.1/drivers/input/keyboard/Makefile
+===================================================================
+--- linux-2.6.20.1.orig/drivers/input/keyboard/Makefile        2007-02-21 
17:22:06.000000000 +0100
++++ linux-2.6.20.1/drivers/input/keyboard/Makefile     2007-02-21 
17:22:53.000000000 +0100
+@@ -14,6 +14,7 @@
+ obj-$(CONFIG_KEYBOARD_STOWAWAY)               += stowaway.o
+ obj-$(CONFIG_KEYBOARD_CORGI)          += corgikbd.o
+ obj-$(CONFIG_KEYBOARD_GTA01)          += gta01kbd.o
++obj-$(CONFIG_KEYBOARD_QT2410)         += qt2410kbd.o
+ obj-$(CONFIG_KEYBOARD_SPITZ)          += spitzkbd.o
+ obj-$(CONFIG_KEYBOARD_HIL)            += hil_kbd.o
+ obj-$(CONFIG_KEYBOARD_HIL_OLD)                += hilkbd.o
+Index: linux-2.6.20.1/drivers/input/keyboard/qt2410kbd.c
+===================================================================
+--- /dev/null  1970-01-01 00:00:00.000000000 +0000
++++ linux-2.6.20.1/drivers/input/keyboard/qt2410kbd.c  2007-02-21 
17:25:50.000000000 +0100
+@@ -0,0 +1,218 @@
++/*
++ * Keyboard driver for Armzone QT2410 
++ *
++ * (C) 2006 by OpenMoko, Inc.
++ * Author: Harald Welte <[EMAIL PROTECTED]>
++ * All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License version 2 as
++ * published by the Free Software Foundation.
++ *
++ */
++
++#include <linux/delay.h>
++#include <linux/platform_device.h>
++#include <linux/init.h>
++#include <linux/input.h>
++#include <linux/interrupt.h>
++#include <linux/jiffies.h>
++#include <linux/module.h>
++#include <linux/slab.h>
++
++#include <asm/hardware.h>
++#include <asm/arch/gta01.h>
++
++struct gta01kbd {
++      struct input_dev *input;
++      unsigned int suspended;
++      unsigned long suspend_jiffies;
++};
++
++static irqreturn_t gta01kbd_interrupt(int irq, void *dev_id)
++{
++      struct gta01kbd *gta01kbd_data = dev_id;
++
++      /* FIXME: use GPIO from platform_dev resources */
++      if (s3c2410_gpio_getpin(S3C2410_GPF0))
++              input_report_key(gta01kbd_data->input, KEY_PHONE, 1);
++      else
++              input_report_key(gta01kbd_data->input, KEY_PHONE, 0);
++
++      input_sync(gta01kbd_data->input);
++
++      return IRQ_HANDLED;
++}
++
++
++#ifdef CONFIG_PM
++static int gta01kbd_suspend(struct platform_device *dev, pm_message_t state)
++{
++      int i;
++      struct gta01kbd *gta01kbd = platform_get_drvdata(dev);
++
++      gta01kbd->suspended = 1;
++
++      return 0;
++}
++
++static int gta01kbd_resume(struct platform_device *dev)
++{
++      int i;
++      struct gta01kbd *gta01kbd = platform_get_drvdata(dev);
++
++      gta01kbd->suspended = 0;
++
++      return 0;
++}
++#else
++#define gta01kbd_suspend      NULL
++#define gta01kbd_resume               NULL
++#endif
++
++static int gta01kbd_probe(struct platform_device *pdev)
++{
++      struct gta01kbd *gta01kbd;
++      struct input_dev *input_dev;
++      int irq_911, irq_hold;
++
++      gta01kbd = kzalloc(sizeof(struct gta01kbd), GFP_KERNEL);
++      input_dev = input_allocate_device();
++      if (!gta01kbd || !input_dev) {
++              kfree(gta01kbd);
++              input_free_device(input_dev);
++              return -ENOMEM;
++      }
++
++      if (pdev->resource[0].flags != 0)
++              return -EINVAL;
++
++      irq_911 = s3c2410_gpio_getirq(pdev->resource[0].start);
++      if (irq_911 < 0)
++              return -EINVAL;
++
++      platform_set_drvdata(pdev, gta01kbd);
++
++      gta01kbd->input = input_dev;
++
++#if 0
++      spin_lock_init(&gta01kbd->lock);
++      /* Init Keyboard rescan timer */
++      init_timer(&corgikbd->timer);
++      corgikbd->timer.function = corgikbd_timer_callback;
++      corgikbd->timer.data = (unsigned long) corgikbd;
++
++      /* Init Hinge Timer */
++      init_timer(&corgikbd->htimer);
++      corgikbd->htimer.function = corgikbd_hinge_timer;
++      corgikbd->htimer.data = (unsigned long) corgikbd;
++
++      corgikbd->suspend_jiffies=jiffies;
++
++      memcpy(corgikbd->keycode, corgikbd_keycode, sizeof(corgikbd->keycode));
++#endif
++
++      input_dev->name = "QT2410 Buttons";
++      input_dev->phys = "qt2410kbd/input0";
++      input_dev->id.bustype = BUS_HOST;
++      input_dev->id.vendor = 0x0001;
++      input_dev->id.product = 0x0001;
++      input_dev->id.version = 0x0100;
++      input_dev->cdev.dev = &pdev->dev;
++      input_dev->private = gta01kbd;
++
++      input_dev->evbit[0] = BIT(EV_KEY);
++#if 0
++      input_dev->keycode = gta01kbd->keycode;
++      input_dev->keycodesize = sizeof(unsigned char);
++      input_dev->keycodemax = ARRAY_SIZE(corgikbd_keycode);
++
++      for (i = 0; i < ARRAY_SIZE(corgikbd_keycode); i++)
++              set_bit(corgikbd->keycode[i], input_dev->keybit);
++      clear_bit(0, input_dev->keybit);
++      set_bit(SW_LID, input_dev->swbit);
++      set_bit(SW_TABLET_MODE, input_dev->swbit);
++      set_bit(SW_HEADPHONE_INSERT, input_dev->swbit);
++#endif
++
++      input_register_device(gta01kbd->input);
++
++      s3c2410_gpio_cfgpin(S3C2410_GPF0, S3C2410_GPF0_EINT0);
++      if (request_irq(irq_911, gta01kbd_interrupt,
++                      SA_INTERRUPT | SA_TRIGGER_RISING | SA_TRIGGER_FALLING,
++                      "qt2410kbd_eint0", gta01kbd))
++              printk(KERN_WARNING "gta01kbd: Can't get IRQ\n");
++      enable_irq_wake(irq_911);
++
++      /* FIXME: headphone insert */
++
++#if 0
++      mod_timer(&corgikbd->htimer, jiffies + 
msecs_to_jiffies(HINGE_SCAN_INTERVAL));
++
++      /* Setup sense interrupts - RisingEdge Detect, sense lines as inputs */
++      for (i = 0; i < CORGI_KEY_SENSE_NUM; i++) {
++              pxa_gpio_mode(CORGI_GPIO_KEY_SENSE(i) | GPIO_IN);
++              if (request_irq(CORGI_IRQ_GPIO_KEY_SENSE(i), corgikbd_interrupt,
++                              SA_INTERRUPT | SA_TRIGGER_RISING,
++                              "corgikbd", corgikbd))
++                      printk(KERN_WARNING "corgikbd: Can't get IRQ: %d!\n", 
i);
++      }
++
++      /* Set Strobe lines as outputs - set high */
++      for (i = 0; i < CORGI_KEY_STROBE_NUM; i++)
++              pxa_gpio_mode(CORGI_GPIO_KEY_STROBE(i) | GPIO_OUT | 
GPIO_DFLT_HIGH);
++
++      /* Setup the headphone jack as an input */
++      pxa_gpio_mode(CORGI_GPIO_AK_INT | GPIO_IN);
++#endif
++
++      return 0;
++}
++
++static int gta01kbd_remove(struct platform_device *pdev)
++{
++      struct gta01kbd *gta01kbd = platform_get_drvdata(pdev);
++
++      free_irq(s3c2410_gpio_getirq(pdev->resource[0].start), gta01kbd);
++#if 0
++      int i;
++
++      for (i = 0; i < CORGI_KEY_SENSE_NUM; i++)
++              free_irq(CORGI_IRQ_GPIO_KEY_SENSE(i), corgikbd);
++
++      del_timer_sync(&corgikbd->htimer);
++      del_timer_sync(&corgikbd->timer);
++#endif
++      input_unregister_device(gta01kbd->input);
++
++      kfree(gta01kbd);
++
++      return 0;
++}
++
++static struct platform_driver gta01kbd_driver = {
++      .probe          = gta01kbd_probe,
++      .remove         = gta01kbd_remove,
++      .suspend        = gta01kbd_suspend,
++      .resume         = gta01kbd_resume,
++      .driver         = {
++              .name   = "qt2410-button",
++      },
++};
++
++static int __devinit gta01kbd_init(void)
++{
++      return platform_driver_register(&gta01kbd_driver);
++}
++
++static void __exit gta01kbd_exit(void)
++{
++      platform_driver_unregister(&gta01kbd_driver);
++}
++
++module_init(gta01kbd_init);
++module_exit(gta01kbd_exit);
++
++MODULE_AUTHOR("Harald Welte <[EMAIL PROTECTED]>");
++MODULE_DESCRIPTION("Armzone QT2410 Buttons Driver");
++MODULE_LICENSE("GPL");

Modified: trunk/src/target/kernel/patches/series
===================================================================
--- trunk/src/target/kernel/patches/series      2007-02-25 20:45:53 UTC (rev 
1124)
+++ trunk/src/target/kernel/patches/series      2007-02-25 23:46:40 UTC (rev 
1125)
@@ -31,3 +31,4 @@
 gta01-no_nand_partitions.patch
 input-nots-mousedev.patch
 ts0710.patch
+s3c2410-qt2410-buttons.patch




--- End Message ---
--- Begin Message ---
Author: jiang_li
Date: 2007-02-26 02:33:14 +0100 (Mon, 26 Feb 2007)
New Revision: 1126

Modified:
   trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/about.c
   
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/equalizer.c
   trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/main.c
   
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/mainwin.c
   
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/mainwin.h
   
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/playlistwin.c
   
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/prefswin.c
   trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/skin.c
   trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/util.c
Log:
This commit just aims to eliminate warning message


Modified: 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/about.c
===================================================================
--- 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/about.c   
    2007-02-25 23:46:40 UTC (rev 1125)
+++ 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/about.c   
    2007-02-26 01:33:14 UTC (rev 1126)
@@ -245,10 +245,10 @@
 {
     static GtkWidget *about_window = NULL;
 
-    GdkPixmap *beep_logo_pmap = NULL, *beep_logo_mask = NULL;
+    //GdkPixmap *beep_logo_pmap = NULL, *beep_logo_mask = NULL;
     GtkWidget *about_vbox;
     GtkWidget *about_credits_logo_box, *about_credits_logo_frame;
-    GtkWidget *about_credits_logo;
+    //GtkWidget *about_credits_logo;
     GtkWidget *about_notebook;
     GtkWidget *list;
     GtkWidget *bbox, *close_btn;

Modified: 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/equalizer.c
===================================================================
--- 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/equalizer.c
   2007-02-25 23:46:40 UTC (rev 1125)
+++ 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/equalizer.c
   2007-02-26 01:33:14 UTC (rev 1126)
@@ -734,7 +734,7 @@
 static void
 equalizerwin_create_window(void)
 {
-    GdkPixbuf *icon;
+    //GdkPixbuf *icon;
     gint width, height;
 
     equalizerwin = gtk_window_new(GTK_WINDOW_TOPLEVEL);

Modified: 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/main.c
===================================================================
--- 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/main.c    
    2007-02-25 23:46:40 UTC (rev 1125)
+++ 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/main.c    
    2007-02-26 01:33:14 UTC (rev 1126)
@@ -307,7 +307,7 @@
 
 gboolean pposition_broken = FALSE;
 
-
+/*
 static GSList *
 get_feature_list(void)
 {
@@ -348,7 +348,7 @@
 
     g_printf("\n");
 }
-
+*/
 const gchar *
 xmms_get_gentitle_format(void)
 {
@@ -609,7 +609,7 @@
 
     playlist_save(bmp_paths[BMP_PATH_PLAYLIST_FILE], FALSE);
 }
-
+/*
 static void
 bmp_set_default_icon(void)
 {
@@ -627,43 +627,43 @@
               "Options:\n"
               "--------\n"));
     g_print("\n-h, --help             ");
-    /* -h, --help switch */
+    // * -h, --help switch *
     g_print(_("Display this text and exit"));
     g_print("\n-n, --session          ");
-    /* -n, --session switch */
+    // * -n, --session switch *
     g_print(_("Select BMP/XMMS session (Default: 0)"));
     g_print("\n-r, --rew              ");
-    /* -r, --rew switch */
+    // * -r, --rew switch *
     g_print(_("Skip backwards in playlist"));
     g_print("\n-p, --play             ");
-    /* -p, --play switch */
+    // * -p, --play switch *
     g_print(_("Start playing current playlist"));
     g_print("\n-u, --pause            ");
-    /* -u, --pause switch */
+    // * -u, --pause switch *
     g_print(_("Pause current song"));
     g_print("\n-s, --stop             ");
-    /* -s, --stop switch */
+    // * -s, --stop switch *
     g_print(_("Stop current song"));
     g_print("\n-t, --play-pause       ");
-    /* -t, --play-pause switch */
+    // * -t, --play-pause switch *
     g_print(_("Pause if playing, play otherwise"));
     g_print("\n-f, --fwd              ");
-    /* -f, --fwd switch */
+    // * -f, --fwd switch *
     g_print(_("Skip forward in playlist"));
     g_print("\n-e, --enqueue          ");
-    /* -e, --enqueue switch */
+    // * -e, --enqueue switch *
     g_print(_("Don't clear the playlist"));
     g_print("\n-m, --show-main-window ");
-    /* -m, --show-main-window switch */
+    // * -m, --show-main-window switch *
     g_print(_("Show the main window"));
     g_print("\n-a, --activate         ");
-    /* -a, --activate switch */
+    // * -a, --activate switch *
     g_print(_("Activate BMP"));
     g_print("\n-i, --sm-client-id     ");
-    /* -i, --sm-client-id switch */
+    // * -i, --sm-client-id switch *
     g_print(_("Previous session ID"));
     g_print("\n-v, --version          ");
-    /* -v, --version switch */
+    // * -v, --version switch *
     g_print(_("Print version number and exit\n"));
 
     exit(EXIT_SUCCESS);
@@ -835,7 +835,7 @@
     if (options->playcd)
         play_medium();
 }
-
+*/
 static void
 segfault_handler(gint sig)
 {
@@ -857,7 +857,7 @@
 
     g_atexit(bmp_logger_stop);
 }
-
+/*
 static void
 run_load_skin_error_dialog(const gchar * skin_path)
 {
@@ -879,7 +879,7 @@
     gtk_dialog_run(GTK_DIALOG(dialog));
     gtk_widget_destroy(dialog);
 }
-
+*/
 static pid_t
 testlock(char* fname)
 {

Modified: 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/mainwin.c
===================================================================
--- 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/mainwin.c 
    2007-02-25 23:46:40 UTC (rev 1125)
+++ 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/mainwin.c 
    2007-02-26 01:33:14 UTC (rev 1126)
@@ -78,6 +78,7 @@
 
 #include <dbus/dbus.h>
 #include <dbus/dbus-glib.h>
+#include <dbus/dbus-glib-lowlevel.h>
 
 //openmoko header
 #include <libmokoui/moko-application.h>
@@ -3281,7 +3282,7 @@
 idle_func_update_song_info(gint time)
 {
     gint length, t;
-    gchar stime_prefix;
+//    gchar stime_prefix;
 
     length = playlist_get_current_length();
 //    playlistwin_set_time(time, length, cfg.timer_mode);
@@ -3362,7 +3363,7 @@
 
         time = bmp_playback_get_time();
 
-       g_print("\n time = %s\n", time);
+//     g_print("\n time = %s\n", time);
 
         switch (time) {
         case -1:
@@ -3428,7 +3429,7 @@
 static gchar* image_path = NULL;
 
 static gboolean playorpause = FALSE;
-GtkButton *play_pause_button = NULL;
+GtkWidget *play_pause_button = NULL;
 GtkWidget* shuffle_button = NULL;
 GtkWidget* repeat_button = NULL;
 GtkWidget *image = NULL;
@@ -3445,19 +3446,6 @@
 gint timeout_id;
 static gint timeout_time = 0;
 
-GtkWidget* alignment_eq_pos1 = NULL;
-GtkWidget* alignment_eq_pos2 = NULL;
-GtkWidget* alignment_eq_pos3 = NULL;
-GtkWidget* alignment_eq_pos4 = NULL;
-GtkWidget* alignment_eq_pos5 = NULL;
-GtkWidget* alignment_eq_pos6 = NULL;
-GtkWidget* alignment_eq_pos7 = NULL;
-GtkWidget* alignment_eq_pos8 = NULL;
-GtkWidget* alignment_eq_pos9 = NULL;
-GtkWidget* alignment_eq_pos10 = NULL;
-GtkWidget* alignment_eq_pos11 = NULL;
-GtkWidget* alignment_eq_pos12 = NULL;
-
 GtkWidget* image_eq_pos1 = NULL;
 GtkWidget* image_eq_pos2 = NULL;
 GtkWidget* image_eq_pos3 = NULL;
@@ -3560,87 +3548,51 @@
     switch(pos)
     {
     case 1:
-       //gtk_container_remove(GTK_CONTAINER(alignment_eq_pos1), image_eq_pos1);
        gtk_image_set_from_file(GTK_IMAGE(image_eq_pos1), img_path);
-       //image_eq_pos1 = gtk_image_new_from_file(img_path);
-       //gtk_container_add(GTK_CONTAINER(alignment_eq_pos1), image_eq_pos1);
        gtk_widget_show(image_eq_pos1);
        break;
     case 2:
-       //gtk_container_remove(GTK_CONTAINER(alignment_eq_pos2), image_eq_pos2);
        gtk_image_set_from_file(GTK_IMAGE(image_eq_pos2), img_path);
-       //image_eq_pos2 = gtk_image_new_from_file(img_path);
-       //gtk_container_add(GTK_CONTAINER(alignment_eq_pos2), image_eq_pos2);
        gtk_widget_show(image_eq_pos2);
        break;
     case 3:
-       //gtk_container_remove(GTK_CONTAINER(alignment_eq_pos3), image_eq_pos3);
        gtk_image_set_from_file(GTK_IMAGE(image_eq_pos3), img_path);
-       //image_eq_pos3 = gtk_image_new_from_file(img_path);
-       //gtk_container_add(GTK_CONTAINER(alignment_eq_pos3), image_eq_pos3);
        gtk_widget_show(image_eq_pos3);
        break;
     case 4:
-       //gtk_container_remove(GTK_CONTAINER(alignment_eq_pos4), image_eq_pos4);
        gtk_image_set_from_file(GTK_IMAGE(image_eq_pos4), img_path);
-       //image_eq_pos4 = gtk_image_new_from_file(img_path);
-       //gtk_container_add(GTK_CONTAINER(alignment_eq_pos4), image_eq_pos4);
        gtk_widget_show(image_eq_pos4);
        break;
     case 5:
-       //gtk_container_remove(GTK_CONTAINER(alignment_eq_pos5), image_eq_pos5);
        gtk_image_set_from_file(GTK_IMAGE(image_eq_pos5), img_path);
-       //image_eq_pos5 = gtk_image_new_from_file(img_path);
-       //gtk_container_add(GTK_CONTAINER(alignment_eq_pos5), image_eq_pos5);
        gtk_widget_show(image_eq_pos5);
        break;
     case 6:
-       //gtk_container_remove(GTK_CONTAINER(alignment_eq_pos6), image_eq_pos6);
        gtk_image_set_from_file(GTK_IMAGE(image_eq_pos6), img_path);
-       //image_eq_pos6 = gtk_image_new_from_file(img_path);
-       //gtk_container_add(GTK_CONTAINER(alignment_eq_pos6), image_eq_pos6);
        gtk_widget_show(image_eq_pos6);
        break;
     case 7:
-       //gtk_container_remove(GTK_CONTAINER(alignment_eq_pos7), image_eq_pos7);
        gtk_image_set_from_file(GTK_IMAGE(image_eq_pos7), img_path);
-       //image_eq_pos7 = gtk_image_new_from_file(img_path);
-       //gtk_container_add(GTK_CONTAINER(alignment_eq_pos7), image_eq_pos7);
        gtk_widget_show(image_eq_pos7);
        break;
     case 8:
-       //gtk_container_remove(GTK_CONTAINER(alignment_eq_pos8), image_eq_pos8);
        gtk_image_set_from_file(GTK_IMAGE(image_eq_pos8), img_path);
-       //image_eq_pos8 = gtk_image_new_from_file(img_path);
-       //gtk_container_add(GTK_CONTAINER(alignment_eq_pos8), image_eq_pos8);
        gtk_widget_show(image_eq_pos8);
        break;
     case 9:
-       //gtk_container_remove(GTK_CONTAINER(alignment_eq_pos9), image_eq_pos9);
        gtk_image_set_from_file(GTK_IMAGE(image_eq_pos9), img_path);
-       //image_eq_pos9 = gtk_image_new_from_file(img_path);
-       //gtk_container_add(GTK_CONTAINER(alignment_eq_pos9), image_eq_pos9);
        gtk_widget_show(image_eq_pos9);
        break;
     case 10:
-       //gtk_container_remove(GTK_CONTAINER(alignment_eq_pos10), 
image_eq_pos10);
        gtk_image_set_from_file(GTK_IMAGE(image_eq_pos10), img_path);
-       //image_eq_pos10 = gtk_image_new_from_file(img_path);
-       //gtk_container_add(GTK_CONTAINER(alignment_eq_pos10), image_eq_pos10);
        gtk_widget_show(image_eq_pos10);
        break;
     case 11:
-       //gtk_container_remove(GTK_CONTAINER(alignment_eq_pos11), 
image_eq_pos11);
        gtk_image_set_from_file(GTK_IMAGE(image_eq_pos11), img_path);
-       //image_eq_pos11 = gtk_image_new_from_file(img_path);
-       //gtk_container_add(GTK_CONTAINER(alignment_eq_pos11), image_eq_pos11);
        gtk_widget_show(image_eq_pos11);
        break;
     case 12:
-       //gtk_container_remove(GTK_CONTAINER(alignment_eq_pos12), 
image_eq_pos12);
        gtk_image_set_from_file(GTK_IMAGE(image_eq_pos12), img_path);
-       //image_eq_pos12 = gtk_image_new_from_file(img_path);
-       //gtk_container_add(GTK_CONTAINER(alignment_eq_pos12), image_eq_pos12);
        gtk_widget_show(image_eq_pos12);
        break;
     default:
@@ -3768,7 +3720,7 @@
 }
 
 void
-openmoko_set_title(gchar *title)
+openmoko_set_title( const gchar *title)
 {
     if(!title)
     {
@@ -3779,7 +3731,7 @@
 }
 
 void
-openmoko_set_artist(gchar* artist)
+openmoko_set_artist(const gchar* artist)
 {
     if(!artist)
     {
@@ -3795,6 +3747,14 @@
     gchar* track_number;
     if(playlist_get_length() == 0)
     {
+        track_number = g_strdup_printf("%d", 0);
+    }
+    else
+    {
+        track_number = g_strdup_printf("%d", playlist_get_position() + 1);
+    }
+    if(playlist_get_length() == 0)
+    {
         track_number = g_strdup_printf("%d", 0);       
     }
     else
@@ -3900,7 +3860,7 @@
         image_path = g_build_path("/", images_dir, "ico-pause.png", NULL);
         image = gtk_image_new_from_file(image_path);
        g_free(image_path);
-        
moko_pixmap_button_set_finger_toolbox_btn_center_image(play_pause_button, 
image);
+        
moko_pixmap_button_set_finger_toolbox_btn_center_image(MOKO_PIXMAP_BUTTON(play_pause_button),
 image);
        playorpause = TRUE;
         timeout_id = g_timeout_add(100, openmoko_update_elapse_time, NULL);
        openmoko_set_info();
@@ -3911,7 +3871,7 @@
         image_path = g_build_path("/", images_dir, "ico-play.png", NULL);
         image = gtk_image_new_from_file(image_path);
        g_free(image_path);
-        
moko_pixmap_button_set_finger_toolbox_btn_center_image(play_pause_button, 
image);
+        
moko_pixmap_button_set_finger_toolbox_btn_center_image(MOKO_PIXMAP_BUTTON(play_pause_button),
 image);
        playorpause = FALSE;
        g_source_remove(timeout_id);
     }
@@ -4204,7 +4164,7 @@
    
     init_image_dir();
     
-    MokoApplication *app = MOKO_APPLICATION(moko_application_get_instance());
+//    MokoApplication *app = MOKO_APPLICATION(moko_application_get_instance());
 
     MokoFingerWindow *window = MOKO_FINGER_WINDOW(moko_finger_window_new());
     g_signal_connect(G_OBJECT(window), "destroy", 
G_CALLBACK(openmoko_main_quit), NULL);
@@ -4402,79 +4362,79 @@
     gtk_container_add(GTK_CONTAINER(alignment), middle_hbox);
   
     //set vis
-    alignment_eq_pos1 = gtk_alignment_new(0, 0, 0, 0);
-    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment_eq_pos1), 0, 0, 0, 0);
-    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment_eq_pos1, TRUE, TRUE, 0);
+    alignment = gtk_alignment_new(0, 0, 0, 0);
+    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 0, 0, 0, 0);
+    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment, TRUE, TRUE, 0);
     image_path = g_build_path("/", images_dir, "ind-music-eq-01.png", NULL);
     image_eq_pos1 = gtk_image_new_from_file(image_path); 
-    gtk_container_add(GTK_CONTAINER(alignment_eq_pos1), image_eq_pos1);
+    gtk_container_add(GTK_CONTAINER(alignment), image_eq_pos1);
    
-    alignment_eq_pos2 = gtk_alignment_new(0, 0, 0, 0);
-    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment_eq_pos2), 0, 0, 0, 0);
-    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment_eq_pos2, TRUE, TRUE, 0);
+    alignment = gtk_alignment_new(0, 0, 0, 0);
+    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 0, 0, 0, 0);
+    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment, TRUE, TRUE, 0);
     image_eq_pos2 = gtk_image_new_from_file(image_path);
-    gtk_container_add(GTK_CONTAINER(alignment_eq_pos2), image_eq_pos2);
+    gtk_container_add(GTK_CONTAINER(alignment), image_eq_pos2);
     
-    alignment_eq_pos3 = gtk_alignment_new(0, 0, 0, 0);
-    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment_eq_pos3), 0, 0, 0, 0);
-    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment_eq_pos3, TRUE, TRUE, 0);
+    alignment = gtk_alignment_new(0, 0, 0, 0);
+    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 0, 0, 0, 0);
+    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment, TRUE, TRUE, 0);
     image_eq_pos3 = gtk_image_new_from_file(image_path);
-    gtk_container_add(GTK_CONTAINER(alignment_eq_pos3), image_eq_pos3);
+    gtk_container_add(GTK_CONTAINER(alignment), image_eq_pos3);
     
-    alignment_eq_pos4 = gtk_alignment_new(0, 0, 0, 0);
-    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment_eq_pos4), 0, 0, 0, 0);
-    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment_eq_pos4, TRUE, TRUE, 0);
+    alignment = gtk_alignment_new(0, 0, 0, 0);
+    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 0, 0, 0, 0);
+    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment, TRUE, TRUE, 0);
     image_eq_pos4 = gtk_image_new_from_file(image_path);
-    gtk_container_add(GTK_CONTAINER(alignment_eq_pos4), image_eq_pos4);
+    gtk_container_add(GTK_CONTAINER(alignment), image_eq_pos4);
     
-    alignment_eq_pos5 = gtk_alignment_new(0, 0, 0, 0);
-    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment_eq_pos5), 0, 0, 0, 0);
-    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment_eq_pos5, TRUE, TRUE, 0);
+    alignment = gtk_alignment_new(0, 0, 0, 0);
+    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 0, 0, 0, 0);
+    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment, TRUE, TRUE, 0);
     image_eq_pos5 = gtk_image_new_from_file(image_path); 
-    gtk_container_add(GTK_CONTAINER(alignment_eq_pos5), image_eq_pos5);
+    gtk_container_add(GTK_CONTAINER(alignment), image_eq_pos5);
     
-    alignment_eq_pos6 = gtk_alignment_new(0, 0, 0, 0);
-    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment_eq_pos6), 0, 0, 0, 0);
-    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment_eq_pos6, TRUE, TRUE, 0);
+    alignment = gtk_alignment_new(0, 0, 0, 0);
+    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 0, 0, 0, 0);
+    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment, TRUE, TRUE, 0);
     image_eq_pos6 = gtk_image_new_from_file(image_path);
-    gtk_container_add(GTK_CONTAINER(alignment_eq_pos6), image_eq_pos6);
+    gtk_container_add(GTK_CONTAINER(alignment), image_eq_pos6);
     
-    alignment_eq_pos7 = gtk_alignment_new(0, 0, 0, 0);
-    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment_eq_pos7), 0, 0, 0, 0);
-    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment_eq_pos7, TRUE, TRUE, 0);
+    alignment = gtk_alignment_new(0, 0, 0, 0);
+    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 0, 0, 0, 0);
+    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment, TRUE, TRUE, 0);
     image_eq_pos7 = gtk_image_new_from_file(image_path);
-    gtk_container_add(GTK_CONTAINER(alignment_eq_pos7), image_eq_pos7);
+    gtk_container_add(GTK_CONTAINER(alignment), image_eq_pos7);
     
-    alignment_eq_pos8 = gtk_alignment_new(0, 0, 0, 0);
-    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment_eq_pos8), 0, 0, 0, 0);
-    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment_eq_pos8, TRUE, TRUE, 0);
+    alignment = gtk_alignment_new(0, 0, 0, 0);
+    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 0, 0, 0, 0);
+    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment, TRUE, TRUE, 0);
     image_eq_pos8 = gtk_image_new_from_file(image_path);
-    gtk_container_add(GTK_CONTAINER(alignment_eq_pos8), image_eq_pos8);
+    gtk_container_add(GTK_CONTAINER(alignment), image_eq_pos8);
     
-    alignment_eq_pos9 = gtk_alignment_new(0, 0, 0, 0);
-    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment_eq_pos9), 0, 0, 0, 0);
-    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment_eq_pos9, TRUE, TRUE, 0);
+    alignment = gtk_alignment_new(0, 0, 0, 0);
+    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 0, 0, 0, 0);
+    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment, TRUE, TRUE, 0);
     image_eq_pos9 = gtk_image_new_from_file(image_path);
-    gtk_container_add(GTK_CONTAINER(alignment_eq_pos9), image_eq_pos9);
+    gtk_container_add(GTK_CONTAINER(alignment), image_eq_pos9);
     
-    alignment_eq_pos10 = gtk_alignment_new(0, 0, 0, 0);
-    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment_eq_pos10), 0, 0, 0, 0);
-    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment_eq_pos10, TRUE, TRUE, 
0);
+    alignment = gtk_alignment_new(0, 0, 0, 0);
+    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 0, 0, 0, 0);
+    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment, TRUE, TRUE, 0);
     image_eq_pos10 = gtk_image_new_from_file(image_path);
-    gtk_container_add(GTK_CONTAINER(alignment_eq_pos10), image_eq_pos10);
+    gtk_container_add(GTK_CONTAINER(alignment), image_eq_pos10);
     
-    alignment_eq_pos11 = gtk_alignment_new(0, 0, 0, 0);
-    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment_eq_pos11), 0, 0, 0, 0);
-    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment_eq_pos11, TRUE, TRUE, 
0);
+    alignment = gtk_alignment_new(0, 0, 0, 0);
+    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 0, 0, 0, 0);
+    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment, TRUE, TRUE, 0);
     image_eq_pos11 = gtk_image_new_from_file(image_path);
-    gtk_container_add(GTK_CONTAINER(alignment_eq_pos11), image_eq_pos11);
+    gtk_container_add(GTK_CONTAINER(alignment), image_eq_pos11);
     
-    alignment_eq_pos12 = gtk_alignment_new(0, 0, 0, 0);
-    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment_eq_pos12), 0, 0, 0, 0);
-    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment_eq_pos12, TRUE, TRUE, 
0);
+    alignment = gtk_alignment_new(0, 0, 0, 0);
+    gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 0, 0, 0, 0);
+    gtk_box_pack_start(GTK_BOX(middle_hbox), alignment, TRUE, TRUE, 0);
     image_eq_pos12 = gtk_image_new_from_file(image_path);
+    gtk_container_add(GTK_CONTAINER(alignment), image_eq_pos12);
     g_free(image_path);
-    gtk_container_add(GTK_CONTAINER(alignment_eq_pos12), image_eq_pos12);
     
     //set middle right vbox
     GtkWidget* middle_right_vbox = gtk_vbox_new(FALSE, 0);
@@ -4602,13 +4562,13 @@
 
     if(!tools)
     {
-        tools = moko_finger_window_get_toolbox(window);
+        tools = 
MOKO_FINGER_TOOL_BOX(moko_finger_window_get_toolbox(MOKO_FINGER_WINDOW(window)));
        
-       prev_button = moko_finger_tool_box_add_button_without_label(tools);
+       prev_button = 
GTK_BUTTON(moko_finger_tool_box_add_button_without_label(MOKO_FINGER_TOOL_BOX(tools)));
         image_path = g_build_path("/", images_dir, "ico-previoustrack.png", 
NULL);
         image = gtk_image_new_from_file(image_path);
        g_free(image_path);
-       moko_pixmap_button_set_finger_toolbox_btn_center_image(prev_button, 
image);
+       
moko_pixmap_button_set_finger_toolbox_btn_center_image(MOKO_PIXMAP_BUTTON(prev_button),
 image);
         g_signal_connect(G_OBJECT(prev_button), "clicked",
                        G_CALLBACK(openmoko_playlist_prev), NULL);
        
@@ -4616,15 +4576,15 @@
         image_path = g_build_path("/", images_dir, "ico-play.png", NULL);
         image = gtk_image_new_from_file(image_path);
        g_free(image_path);
-       
moko_pixmap_button_set_finger_toolbox_btn_center_image(play_pause_button, 
image);
+       
moko_pixmap_button_set_finger_toolbox_btn_center_image(MOKO_PIXMAP_BUTTON(play_pause_button),
 image);
        g_signal_connect(G_OBJECT(play_pause_button), "clicked",
                        G_CALLBACK(openmoko_play_pause_button_pushed), NULL);
        
-       next_button = moko_finger_tool_box_add_button_without_label(tools);
+       next_button = 
GTK_BUTTON(moko_finger_tool_box_add_button_without_label(MOKO_FINGER_TOOL_BOX(tools)));
         image_path = g_build_path("/", images_dir, "ico-nexttrack.png", NULL);
         image = gtk_image_new_from_file(image_path);
        g_free(image_path);
-       moko_pixmap_button_set_finger_toolbox_btn_center_image(next_button, 
image);
+       
moko_pixmap_button_set_finger_toolbox_btn_center_image(MOKO_PIXMAP_BUTTON(next_button),
 image);
        g_signal_connect(G_OBJECT(next_button), "clicked",
                        G_CALLBACK(openmoko_playlist_next), NULL);
 

Modified: 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/mainwin.h
===================================================================
--- 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/mainwin.h 
    2007-02-25 23:46:40 UTC (rev 1125)
+++ 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/mainwin.h 
    2007-02-26 01:33:14 UTC (rev 1126)
@@ -187,8 +187,9 @@
                                 gint * numchannels);
 
 //added by lijiang
-void openmoko_set_title();
-void openmoko_set_artist(gchar* artist);
+void openmoko_mainwin_create();
+void openmoko_set_title(const gchar* title);
+void openmoko_set_artist(const gchar* artist);
 void openmoko_set_track_number();
 void openmoko_set_total_number();
 void openmoko_set_elapse_time(gint elapse_time);

Modified: 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/playlistwin.c
===================================================================
--- 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/playlistwin.c
 2007-02-25 23:46:40 UTC (rev 1125)
+++ 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/playlistwin.c
 2007-02-26 01:33:14 UTC (rev 1126)
@@ -1669,7 +1669,7 @@
 static void
 playlistwin_create_window(void)
 {
-    GdkPixbuf *icon;
+    //GdkPixbuf *icon;
 
     playlistwin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
     gtk_window_set_title(GTK_WINDOW(playlistwin), _("BMP Playlist Editor"));

Modified: 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/prefswin.c
===================================================================
--- 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/prefswin.c
    2007-02-25 23:46:40 UTC (rev 1125)
+++ 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/prefswin.c
    2007-02-26 01:33:14 UTC (rev 1126)
@@ -110,7 +110,7 @@
 {
     return GLADE_XML(g_object_get_data(G_OBJECT(prefswin), "glade-xml"));
 }
-*/
+
 static void
 change_category(GtkNotebook * notebook,
                 GtkTreeSelection * selection)
@@ -125,7 +125,7 @@
     gtk_tree_model_get(model, &iter, CATEGORY_VIEW_COL_ID, &index, -1);
     gtk_notebook_set_current_page(notebook, index);
 }
-
+*/
 void
 prefswin_set_category(gint index)
 {
@@ -139,7 +139,7 @@
 //    gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), index);
 }
 
-
+/*
 static void
 input_plugin_open_prefs(GtkTreeView * treeview,
                         gpointer data)
@@ -233,9 +233,9 @@
     gboolean fixed;
     gint pluginnr;
     gchar *filename, *basename;
-    /*GList *diplist, *tmplist; */
+    // *GList *diplist, *tmplist; *
 
-    /* get toggled iter */
+    // * get toggled iter *
     gtk_tree_model_get_iter(model, &iter, path);
     gtk_tree_model_get(model, &iter,
                        PLUGIN_VIEW_COL_ACTIVE, &fixed,
@@ -246,17 +246,17 @@
     basename = g_path_get_basename(filename);
     g_free(filename);
 
-    /* do something with the value */
+    // * do something with the value *
     fixed ^= 1;
 
     g_hash_table_replace(plugin_matrix, basename, GINT_TO_POINTER(fixed));
-    /*  g_hash_table_foreach(pluginmatrix, (GHFunc) disp_matrix, NULL); */
+    // *  g_hash_table_foreach(pluginmatrix, (GHFunc) disp_matrix, NULL); *
 
-    /* set new value */
+    // * set new value *
     gtk_list_store_set(GTK_LIST_STORE(model), &iter,
                        PLUGIN_VIEW_COL_ACTIVE, fixed, -1);
 
-    /* clean up */
+     // * clean up *
     gtk_tree_path_free(path);
 }
 
@@ -272,22 +272,22 @@
     gboolean fixed;
     gint pluginnr;
 
-    /* get toggled iter */
+    // * get toggled iter *
     gtk_tree_model_get_iter(model, &iter, path);
     gtk_tree_model_get(model, &iter,
                        PLUGIN_VIEW_COL_ACTIVE, &fixed,
                        PLUGIN_VIEW_COL_ID, &pluginnr, -1);
 
-    /* do something with the value */
+    // * do something with the value *
     fixed ^= 1;
 
     enable_vis_plugin(pluginnr, fixed);
 
-    /* set new value */
+    // * set new value *
     gtk_list_store_set(GTK_LIST_STORE(model), &iter,
                        PLUGIN_VIEW_COL_ACTIVE, fixed, -1);
 
-    /* clean up */
+    // * clean up *
     gtk_tree_path_free(path);
 }
 
@@ -302,22 +302,22 @@
     gboolean fixed;
     gint pluginnr;
 
-    /* get toggled iter */
+    // * get toggled iter *
     gtk_tree_model_get_iter(model, &iter, path);
     gtk_tree_model_get(model, &iter,
                        PLUGIN_VIEW_COL_ACTIVE, &fixed,
                        PLUGIN_VIEW_COL_ID, &pluginnr, -1);
 
-    /* do something with the value */
+    // * do something with the value *
     fixed ^= 1;
 
     enable_effect_plugin(pluginnr, fixed);
 
-    /* set new value */
+    // * set new value *
     gtk_list_store_set(GTK_LIST_STORE(model), &iter,
                        PLUGIN_VIEW_COL_ACTIVE, fixed, -1);
 
-    /* clean up */
+    // * clean up *
     gtk_tree_path_free(path);
 }
 static void
@@ -331,22 +331,22 @@
     gboolean fixed;
     gint pluginnr;
 
-    /* get toggled iter */
+    // * get toggled iter *
     gtk_tree_model_get_iter(model, &iter, path);
     gtk_tree_model_get(model, &iter,
                        PLUGIN_VIEW_COL_ACTIVE, &fixed,
                        PLUGIN_VIEW_COL_ID, &pluginnr, -1);
 
-    /* do something with the value */
+    // * do something with the value *
     fixed ^= 1;
 
     enable_general_plugin(pluginnr, fixed);
 
-    /* set new value */
+    // * set new value *
     gtk_list_store_set(GTK_LIST_STORE(model), &iter,
                        PLUGIN_VIEW_COL_ACTIVE, fixed, -1);
 
-    /* clean up */
+    // * clean up *
     gtk_tree_path_free(path);
 }
 
@@ -357,9 +357,9 @@
     gint selected;
     selected = gtk_combo_box_get_active(combobox);
 
-    /* Force playback to stop. There is NO way to change the output
-       plugin in the middle of a playback, and NO way to know when the
-       user closes the output plugin settings dialog. */
+    // * Force playback to stop. There is NO way to change the output
+    //   plugin in the middle of a playback, and NO way to know when the
+    //   user closes the output plugin settings dialog. *
     mainwin_stop_pushed();
     set_current_output_plugin(selected);
 }
@@ -477,8 +477,8 @@
 
     gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(store));
 }
-
-
+*/
+/*
 static void
 on_general_plugin_view_realize(GtkTreeView * treeview,
                                gpointer data)
@@ -489,7 +489,7 @@
     GtkCellRenderer *renderer;
     GtkTreeViewColumn *column;
 
-    GList *ilist /*, *diplist */ ;
+    GList *ilist;
     gchar *description[2];
     GeneralPlugin *gp;
     gint id = 0;
@@ -565,8 +565,8 @@
 
     gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(store));
 }
-
-
+*/
+/*
 static void
 on_vis_plugin_view_realize(GtkTreeView * treeview,
                            gpointer data)
@@ -654,7 +654,8 @@
 
     gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(store));
 }
-
+*/
+/*
 static void
 editable_insert_text(GtkEditable * editable,
                      const gchar * text,
@@ -750,7 +751,8 @@
 
     gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(store));
 }
-
+*/
+/*
 static void
 titlestring_tag_menu_callback(GtkMenuItem * menuitem,
                               gpointer data)
@@ -766,7 +768,7 @@
 
     pos = gtk_editable_get_position(GTK_EDITABLE(entry));
 
-    /* insert separator as needed */
+    // * insert separator as needed *
     if (g_utf8_strlen(gtk_entry_get_text(GTK_ENTRY(entry)), -1) > 0)
         editable_insert_text(GTK_EDITABLE(entry), separator, &pos);
 
@@ -1185,11 +1187,11 @@
     gtk_tree_model_get(model, &iter, PLUGIN_VIEW_COL_ID, &id, -1);
     effect_about(id);
 }
+*/
 
 
 
-
-
+/*
 static void
 on_mouse_wheel_volume_realize(GtkSpinButton * button,
                               gpointer data)
@@ -1269,7 +1271,7 @@
 {
     cfg.convert_twenty = gtk_toggle_button_get_active(button);
 }
-
+*/
 #if 0
 static void
 on_playlist_update_clicked(GtkButton * button,
@@ -1279,7 +1281,7 @@
     draw_playlist_window(TRUE);
 }
 #endif
-
+/*
 static void
 on_use_pl_metadata_realize(GtkToggleButton * button,
                            gpointer data)
@@ -1398,7 +1400,7 @@
 }
 
 
-/* FIXME: implement these */
+// * FIXME: implement these *
 
 static void
 on_eq_preset_view_realize(GtkTreeView * treeview,
@@ -1414,15 +1416,15 @@
 on_eq_preset_remove_clicked(GtkButton * button,
                             gpointer data)
 {}
+*/
 
-
 static void
 prefswin_set_skin_update(gboolean state)
 {
     g_object_set_data(G_OBJECT(prefswin), "update-skins",
                       GINT_TO_POINTER(state));
 }
-
+/*
 static gboolean
 prefswin_get_skin_update(void)
 {
@@ -1509,19 +1511,19 @@
 
     path = (gchar *) selection_data->data;
 
-    /* FIXME: use a real URL validator/parser */
+    // * FIXME: use a real URL validator/parser *
 
     if (!str_has_prefix_nocase(path, "fonts:///"))
         return;
 
-    path[strlen(path) - 2] = 0; /* Why the hell a CR&LF? */
+    path[strlen(path) - 2] = 0; // * Why the hell a CR&LF? *
     path += 8;
 
-    /* plain, since we already stripped the first URI part */
+    // * plain, since we already stripped the first URI part *
     decoded = xmms_urldecode_plain(path);
 
-    /* Get the old font's size, and add it to the dropped
-     * font's name */
+    // * Get the old font's size, and add it to the dropped
+    //   * font's name *
     cfg.playlist_font = g_strconcat(decoded+1,
                                     strrchr(cfg.playlist_font, ' '),
                                     NULL);
@@ -1550,10 +1552,10 @@
 
     path = (gchar *) selection_data->data;
 
-    /* FIXME: use a real URL validator/parser */
+    // * FIXME: use a real URL validator/parser *
 
     if (str_has_prefix_nocase(path, "file:///")) {
-        path[strlen(path) - 2] = 0; /* Why the hell a CR&LF? */
+        path[strlen(path) - 2] = 0; // * Why the hell a CR&LF? *
         path += 7;
     }
     else if (str_has_prefix_nocase(path, "file:")) {
@@ -1564,7 +1566,7 @@
         bmp_active_skin_load(path);
         skin_install_skin(path);
        skin_view_update(GTK_TREE_VIEW(widget));
-        /* Change skin name in the config file */
+        // * Change skin name in the config file *
         db = bmp_cfg_db_open();
         bmp_cfg_db_set_string(db, NULL, "skin", path);
         bmp_cfg_db_close(db);
@@ -1572,7 +1574,7 @@
                                                   
 }
 
-/* FIXME: complete the map */
+// * FIXME: complete the map *
 FUNC_MAP_BEGIN(prefswin_func_map)
     FUNC_MAP_ENTRY(on_input_plugin_view_realize)
     FUNC_MAP_ENTRY(on_output_plugin_cbox_realize)
@@ -1614,17 +1616,17 @@
     FUNC_MAP_ENTRY(on_eq_preset_add_clicked)
     FUNC_MAP_ENTRY(on_eq_preset_remove_clicked)
 FUNC_MAP_END
-
+*/
 void
 create_prefs_window(void)
 {
     //const gchar *glade_file = DATA_DIR "/glade/prefswin.glade";
 
     //GladeXML *xml;
-    GtkWidget *widget, *widget2;
+    //GtkWidget *widget, *widget2;
 
-    GtkWidget *titlestring_tag_menu, *menu_item;
-    gint i;
+    //GtkWidget *titlestring_tag_menu, *menu_item;
+    //gint i;
         
     /* load the interface */
     //xml = glade_xml_new_or_die(_("Preferences Window"), glade_file, NULL,

Modified: 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/skin.c
===================================================================
--- 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/skin.c    
    2007-02-25 23:46:40 UTC (rev 1125)
+++ 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/skin.c    
    2007-02-26 01:33:14 UTC (rev 1126)
@@ -389,7 +389,7 @@
 
     return ret;
 }
-
+/*
 static void
 skin_query_color(GdkColormap * cm, GdkColor * c)
 {
@@ -408,13 +408,13 @@
     return (0.212671 * c->red + 0.715160 * c->green + 0.072169 * c->blue);
 }
 
+
 static void
 skin_get_textcolors(GdkPixmap * text, GdkColor * bgc, GdkColor * fgc)
 {
-    /*
-     * Try to extract reasonable background and foreground colors
-     * from the font pixmap
-     */
+    //  * Try to extract reasonable background and foreground colors
+    //  * from the font pixmap
+    //  *
 
     GdkImage *gi;
     GdkColormap *cm;
@@ -422,7 +422,7 @@
 
     g_return_if_fail(text != NULL);
 
-    /* Get the first line of text */
+    //  * Get the first line of text *
     gi = gdk_drawable_get_image(text, 0, 0, 152, 6);
     cm = gdk_window_get_colormap(playlistwin->window);
     g_return_if_fail(GDK_IS_WINDOW(playlistwin->window));
@@ -432,7 +432,7 @@
         gint x;
         glong d, max_d;
 
-        /* Get a pixel from the middle of the space character */
+        // * Get a pixel from the middle of the space character *
         bgc[i].pixel = gdk_image_get_pixel(gi, 151, i);
         skin_query_color(cm, &bgc[i]);
 
@@ -451,6 +451,7 @@
     gdk_image_destroy(gi);
 
 }
+*/
 
 gboolean
 init_skins(const gchar * path)

Modified: 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/util.c
===================================================================
--- 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/util.c    
    2007-02-25 23:46:40 UTC (rev 1125)
+++ 
trunk/src/target/OM-2007/applications/openmoko-simplemediaplayer/beep/util.c    
    2007-02-26 01:33:14 UTC (rev 1126)
@@ -688,7 +688,7 @@
 
     return win;
 }
-
+/*
 static void
 filebrowser_add_files(GtkFileChooser * browser,
                       GSList * files)
@@ -787,7 +787,7 @@
     filebrowser_play(data);
     gtk_file_chooser_unselect_all(data);
 }
-
+*/
 #if 0
 static void
 filebrowser_on_response(GtkFileChooser * browser,
@@ -808,7 +808,7 @@
 }
 
 #endif
-
+/*
 static void
 _filebrowser_check_hide_add(GtkWidget * widget,
                             gpointer data)
@@ -822,17 +822,17 @@
 {
     cfg.close_dialog_open = 
gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
 }
+*/
 
-
-
+/*
 static gboolean
 filebrowser_on_keypress(GtkWidget * browser,
                         GdkEventKey * event,
                         gpointer data)
 {
     if (event->keyval == GDK_Escape) {
-        /* FIXME: this crashes BMP for some reason */
-        /* g_signal_emit_by_name(browser, "delete-event"); */
+        // * FIXME: this crashes BMP for some reason *
+        // * g_signal_emit_by_name(browser, "delete-event"); *
         gtk_widget_hide(browser);
         return TRUE;
     }
@@ -855,7 +855,7 @@
     if (cfg.close_dialog_open)
         gtk_widget_hide(data);
 }
-
+*/
 void
 util_run_filebrowser(gboolean play_button)
 {




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

Reply via email to