Hey I'm active! :-)

This is the initial commit for the 0.4.0 xfce4-taskmanager.

New Things:
  - now you have a configuration-file
  - views are saved and restored
  - task SleepAverage display
  - few bugfixes



(Old svn revision: 1262)
This commit is contained in:
Johannes Zellner
2006-03-28 12:22:19 +00:00
parent eca8b9b0ce
commit 255757695a
11 changed files with 712 additions and 423 deletions

View File

@@ -23,20 +23,16 @@
#endif
#include <gtk/gtk.h>
#include <glib.h>
#include <signal.h>
#include <libxfce4util/libxfce4util.h>
#include "types.h"
#include "interface.h"
#include "functions.h"
/* handler for SIGALRM to refresh the list */
void refresh_handler(void)
{
refresh_task_list();
alarm(REFRESH_INTERVAL);
}
int main (int argc, char *argv[])
{
#ifdef ENABLE_NLS
@@ -47,23 +43,22 @@ int main (int argc, char *argv[])
gtk_set_locale ();
gtk_init (&argc, &argv);
window1 = create_window1 ();
gtk_widget_show (window1);
own_uid = getuid();
show_user_tasks = TRUE;
show_root_tasks = FALSE;
show_other_tasks = FALSE;
config_file = xfce_resource_save_location(XFCE_RESOURCE_CONFIG, "xfce4-taskmanager.rc", FALSE);
load_config();
task_array = g_array_new (FALSE, FALSE, sizeof (struct task));
tasks = 0;
main_window = create_main_window ();
gtk_widget_show (main_window);
if(!refresh_task_list())
return 0;
signal(SIGALRM, (void *)refresh_handler);
alarm(REFRESH_INTERVAL);
g_timeout_add(REFRESH_INTERVAL, refresh_task_list, NULL);
gtk_main ();