r609 - trunk/src/target/OM-2007/applications/openmoko-mainmenu/src

tongsong_li at sita.openmoko.org tongsong_li at sita.openmoko.org
Thu Jan 25 03:24:10 CET 2007


Author: tongsong_li
Date: 2007-01-25 03:23:53 +0100 (Thu, 25 Jan 2007)
New Revision: 609

Modified:
   trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/app-history.c
   trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/app-history.h
   trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/callbacks.c
   trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/callbacks.h
   trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/main.c
   trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/main.h
   trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mainmenu.c
   trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mainmenu.h
   trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mokodesktop.c
   trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mokoiconview.c
   trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mokoiconview.h
Log:
=update license, by sunzhiyong <sunzhiyong at fic-sh.com.cn>

Modified: trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/app-history.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/app-history.c	2007-01-25 02:12:23 UTC (rev 608)
+++ trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/app-history.c	2007-01-25 02:23:53 UTC (rev 609)
@@ -1,3 +1,24 @@
+/**
+ *  @file app-history.c
+ *  @brief The Main Menu in the Openmoko
+ *  
+ *  Authored by Sun Zhiyong <sunzhiyong at fic-sh.com.cn>
+ *  
+ *  Copyright (C) 2006-2007 OpenMoko Inc.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU 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 Public License for more details.
+ *
+ *  Current Version: $Rev$ ($Date$) [$Author$]
+ *
+ */
+
 #include "app-history.h"
 
 static int current = 0;

Modified: trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/app-history.h
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/app-history.h	2007-01-25 02:12:23 UTC (rev 608)
+++ trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/app-history.h	2007-01-25 02:23:53 UTC (rev 609)
@@ -1,3 +1,23 @@
+/**
+ *  @file app-history.h
+ *  @brief The Main Menu in the Openmoko
+ *  
+ *  Authored by Sun Zhiyong <sunzhiyong at fic-sh.com.cn>
+ *  
+ *  Copyright (C) 2006-2007 OpenMoko Inc.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU 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 Public License for more details.
+ *
+ *  Current Version: $Rev$ ($Date$) [$Author$]
+ *
+ */
 #ifndef _MOKO_APP_HISTORY_H
 #define _MOKO_APP_HISTORY_H
 
@@ -5,5 +25,11 @@
 
 #define MAX_RECORD_APP 4
 
+/**
+ * @brief moko_history_app_fill
+ * @param btn    MokoPixmapButton **
+ * @param path    const char *
+ * @return NONE
+ */
 void moko_hisory_app_fill(MokoPixmapButton **btn, const char *path);
 #endif /*_MOKO_APP_HISTORY_H*/

Modified: trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/callbacks.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/callbacks.c	2007-01-25 02:12:23 UTC (rev 608)
+++ trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/callbacks.c	2007-01-25 02:23:53 UTC (rev 609)
@@ -1,6 +1,7 @@
-/*
- *  openmoko-mainmenu
- *
+/**
+ *  @file callbacks.c
+ *  @brief The Main Menu in the Openmoko
+ *  
  *  Authored by Sun Zhiyong <sunzhiyong at fic-sh.com.cn>
  *
  *  Copyright (C) 2006-2007 OpenMoko Inc.
@@ -15,6 +16,7 @@
  *  GNU Public License for more details.
  *
  *  Current Version: $Rev$ ($Date$) [$Author$]
+ *
  */
 
 #include <libmokoui/moko-application.h>

Modified: trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/callbacks.h
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/callbacks.h	2007-01-25 02:12:23 UTC (rev 608)
+++ trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/callbacks.h	2007-01-25 02:23:53 UTC (rev 609)
@@ -1,13 +1,14 @@
-/*
- *  openmoko-mainmenu
- *
+/**
+ *  @file callbacks.h
+ *  @brief The Main Menu in the Openmoko
+ *  
  *  Authored by Sun Zhiyong <sunzhiyong at fic-sh.com.cn>
  *
  *  Copyright (C) 2006-2007 OpenMoko Inc.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU Public License as published by
- *  the Free Software Foundation; version 2.1 of the license.
+ *  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
@@ -15,37 +16,31 @@
  *  GNU Public License for more details.
  *
  *  Current Version: $Rev$ ($Date$) [$Author$]
+ *
  */
 
- #ifndef _MAIN_MENU_CALLBACKS_H
- #define _MAIN_MENU_CALLBACKS_H
- #include <gtk/gtk.h>
- #include "main.h"
+#ifndef _MAIN_MENU_CALLBACKS_H
+#define _MAIN_MENU_CALLBACKS_H
+#include <gtk/gtk.h>
+#include "main.h"
 
-void
-moko_wheel_bottom_press_cb (GtkWidget *self, MokoMainmenuApp *mma);
+void moko_wheel_bottom_press_cb (GtkWidget *self, MokoMainmenuApp *mma);
 
-void
-moko_wheel_left_up_press_cb (GtkWidget *self, MokoMainmenuApp *mma);
+void moko_wheel_left_up_press_cb (GtkWidget *self, MokoMainmenuApp *mma);
 
-void
-moko_wheel_right_down_press_cb (GtkWidget *self, MokoMainmenuApp *mma);
+void moko_wheel_right_down_press_cb (GtkWidget *self, MokoMainmenuApp *mma);
 
-void 
-moko_up_btn_cb (GtkButton *button, MokoMainMenu *mm);
+void moko_up_btn_cb (GtkButton *button, MokoMainMenu *mm);
 
-void 
-moko_down_btn_cb (GtkButton *button, MokoMainMenu *mm);
+void moko_down_btn_cb (GtkButton *button, MokoMainMenu *mm);
 
-void
-moko_item_select_cb(GtkIconView *icon_view, GtkTreePath *path, MokoMainmenuApp *mma);
+void moko_item_select_cb(GtkIconView *icon_view, 
+				GtkTreePath *path, MokoMainmenuApp *mma);
 
-void
-moko_icon_view_item_acitvated_cb(GtkIconView *iconview, 
-						GtkTreePath *path, MokoMainmenuApp *mma);
+void moko_icon_view_item_acitvated_cb(GtkIconView *iconview, 
+				GtkTreePath *path, MokoMainmenuApp *mma);
 
-void
-moko_icon_view_selection_changed_cb(GtkIconView *iconview, 
-												MokoMainmenuApp *mma);
+void moko_icon_view_selection_changed_cb(GtkIconView *iconview, 
+				MokoMainmenuApp *mma);
 
 #endif /*_MAIN_MENU_CALLBACKS_H*/

Modified: trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/main.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/main.c	2007-01-25 02:12:23 UTC (rev 608)
+++ trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/main.c	2007-01-25 02:23:53 UTC (rev 609)
@@ -1,8 +1,9 @@
-/*
- *  openmoko-mainmenu
- *
+/**
+ *  @file main.c
+ *  @brief The Main Menu in the Openmoko
+ *  
  *  Authored by Sun Zhiyong <sunzhiyong at fic-sh.com.cn>
- *
+ *  
  *  Copyright (C) 2006-2007 OpenMoko Inc.
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -15,6 +16,7 @@
  *  GNU Public License for more details.
  *
  *  Current Version: $Rev$ ($Date$) [$Author$]
+ *
  */
 
 #include "callbacks.h"
@@ -128,7 +130,6 @@
     	exit (0);
     	}
     memset (mma, 0, sizeof (MokoMainmenuApp));
-
     gtk_init( &argc, &argv );
 
     /* application object */
@@ -144,7 +145,6 @@
     mma->wheel = moko_finger_window_get_wheel (mma->window);
         gtk_window_set_title (GTK_WIDGET (mma->wheel), "wheel");
 
-
     /* finger toolbox object*/
     mma->toolbox = moko_finger_window_get_toolbox(mma->window);
     //initialize toolbox's buttons, which are MokoPixmapButton objects.

Modified: trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/main.h
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/main.h	2007-01-25 02:12:23 UTC (rev 608)
+++ trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/main.h	2007-01-25 02:23:53 UTC (rev 609)
@@ -1,13 +1,14 @@
-/*
- *  openmoko-mainmenu
- *
+/**
+ *  @file main.h
+ *  @brief The Main Menu in the Openmoko
+ *  
  *  Authored by Sun Zhiyong <sunzhiyong at fic-sh.com.cn>
- *
+ *  
  *  Copyright (C) 2006-2007 OpenMoko Inc.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU Public License as published by
- *  the Free Software Foundation; version 2.1 of the license.
+ *  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
@@ -15,6 +16,7 @@
  *  GNU Public License for more details.
  *
  *  Current Version: $Rev$ ($Date$) [$Author$]
+ *
  */
 
 #ifndef _MAIN_MENU_MAIN_H

Modified: trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mainmenu.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mainmenu.c	2007-01-25 02:12:23 UTC (rev 608)
+++ trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mainmenu.c	2007-01-25 02:23:53 UTC (rev 609)
@@ -1,8 +1,9 @@
-/*
- *  openmoko-mainmenu
- *
+/**
+ *  @file mainmenu.c
+ *  @brief The Main Menu in the Openmoko
+ *  
  *  Authored by Sun Zhiyong <sunzhiyong at fic-sh.com.cn>
- *
+ *  
  *  Copyright (C) 2006-2007 OpenMoko Inc.
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -15,6 +16,7 @@
  *  GNU Public License for more details.
  *
  *  Current Version: $Rev$ ($Date$) [$Author$]
+ *
  */
 #include "mokodesktop.h"
 #include "mokodesktop_item.h"
@@ -87,7 +89,6 @@
     PangoFontDescription* PangoFont = pango_font_description_new(); //get system default PangoFontDesc
     GtkEventBox *eventbox;
     int ret = 0 ;
-
     /* Buid Root item, don't display */
     mm->top_item  = mokodesktop_item_new_with_params ("Home", 
 						       NULL,

Modified: trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mainmenu.h
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mainmenu.h	2007-01-25 02:12:23 UTC (rev 608)
+++ trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mainmenu.h	2007-01-25 02:23:53 UTC (rev 609)
@@ -1,13 +1,14 @@
-/*
- *  openmoko-mainmenu
- *
+/**
+ *  @file mainmenu.c
+ *  @brief The Main Menu in the Openmoko
+ *  
  *  Authored by Sun Zhiyong <sunzhiyong at fic-sh.com.cn>
- *
+ *  
  *  Copyright (C) 2006-2007 OpenMoko Inc.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU Public License as published by
- *  the Free Software Foundation; version 2.1 of the license.
+ *  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
@@ -15,6 +16,7 @@
  *  GNU Public License for more details.
  *
  *  Current Version: $Rev$ ($Date$) [$Author$]
+ *
  */
 
 #ifndef _OPEN_MOKO_MAIN_MENU_H

Modified: trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mokodesktop.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mokodesktop.c	2007-01-25 02:12:23 UTC (rev 608)
+++ trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mokodesktop.c	2007-01-25 02:23:53 UTC (rev 609)
@@ -209,7 +209,7 @@
 
  if (stat(vfolder_path_root, &stat_info))
     {
-      snprintf(vfolder_path_root, 512, VFOLDERDIR "/vfolders/Root.directory");
+      snprintf(vfolder_path_root, 512, VFOLDERDIR"/vfolders/Root.directory");
       snprintf(vfolder_path, 512, VFOLDERDIR "/vfolders" );
     }
  

Modified: trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mokoiconview.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mokoiconview.c	2007-01-25 02:12:23 UTC (rev 608)
+++ trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mokoiconview.c	2007-01-25 02:23:53 UTC (rev 609)
@@ -1,3 +1,26 @@
+/**
+ *  @file mokoiconview.c
+ *  @brief The Main Menu in the Openmoko
+ *  
+ *  Authored by Sun Zhiyong <sunzhiyong at fic-sh.com.cn>
+ *
+ *  Based on gtkiconview.c by Anders Carlsson <andersca at gnome.org>
+ *  
+ *  Copyright (C) 2006-2007 OpenMoko Inc.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU 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 Public License for more details.
+ *
+ *  Current Version: $Rev$ ($Date$) [$Author$]
+ *
+ */
+
 #include "mokoiconview.h"
 #include "callbacks.h"
 

Modified: trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mokoiconview.h
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mokoiconview.h	2007-01-25 02:12:23 UTC (rev 608)
+++ trunk/src/target/OM-2007/applications/openmoko-mainmenu/src/mokoiconview.h	2007-01-25 02:23:53 UTC (rev 609)
@@ -1,3 +1,26 @@
+/**
+ *  @file mokoiconview.h
+ *  @brief The Main Menu in the Openmoko
+ *  
+ *  Authored by Sun Zhiyong <sunzhiyong at fic-sh.com.cn>
+ *
+ *  Based on gtkiconview.h by Anders Carlsson <andersca at gnome.org>
+ *  
+ *  Copyright (C) 2006-2007 OpenMoko Inc.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU 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 Public License for more details.
+ *
+ *  Current Version: $Rev$ ($Date$) [$Author$]
+ *
+ */
+
 #ifndef _MOKO_ICON_VIEW_H__
 #define _MOKO_ICON_VIEW_H__
 





More information about the commitlog mailing list