Re: A problem about Metacity
- From: Rob Adams <readams readams net>
- To: desktop-devel-list gnome org
- Subject: Re: A problem about Metacity
- Date: Tue, 09 Mar 2004 08:39:06 -0800
If you want to know how to set these keybindings: you can use the
keyboard shortcut control panel applet, or edit them with gconf-editor
in /apps/metacity.
If you want to know how the code works: gnome-panel is the process that
displays the run dialog and the panel menu, but metacity is the one that
handles the keyboard shortcuts. Metacity and gnome-panel implement a
gnome-internal protocol whereby metacity sends a message to gnome-panel
which says "please pop up menu" or "please launch run dialog". Most
keyboard bindings simply call a function in metacity internally.
-Rob
On Tue, 2004-03-09 at 15:21 +0800, g.x.w wrote:
> Hi,
>
> I have read metacity source codes,I want to know Metacity how to bind Alt+F1 to popup start menu and Alt+F2 to run run-dialog.
>
> The process: main.c[ main() ] -> display.c[ meta_display_open() ] -> display.c[ event_callback() ] -> keybindings.c[ meta_display_process_key_event() ] ->keybindings.c[ handle_panel_keybinding() ].
>
>
> but I still can't understant that Metacity catchs Alt+F1 or Alt+F2,then send a X event to destination window,but how to associate with start menu or run-dialog like pressing button.
>
>
> Any help or suggestions would be appreciated.
>
> Thanks
>
> _______________________________________________
> desktop-devel-list mailing list
> desktop-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/desktop-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]