xfce4-taskmanager

Juha Kautto kautto.juha at kolumbus.fi
Wed Jan 19 22:47:21 CET 2005


Johannes,

Works for me at least.
 
Although I get this warning:
(xfce4_taskmanager:27216): Gtk-WARNING **: Ignoring the separator setting
always after kill or term. Probably coming from the popup ?


Enhancement request :-) : Show username instead of uid.

I did it like this:
...............
--- xfce4-taskmanager.c_orig    2005-01-19 23:29:14.491217746 +0200
+++ xfce4-taskmanager.c 2005-01-19 23:38:07.656865025 +0200
@@ -23,6 +23,8 @@
 #include <stdio.h>
 #include <libxfcegui4/libxfcegui4.h>
 #include <dirent.h>
+#include <pwd.h>
+#include <sys/types.h>
 
 gchar *current_task_id = "";
 GtkListStore *model;
@@ -52,12 +54,17 @@
 static void add_new_list_item(struct task task)
 {
        GtkTreeIter iter;
+    struct passwd *passwdp;
 
        /* Append new line in the list */
        gtk_list_store_append(GTK_LIST_STORE(model), &iter);
 
        /* Fill the appended line with data */
+    passwdp = getpwuid(atoi(task.uid));
+       gchar *list_value_1 = g_strdup_printf("%s", passwdp->pw_name);
+    /*
        gchar *list_value_1 = g_strdup_printf("%s", task.uid);
+    */
        gtk_list_store_set(GTK_LIST_STORE(model), &iter, 0, 
list_value_1, -1);
        g_free(list_value_1);
...............

/Juha

Johannes Zellner wrote:

> Hello
>
> Now I implement a few features in my taskmanager.
> and I didn't like the "popen('ps'...." so now the taskmanager works 
> without this tool,
> but I don't know if it works everywhere, so it would be very nice, if 
> someone tests the new pre-version of xfce4-taskmanager.
> You can found it on http://x.nebulon.de/xfce4-taskmanager (well the 
> screenshot is false :) )
>
> Thanks
> Johannes
>
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce4-dev




More information about the Xfce4-dev mailing list