--- gnome-system-monitor-2.28.0.orig/src/interface.cpp	2010-06-20 15:50:22.000000000 +0200
+++ gnome-system-monitor-2.28.0/src/interface.cpp	2010-06-20 16:22:02.000000000 +0200
@@ -42,6 +42,7 @@
 #include "gsm_color_button.h"
 
 static void	cb_toggle_tree (GtkAction *action, gpointer data);
+static void	cb_proc_goto_tab (gint tab);
 
 static const GtkActionEntry menu_entries[] =
 {
@@ -604,6 +605,7 @@
 void
 create_main_window (ProcData *procdata)
 {
+	gint i;
 	gint width, height;
 	GtkWidget *app;
 	GtkAction *action;
@@ -714,6 +716,17 @@
                           G_CALLBACK (cb_app_delete),
                           procdata);
 
+	GtkAccelGroup *accel_group;
+	GClosure *goto_tab_closure[4];
+	accel_group = gtk_accel_group_new ();
+	gtk_window_add_accel_group (GTK_WINDOW(app), accel_group);
+	for (i = 0; i < 4; ++i) {
+		goto_tab_closure[i] = g_cclosure_new_swap (G_CALLBACK (cb_proc_goto_tab),
+							   (gpointer) i, NULL);
+		gtk_accel_group_connect (accel_group, '0'+(i+1),
+					 GDK_MOD1_MASK, GTK_ACCEL_VISIBLE,
+					 goto_tab_closure[i]);
+	}
 
 	/* create the statusbar */
 	procdata->statusbar = gtk_statusbar_new();
@@ -806,3 +819,10 @@
 
 	gconf_client_set_bool (client, "/apps/procman/show_tree", show, NULL);
 }
+
+static void
+cb_proc_goto_tab (gint tab)
+{
+	ProcData *data = ProcData::get_instance ();
+	gtk_notebook_set_current_page (GTK_NOTEBOOK (data->notebook), tab);
+}
