GNOME Bugzilla – Bug 125857
It would be nice to be able to re-order process columns
Last modified: 2011-11-11 10:03:55 UTC
It'd be great to be able to drag the process column tabs around to re-order them. Is this possible via the (hopefully) generic widget used to display the process columns?
Given the overwhelming response to this bug :) maybe instead re-ordering the columns at the very least the "process args" column could always be made the last one on the right, instead of the first one on the left. That's really the one that gets to me.... I run this program all the time in its own workspace, and while the Process Arguments column is extremely useful, since it always pushes everything else out of view, I only display it when I absolutely need it.
Ok, I modified the source to make Arguments be the last column. What's the easiest way to make a patch file from the emacs backup files? I modified proctable.c and proctable.h.
cvs howto http://developer.gnome.org/tools/cvs.html then cvs diff -u > mypatch i think the patch should be very easy, but it would be great if you could attach something :) (i'm pretty busy and you're right) Thanks for your help
Created attachment 33914 [details] [review] proposed patch
My patch is pretty much identical to yours (save for line breaks). I added comments to "model = gtk_tree_store_new" so it looks like: model = gtk_tree_store_new (NUM_COLUMNS, G_TYPE_STRING /* Name */, G_TYPE_STRING /* User */, G_TYPE_STRING /* Status */, G_TYPE_STRING /* Memory */, G_TYPE_STRING /* VM Size */, G_TYPE_STRING /* Resident Memory */, G_TYPE_STRING /* Shared Memory */, G_TYPE_STRING /* RSS Memory */, G_TYPE_STRING /* X Server Memory */, G_TYPE_INT /* CPU */, G_TYPE_INT /* Nice */, G_TYPE_INT /* ID */, G_TYPE_STRING /* Arguments */, GDK_TYPE_PIXBUF, G_TYPE_POINTER); which you might want to incorporate, so next time a new person tries to modify the code they don't spend an hour wondering why the app crashes after two seconds before they realize that the data types have to be adjusted in this list also. :) Looks like your patch, based on CVS, adds a "Security Context" thing... what is that about? Oh, since my patch is more or less the same as yours, I won't bother putting it here, as long as I know you'll submit your changes. Thanks!
you're right, i lose myself everytime i hack the column layout. i've commited a few days ago, but the bug is still open :) (Security Context : http://bugzilla.gnome.org/show_bug.cgi?id=150020)
Now, it's reorderable but i don't know how save user-defines order :/
I tried moving the columns in current G 2.8 gsm, and I couldn't. Was this reorder code commited and then removed?
current is 2.10 :) 2.8 hasn't reorderable columns.
Done (save/restore columns order). Checkout 2.11.4 (CVS HEAD).