Commit ebd18933 authored by Bastien Nocera's avatar Bastien Nocera Committed by Bastien Nocera
Browse files

Update the documentation for the action protocol, following the addition

2007-07-03  Bastien Nocera  <hadess@hadess.net>

	* doc/gnome-panel-action-protocol.txt: Update the documentation
	for the action protocol, following the addition of
	_GNOME_PANEL_ACTION_KILL_DIALOG (Closes: #442625)

2007-07-03  Bastien Nocera  <hadess@hadess.net>

	* panel-action-button.c: (panel_action_force_quit):
	* panel-action-protocol.c: (panel_action_protocol_kill_dialog),
	(panel_action_protocol_filter), (panel_action_protocol_init):
	* panel-force-quit.c: (panel_force_quit):
	* panel-force-quit.h: Add the _GNOME_PANEL_ACTION_KILL_DIALOG message
	to allow a keybinding for the force quit dialogue to be added
	(Closes: #442625)


svn path=/trunk/; revision=10531
parent b8a0e790
2007-07-03 Bastien Nocera <hadess@hadess.net>
* doc/gnome-panel-action-protocol.txt: Update the documentation
for the action protocol, following the addition of
_GNOME_PANEL_ACTION_KILL_DIALOG (Closes: #442625)
2007-06-29 Vincent Untz <vuntz@gnome.org>
* configure.in: add libbonobo and libbonoboui pkgconfig checks for the
......@@ -54,7 +60,7 @@
2007-05-21 Vincent Untz <vuntz@gnome.org>
* configure.in: rework x libraries detection
Patch by Loc Minier <lool@dooz.org>
Patch by Lo?c Minier <lool@dooz.org>
Fix bug #409557
2007-05-18 Vincent Untz <vuntz@gnome.org>
......@@ -436,7 +442,7 @@
* configure.in (ALL_LINGUAS): Added Dzongkha (dz).
2006-03-19 Jrmy Ar Floc'h <jeremy.lefloch@gmail.com>
2006-03-19 J?r?my Ar Floc'h <jeremy.lefloch@gmail.com>
* configure.in: Added Breton translation.
......@@ -1441,7 +1447,7 @@
* gnome-panel/gnome-panel-screenshot.glade: "use_filechooser"=TRUE to
use the new GtkFileChooser in GnomeFileEntry
2004-02-06 Tomasz Koczko <kloczek@pld.org.pl>
2004-02-06 Tomasz K?oczko <kloczek@pld.org.pl>
* gnome-panel/Makefile.am: Force generate $(CORBA_SRCLIST)
before $(panel_enum_headers) for paralel buil (make -j<N>).
......@@ -1456,7 +1462,7 @@
* applets/wncklet/workspace-switcher.c: Add documenter credit in
About dialog. Fix bug #133588.
2004-02-05 Tomasz Koczko <kloczek@pld.org.pl>
2004-02-05 Tomasz K?oczko <kloczek@pld.org.pl>
* configure.in: Trivial cleanup: remove AC_SUBST(CFLAGS),
AC_SUBST(CPPFLAGS) and AC_SUBST(LDFLAGS). This variables are
......
......@@ -21,5 +21,6 @@ _GNOME_PANEL_ACTION Protocol
_GNOME_PANEL_ACTION_MAIN_MENU, ATOM
_GNOME_PANEL_ACTION_RUN_DIALOG, ATOM
_GNOME_PANEL_ACTION_KILL_DIALOG, ATOM
Unsupported actions are ignored by the panel.
2007-07-03 Bastien Nocera <hadess@hadess.net>
* panel-action-button.c: (panel_action_force_quit):
* panel-action-protocol.c: (panel_action_protocol_kill_dialog),
(panel_action_protocol_filter), (panel_action_protocol_init):
* panel-force-quit.c: (panel_force_quit):
* panel-force-quit.h: Add the _GNOME_PANEL_ACTION_KILL_DIALOG message
to allow a keybinding for the force quit dialogue to be added
(Closes: #442625)
2007-07-01 Vincent Untz <vuntz@gnome.org>
 
* button-widget.c: (button_widget_expose): add a detail for the arrow
......
......@@ -226,7 +226,8 @@ panel_action_search (GtkWidget *widget)
static void
panel_action_force_quit (GtkWidget *widget)
{
panel_force_quit (gtk_widget_get_screen (widget));
panel_force_quit (gtk_widget_get_screen (widget),
gtk_get_current_event_time ());
}
/* Connect Server
......
......@@ -42,6 +42,7 @@
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_kill_dialog = None;
static void
panel_action_protocol_main_menu (GdkScreen *screen,
......@@ -82,6 +83,13 @@ panel_action_protocol_run_dialog (GdkScreen *screen,
panel_run_dialog_present (screen, activate_time);
}
static void
panel_action_protocol_kill_dialog (GdkScreen *screen,
guint32 activate_time)
{
panel_run_dialog_present (screen, activate_time);
}
static GdkFilterReturn
panel_action_protocol_filter (GdkXEvent *gdk_xevent,
GdkEvent *event,
......@@ -107,6 +115,8 @@ panel_action_protocol_filter (GdkXEvent *gdk_xevent,
panel_action_protocol_main_menu (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 if (xevent->xclient.data.l [0] == atom_gnome_panel_action_kill_dialog)
panel_action_protocol_kill_dialog (screen, xevent->xclient.data.l [1]);
else
return GDK_FILTER_CONTINUE;
......@@ -136,6 +146,10 @@ panel_action_protocol_init (void)
XInternAtom (GDK_DISPLAY_XDISPLAY (display),
"_GNOME_PANEL_ACTION_RUN_DIALOG",
FALSE);
atom_gnome_panel_action_kill_dialog =
XInternAtom (GDK_DISPLAY_XDISPLAY (display),
"_GNOME_PANEL_ACTION_KILL_DIALOG",
FALSE);
gdk_display_add_client_message_filter (
display, gdk_atom_gnome_panel_action,
......
......@@ -273,7 +273,8 @@ popup_filter (GdkXEvent *gdk_xevent,
}
void
panel_force_quit (GdkScreen *screen)
panel_force_quit (GdkScreen *screen,
guint time)
{
GdkGrabStatus status;
GdkCursor *cross;
......@@ -288,7 +289,7 @@ panel_force_quit (GdkScreen *screen)
cross = gdk_cursor_new (GDK_CROSS);
status = gdk_pointer_grab (root, FALSE, GDK_BUTTON_PRESS_MASK,
NULL, cross, GDK_CURRENT_TIME);
NULL, cross, time);
gdk_cursor_unref (cross);
if (status != GDK_GRAB_SUCCESS) {
g_warning ("Pointer grab failed\n");
......@@ -296,7 +297,7 @@ panel_force_quit (GdkScreen *screen)
return;
}
status = gdk_keyboard_grab (root, FALSE, GDK_CURRENT_TIME);
status = gdk_keyboard_grab (root, FALSE, time);
if (status != GDK_GRAB_SUCCESS) {
g_warning ("Keyboard grab failed\n");
remove_popup (popup);
......
......@@ -29,7 +29,8 @@
G_BEGIN_DECLS
void panel_force_quit (GdkScreen *screen);
void panel_force_quit (GdkScreen *screen,
guint time);
G_END_DECLS
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment