Index: gnome-panel/panel-action-protocol.c
===================================================================
RCS file: /cvs/gnome/gnome-panel/gnome-panel/panel-action-protocol.c,v
retrieving revision 1.12
diff -u -p -r1.12 panel-action-protocol.c
--- gnome-panel/panel-action-protocol.c	12 Jan 2005 04:16:41 -0000	1.12
+++ gnome-panel/panel-action-protocol.c	19 Apr 2006 16:14:46 -0000
@@ -38,10 +38,12 @@
 #include "panel-run-dialog.h"
 #include "panel-menu-button.h"
 #include "panel-menu-bar.h"
+#include "panel-logout.h"
 
 static Atom atom_gnome_panel_action            = None;
 static Atom atom_gnome_panel_action_main_menu  = None;
 static Atom atom_gnome_panel_action_run_dialog = None;
+static Atom atom_gnome_panel_action_log_out    = None;
 
 static void
 panel_action_protocol_main_menu (GdkScreen *screen,
@@ -76,6 +78,14 @@ panel_action_protocol_main_menu (GdkScre
 }
 
 static void
+panel_action_protocol_log_out (GdkScreen *screen,
+				  guint32    activate_time)
+{
+	panel_logout_new (PANEL_LOGOUT_DIALOG_LOGOUT,
+            screen, activate_time);
+}
+
+static void
 panel_action_protocol_run_dialog (GdkScreen *screen,
 				  guint32    activate_time)
 {
@@ -105,6 +115,8 @@ panel_action_protocol_filter (GdkXEvent 
 
 	if (xevent->xclient.data.l [0] == atom_gnome_panel_action_main_menu)
 		panel_action_protocol_main_menu (screen, xevent->xclient.data.l [1]);
+	else if (xevent->xclient.data.l [0] == atom_gnome_panel_action_log_out)
+		panel_action_protocol_log_out (screen, xevent->xclient.data.l [1]);
 	else if (xevent->xclient.data.l [0] == atom_gnome_panel_action_run_dialog)
 		panel_action_protocol_run_dialog (screen, xevent->xclient.data.l [1]);
 	else
@@ -136,6 +148,10 @@ panel_action_protocol_init (void)
 		XInternAtom (GDK_DISPLAY_XDISPLAY (display),
 			     "_GNOME_PANEL_ACTION_RUN_DIALOG",
 			     FALSE);
+        atom_gnome_panel_action_log_out =
+                XInternAtom (GDK_DISPLAY_XDISPLAY (display),
+                             "_GNOME_PANEL_ACTION_LOG_OUT",
+                             FALSE);
 
 	gdk_display_add_client_message_filter (
 		display, gdk_atom_gnome_panel_action,
