52 lines
1.2 KiB
C
52 lines
1.2 KiB
C
/*
|
|
* xfce4-taskmanager - very simple taskmanger
|
|
*
|
|
* Copyright (c) 2005 Johannes Zellner, <webmaster@nebulon.de>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* 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 Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __TYPES_H_
|
|
#define __TYPES_H_
|
|
|
|
#define REFRESH_INTERVAL 1
|
|
#define FULL_VIEW FALSE
|
|
|
|
struct task
|
|
{
|
|
gint pid;
|
|
gint ppid;
|
|
gint uid;
|
|
gchar uname[64];
|
|
gchar name[64];
|
|
gchar state;
|
|
gint size;
|
|
gint rss;
|
|
gboolean checked;
|
|
};
|
|
|
|
GtkWidget *window1;
|
|
GtkListStore *list_store;
|
|
|
|
GArray *task_array;
|
|
gint tasks;
|
|
gint own_uid;
|
|
|
|
gboolean show_user_tasks;
|
|
gboolean show_root_tasks;
|
|
gboolean show_other_tasks;
|
|
|
|
#endif
|