2
* keybinder for Cairo-Dock
4
* Copyright : (C) 2008 Cedric GESTES, Havoc Pennington and Tim Janik
5
* E-mail : ctaf42@gmail.com
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 3
10
* of the License, or (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
* http://www.gnu.org/licenses/licenses.html#GPL
2
** cairo-dock-keybinder.c
3
** Login : <ctaf42@localhost.localdomain>
4
** Started on Thu Jan 31 03:57:17 2008 Cedric GESTES
8
** - Cedric GESTES <ctaf42@gmail.com>
12
** Copyright (C) 2008 Cedric GESTES
13
** This program is free software; you can redistribute it and/or modify
14
** it under the terms of the GNU General Public License as published by
15
** the Free Software Foundation; either version 3 of the License, or
16
** (at your option) any later version.
18
** This program is distributed in the hope that it will be useful,
19
** but WITHOUT ANY WARRANTY; without even the implied warranty of
20
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
** GNU General Public License for more details.
23
** You should have received a copy of the GNU General Public License
24
** along with this program; if not, write to the Free Software
25
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
27
* imported from tomboy_keybinder.c
79
88
caps_lock_mask | scroll_lock_mask,
80
89
num_lock_mask | caps_lock_mask | scroll_lock_mask,
84
93
for (i = 0; i < G_N_ELEMENTS (mod_masks); i++) {
86
95
XGrabKey (GDK_WINDOW_XDISPLAY (rootwin),
277
286
Binding *binding;
278
287
gboolean success;
289
cd_debug ("%s (%s)", __func__, keystring);
282
292
binding = g_new0 (Binding, 1);
283
293
binding->keystring = g_strdup (keystring);
284
294
binding->handler = handler;
285
295
binding->user_data = user_data;
287
297
/* Sets the binding's keycode and modifiers */
288
cd_debug ("%s", keystring);
289
298
success = do_grab_key (binding);
303
312
cd_keybinder_unbind (const char *keystring,
304
313
CDBindkeyHandler handler)
315
cd_debug ("%s (%s)", __func__, keystring);