Commit graph

531 commits

Author SHA1 Message Date
Bastien Nocera
9f107a4760 keyboard: Remove support code for GConf keybindings 2011-11-14 18:09:39 +00:00
Bastien Nocera
3207fe97ec keyboard: Remove support for loading 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
Florian Müllner
246a44ce6c keyboard: Stop monitoring num-workspaces
Metacity/Mutter no longer have conditional shortcuts depending on
the number of workspaces, so there is no need to monitor the
num-workspaces settings (and reload all keybindings).

https://bugzilla.gnome.org/show_bug.cgi?id=663431
2011-11-14 10:10:08 +00:00
Florian Müllner
be4e40bf99 keyboard: Remove support for conditional shortcuts
Keyboard shortcut definitions could specify a condition to determine
whether it should be shown in the UI or not. This was only used by
Metacity/Mutter, to make the visibility of some shortcuts depend on
the number of workspaces. However, as workspaces are now managed
dynamically in GNOME 3, the frequent changes to the list of shortcuts
have become rather confusing, so a fixed list of shortcuts is used now.

With the only consumer of conditional shortcuts gone, there's no reason
to keep the feature around.

https://bugzilla.gnome.org/show_bug.cgi?id=663431
2011-11-11 18:58:46 +01:00
Bastien Nocera
314224ab3a keyboard: Rename a11y keyboard shortcuts
To match the design documents in:
https://live.gnome.org/Design/SystemSettings/Keyboard
and the feature names in the UA panel
2011-11-09 00:04:50 +00:00
Florian Müllner
7d060a2508 keyboard: Adjust shortcut files
Some keybindings have been moved from metacity/mutter to g-s-d;
update the shortcut files to reflect that change.

https://bugzilla.gnome.org/show_bug.cgi?id=663626
2011-11-08 15:59:04 +01:00
Bastien Nocera
6665b60422 panels: Update for Shell API changes 2011-11-07 18:03:14 +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
Bastien Nocera
8f78728dbc keyboard: Add label to toolbar buttons 2011-10-25 17:36:22 +01:00
Bastien Nocera
eacbe935d3 keyboard: Remove unused variable 2011-10-24 17:25:14 +01:00
Bastien Nocera
3d3cfa7304 keyboard: Check for NULL value first
Then try to access item->type
2011-10-20 15:53:25 +01:00
Bastien Nocera
cb5924adb1 keyboard: Remove broken allowed_keys checks
The only thing it was doing was disabling the add button,
which was promptly re-enabled when you selected the custom
shortcuts section.
2011-10-20 10:36:21 +01:00
Bastien Nocera
62cb5236b2 keyboard: Make the '+' button work all the time
We shouldn't need to select the "Custom Shortcuts" section
of the keyboard shortcuts before the add button is made sensitive.

Make it sensitive all the time, and switch to the section as needed.

https://bugzilla.gnome.org/show_bug.cgi?id=662253
2011-10-20 10:36:21 +01:00
Bastien Nocera
7575e38599 keyboard: Fix ATK description
As mentioned in:
https://bugzilla.gnome.org/show_bug.cgi?id=574073
2011-10-19 14:43:41 +01:00
Bastien Nocera
50093b49ff keyboard: Don't load duplicate keybindings
When building out of the main tree, it's useful not to have
duplicate keybindings showing up in the UI.
2011-10-12 16:14:14 +01:00
Bastien Nocera
2201807524 keyboard: Link directly to the layouts page
In the region panel, now that it supports switching pages.
2011-09-08 17:23:22 +01:00
Giovanni Campagna
1f9ae38c2f Add a way for panels to receive additional arguments.
This patch introduces the "argv" property to CcPanel. Panels that
wish to handle extra arguments shall override it and act
appropriately in the constructor.

https://bugzilla.gnome.org/show_bug.cgi?id=657093
2011-09-05 18:07:52 +02:00
Bastien Nocera
3d6145b2d5 keyboard: Use icon without a spanner
https://bugzilla.gnome.org/show_bug.cgi?id=657556
2011-08-28 19:28:21 +01:00
Bastien Nocera
456cd55839 keyboard: Simplify GtkBuilder calls 2011-08-26 18:31:52 +01:00
Bastien Nocera
0f4b481c91 keyboard: Add link to the Region panel
So that the layouts are easier to find.

https://bugzilla.gnome.org/show_bug.cgi?id=643101
2011-08-26 18:29:24 +01:00
Rodrigo Moya
159b81dd67 keyboard: Fix some alignment 2011-08-24 17:02:35 +02: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
Florian Müllner
8a858345a8 keyboard: Change precedence for schema in KeyList parser
Right now, if both KeyList and KeyListEntry contain a schema element,
the (global) one of the list wins. This makes it rather cumbersome
to mix keys of different schemas in a single list, as rather than
using a default schema and specifying a different one where necessary,
every key needs its own schema element.
A brief IRC discussion suggests that the current precedence didn't
trigger any particular issues before, and neither should changing
it - so do this to support above case.

https://bugzilla.gnome.org/show_bug.cgi?id=653685
2011-06-30 13:57:40 +02:00
Michael Terry
0a8669a5b5 Add Unity to OnlyShowIn fields
https://bugzilla.gnome.org/show_bug.cgi?id=653661
2011-06-30 12:44:52 +01:00
Bastien Nocera
4623be9c94 keyboard: Force "icons" toolbar style
https://bugzilla.gnome.org/show_bug.cgi?id=651595
2011-06-21 15:45:33 +01:00
Bastien Nocera
e02e7513d9 keyboard: Change tab label from "General" to "Typing"
https://bugzilla.gnome.org/show_bug.cgi?id=615206
2011-05-07 17:48:59 +01: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
83512fb6fe keyboard: Fix adding custom shortcuts
We need something other than "0" as an answer. Thanks for breaking
the responses glade.

https://bugzilla.gnome.org/show_bug.cgi?id=648187
2011-04-26 15:49:56 +01:00
Bastien Nocera
15c5d5a96e keyboard: Use correct base for unsetting custom shortcuts 2011-04-26 15:30:31 +01:00
Bastien Nocera
53f78eec0b keyboard: Always add the "Custom shortcuts" section
Even if it is empty by default.

https://bugzilla.gnome.org/show_bug.cgi?id=648091
2011-04-26 15:20:45 +01:00
Bastien Nocera
995be4e6f0 keyboard: Handle shortcuts conflict in different section
https://bugzilla.gnome.org/show_bug.cgi?id=646504
2011-04-13 12:51:54 +01:00
Bastien Nocera
0f3cf2286f keyboard: Use correct type for enum 2011-04-13 12:51:54 +01:00
Bastien Nocera
9d94d2dfae keyboard: Fix reloading keyboard shortcuts
When reloading entries, we also need to clear the section
hash tables, otherwise we won't be adding the keys as they
already exist in the hashtables.

Fixes empty keyboard shortcuts when creating a new workspace (eg.
moving any window to an empty workspace in gnome-shell)

https://bugzilla.gnome.org/show_bug.cgi?id=646949
2011-04-07 16:16:52 +01:00
Bastien Nocera
6dd3318b80 keyboard: Set repeat-interval correctly
This sets the repeat-interval key in milliseconds. From a minimum of
one char per 2 seconds up to 50 characters per second (as per
requirements listed in 84eed6b0cf).

https://bugzilla.gnome.org/show_bug.cgi?id=646241
2011-03-31 12:21:20 +01:00
Bastien Nocera
b7b1f9f4d0 keyboard: Correct labels for blinking speed
https://bugzilla.gnome.org/show_bug.cgi?id=645314
2011-03-20 16:59:21 +00:00
Cosimo Cecchi
27346dc87d keyboard: mark the scales as insensitive when the checkboxes are off
https://bugzilla.gnome.org/show_bug.cgi?id=645151
2011-03-18 13:23:20 -04:00
Cosimo Cecchi
92c3f6dd61 all: set the 'inline-toolbar' style class to toolbars which need it
https://bugzilla.gnome.org/show_bug.cgi?id=645059
2011-03-17 15:09:09 -04:00
Bastien Nocera
6c6c37609c keyboard: Fix crasher when num workspace changes
And the panel has already been closed.

https://bugzilla.gnome.org/show_bug.cgi?id=644784
https://bugzilla.redhat.com/show_bug.cgi?id=684368
2011-03-16 12:49:46 +00:00
Kjartan Maraas
24cfcd9a36 #include <config.h> to make translations work 2011-03-02 20:06:20 +01:00
Bastien Nocera
84eed6b0cf keyboard: Switch repeat rate/speed to be a fraction
Instead of settings the absolute value of the repeat rate in msecs
through the scale, we set the number of chars per sec, and
use GSettings' bindings functions to transform those a timeout.

https://bugzilla.gnome.org/show_bug.cgi?id=569612
2011-02-28 16:25:40 +00:00
Bastien Nocera
d65ee3490d keyboard: Implement "editing-canceled" property
Through sheer "pointless" cut'n'paste.

https://bugzilla.gnome.org/show_bug.cgi?id=642695
2011-02-24 05:37:25 +00:00
Bastien Nocera
a13cf931a9 keyboard: Rework stupid conflict detection code
https://bugzilla.gnome.org/show_bug.cgi?id=643124
2011-02-24 04:35:50 +00: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
Matthias Clasen
7a84244be5 Fix initial selection in the shortcuts pane
Change the selection mode for the left pane to browse, meaning
that one row is always selected, and select the first row
initially.

https://bugzilla.gnome.org/show_bug.cgi?id=643098
2011-02-24 03:23:59 +00:00
Matthias Clasen
efaffc1136 Don't exit prematurely
There was an accidental exit in the middle of shortcut setup
that caused us to not load custom shortcuts.

https://bugzilla.gnome.org/show_bug.cgi?id=643098
2011-02-24 03:23:58 +00:00
Bastien Nocera
c3b742af6f keyboard: Add a11y for magnifier zoom in/out 2011-02-23 16:47:46 +00:00