Commit graph

18 commits

Author SHA1 Message Date
Tomas Bzatek
30c073ffee keyboard: Allocate required space for replacing a key shortcut
https://bugzilla.gnome.org/show_bug.cgi?id=670236
2012-02-20 11:20:35 +01:00
Bastien Nocera
7ca6df2452 keyboard: Fix shortcut always showing up empty
When starting afresh. The binding was never read from
GSettings on startup otherwise.

Spotted by Yanko Kaneti <yaneti@declera.com>
2011-11-25 11:58:43 +00:00
Bastien Nocera
9f107a4760 keyboard: Remove support code for GConf keybindings 2011-11-14 18:09:39 +00:00
Florian Müllner
656d0ee4b0 keyboard: Port custom shortcuts to GSettings
https://bugzilla.gnome.org/show_bug.cgi?id=625899
2011-11-14 18:09:39 +00:00
Bastien Nocera
df493ef93c keyboard: Use GTK+ to parse keys
Instead of some custom code

https://bugzilla.gnome.org/show_bug.cgi?id=663341
2011-11-04 17:00:39 +00:00
Bastien Nocera
6e99f7663a keyboard: Use GtkCellRendererAccel
Instead of custom code. This means loads of code we don't need
to maintain, whoo!
2011-10-27 16:25:35 +01:00
Florian Müllner
b72c71a970 keyboard: Support string array keybindings
Metacity/Mutter stores keybindings as string array to support multiple
bindings per action. Even though multiple bindings are not exposed in
the UI, support keybindings stored as string array by getting/setting
the first element of the array.

https://bugzilla.gnome.org/show_bug.cgi?id=653613
2011-06-30 13:57:40 +02:00
Florian Müllner
a6d3ad6af3 keyboard: Fix a small memory leak
Unless g_conf_client_get_string(), g_settings_get_string() always
returns a newly allocated string.

https://bugzilla.gnome.org/show_bug.cgi?id=653613
2011-06-30 13:57:40 +02:00
Bastien Nocera
3d5c7b65a6 keyboard: Avoid warnings when adding new shortcuts
We don't want to unset GConf watches if we didn't set them
in the first place.
2011-04-26 15:54:59 +01:00
Bastien Nocera
b77df51384 keyboard: Add _equal() helper function 2011-02-24 04:20:07 +00:00
Bastien Nocera
1961501680 keyboard: Fix stupidness when setting GConf keys
When setting a new binding in GConf, actually set something...
2011-02-24 04:19:19 +00:00
Bastien Nocera
52f8687c37 keyboard: Only listen to our own key
Rather than all the possible changes that could have happened in
the schemas.
2011-02-17 16:52:07 +00:00
Bastien Nocera
2bd214a1d4 keyboard: Fix memleaks in CcKeyboardItem 2011-02-17 13:00:30 +00:00
Bastien Nocera
fbe10dc98c keyboard: Remove some debug 2011-02-17 13:00:30 +00:00
Bastien Nocera
73f155eaac keyboard: Pass a gettext package when loading GConf
As GConf itself won't be passing us a translated entry by itself.

https://bugzilla.gnome.org/show_bug.cgi?id=576570
2011-02-17 13:00:30 +00:00
Bastien Nocera
27cf30ed54 keyboard: Add support for GSettings shortcuts 2011-02-16 18:00:38 +00:00
Bastien Nocera
6b5fa49cc6 keyboard: Don't update binding by hand
Let the CcKeyboardItem update keyval, keymask, etc. for us when
we set the binding value, instead of having us do it by hand.
2011-02-16 01:28:04 +00:00
Bastien Nocera
5c755904e1 keyboard: Clean up GConf handling
Move most of the horrible GConf monitoring code to a separate
GObject(-ish). While quite ugly, it's not as bad as the code that
used to be there before.

Also fix the setting of KeyEntry->model (or CcKeyboardItem->model now)
to be the correct model (eg. the shortcut model rather than the section
model)
2011-02-16 01:24:49 +00:00