r1397 - trunk/src/target/OM-2007/applications/openmoko-taskmanager/src

zhiyong_sun at sita.openmoko.org zhiyong_sun at sita.openmoko.org
Mon Mar 19 03:49:43 CET 2007


Author: zhiyong_sun
Date: 2007-03-19 03:49:39 +0100 (Mon, 19 Mar 2007)
New Revision: 1397

Removed:
   trunk/src/target/OM-2007/applications/openmoko-taskmanager/src/popupmenu.c
   trunk/src/target/OM-2007/applications/openmoko-taskmanager/src/popupmenu.h
Log:
remove popupmenu

Deleted: trunk/src/target/OM-2007/applications/openmoko-taskmanager/src/popupmenu.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-taskmanager/src/popupmenu.c	2007-03-19 02:48:16 UTC (rev 1396)
+++ trunk/src/target/OM-2007/applications/openmoko-taskmanager/src/popupmenu.c	2007-03-19 02:49:39 UTC (rev 1397)
@@ -1,66 +0,0 @@
-/**
- *  popupmenu.c
- *
- *  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 "popupmenu.h"
-
-void
-moko_kill_task_cb(GtkMenuItem *item, MokoTaskList *l) {
-    g_debug ("kill task cb");
-    //moko_wm_cmd(item, l->mokolist_view, MB_CMD_REMOVE_CLIENT);
-    moko_wm_cmd(item, l->list_view, CMD_CLOSE_WINDOW);
-    }
-
-void 
-moko_kill_and_swith_cb(GtkMenuItem *item, MokoTaskList *l) {
-    g_debug ("call kill and switch task function");
-    //moko_wm_cmd(item, l->mokolist_view, MB_CMD_REMOVE_AND_ACTIVE);
-   //moko_wm_cmd(item, l->list_view, MB_CMD_REMOVE_AND_ACTIVE);
-    }
-
-void
-moko_init_popup_menu (GtkWidget *my_widget, GdkEventButton *event, MokoTaskList *l) {
-    GtkWidget *menu;
-    GtkMenuItem *item;
-    int button, event_time;
-    
-    menu = gtk_menu_new ();
-    gtk_widget_show (menu);
-    g_signal_connect (menu, "selection-done", G_CALLBACK (gtk_widget_destroy), NULL);
-
-    /* ... add menu items ... */
-    item = gtk_menu_item_new_with_label ("Close and switch");
-    gtk_widget_show (item);
-    gtk_menu_prepend (menu, item);
-    g_signal_connect (item, "activate", G_CALLBACK (moko_kill_and_swith_cb), l);
-    item = gtk_menu_item_new_with_label ("Kill the Application");
-    gtk_widget_show (item);
-    gtk_menu_prepend (menu, item);
-    g_signal_connect (item, "activate", G_CALLBACK (moko_kill_task_cb), l);
-    if (event) {
-        button = event->button;
-        event_time = event->time;
-        }
-    else {
-    	 button = 0;
-    	 event_time = gtk_get_current_event_time ();
-    	 }
-    gtk_menu_popup (menu, NULL, NULL, NULL, NULL, 
-    	 				button, event_time);
-    }
-

Deleted: trunk/src/target/OM-2007/applications/openmoko-taskmanager/src/popupmenu.h
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-taskmanager/src/popupmenu.h	2007-03-19 02:48:16 UTC (rev 1396)
+++ trunk/src/target/OM-2007/applications/openmoko-taskmanager/src/popupmenu.h	2007-03-19 02:49:39 UTC (rev 1397)
@@ -1,33 +0,0 @@
-/**
- *  popupmenu.h
- *
- *  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 _TASK_MANAGER_POPUP_MENU_H
-#define _TASK_MANAGER_POPUP_MENU_H
-
-#include <gdk/gdk.h>
-#include <gtk/gtk.h>
-
-#include "list_view.h"
-#include "misc.h"
-
-void
-moko_init_popup_menu (GtkWidget *my_widget, GdkEventButton *event, MokoTaskList *l);
-
-
-#endif





More information about the commitlog mailing list