Commit graph

53 commits

Author SHA1 Message Date
Jeremy Bicha
681f40ca09 keyboard: Use ellipsis for "Reset All"
https://bugzilla.gnome.org/show_bug.cgi?id=778568
2017-02-14 19:09:33 +01:00
Georges Basile Stavracas Neto
818024970c keyboard: add a reset all button
As described in the proposed mockups [1], the Keyboard panel
should have a Reset All button above the list of shortcuts that
allows the user to quickly reset all the shortcuts to their
default keybinding. The current implementation, however, lacks
this button.

Fix that by adding a "Reset All" button, and implementing the
reset all action. A message dialog is shown in order to confirm
the action, and custom shortcuts are not reset (unless the conflict
with the default keybinding of another standard shortcut).

[1] https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/system-settings/keyboard/keyboard-wires.png

https://bugzilla.gnome.org/show_bug.cgi?id=777840
2017-01-31 09:57:59 -02:00
Georges Basile Stavracas Neto
83555219bb keyboard: make the entire panel scrollable
The current Keyboard panel allows only the shortcut list to scroll.
Since we want to add more widgets above the list, and we want them
to scroll out of sight per the latest mockups [1], making only the
shortcut list scrollable poses a problem.

Fix that by making the entire panel scrollable.

[1] https://github.com/gnome-design-team/gnome-mockups/blob/master/system-settings/keyboard/keyboard-wires.png

https://bugzilla.gnome.org/show_bug.cgi?id=777840
2017-01-31 09:57:59 -02:00
Georges Basile Stavracas Neto
faef0353f3 shortcuts: remove bottom label
https://bugzilla.gnome.org/show_bug.cgi?id=769314
2016-09-08 17:12:17 +02:00
Georges Basile Stavracas Neto
b39bc93600 keyboard: fix list sizes with latest Gtk+
Gtk+ changed again the behavior of the scrolled window,
fixing the weird height issue but introducing a new issue
where the keyboard shortcut list doesn't expand horizontally
nor allocates the correct size vertically.

Fortunately, this is easily solvable with the newly introduced
GtkScrolledWindow:propagate-natural-width and -height
properties.

Fix the misbehavior by setting the new properties to sane
values.

https://bugzilla.gnome.org/show_bug.cgi?id=769314
2016-09-07 14:26:29 +02:00
Georges Basile Stavracas Neto
ab8721fc04 keyboard: add search support
Based on the latest mockups, the Keyboard panel would
benefit from a search functionality.

This patch add all the necessary UI and functions to
make the search work. Worth noticing that the current
implementation still doesn't work with search-as-you-type,
which'll be addressed on a future fix.

https://bugzilla.gnome.org/show_bug.cgi?id=769063
2016-07-29 13:48:31 -03:00
Georges Basile Stavracas Neto
a0a155884e keyboard: introduce CcKeyboardShortcutEditor
The current CcKeyboardPanel used to manage keyboard
editing through GtkCellRendererAccel, which was replaced
when we moved to use a GtkListBox. Because of that,
the ability to edit shortcuts is now missing.

Re-add shortcut editing capabilities through a new dialog,
which is done according to the latest mockups available.

https://bugzilla.gnome.org/show_bug.cgi?id=769063
2016-07-29 13:43:47 -03:00
Georges Basile Stavracas Neto
847fe447da keyboard: remove the shortcuts treeview
After porting the shortcuts management entirely to
GtkListBox, the current treeview is not necessary
anymore.

This patch removes the shortcuts treeview and all
the related functions, and separates the treeviews
from the underlying models.

https://bugzilla.gnome.org/show_bug.cgi?id=769063
2016-07-29 13:43:47 -03:00
Georges Basile Stavracas Neto
fd3044272e keyboard: show shortcuts in a listbox
Replace the current treeview with the new listbox. This
patch simply adds the listbox, and does not remove the
treeview yet.

https://bugzilla.gnome.org/show_bug.cgi?id=769063
2016-07-29 13:43:47 -03:00
Georges Basile Stavracas Neto
c4e1ca2ee0 keyboard: show all shortcuts in a single treeview
Move away from the old sections sidebar, by merging all
the shortcuts in the treeview and removing the sections
treeview.

https://bugzilla.gnome.org/show_bug.cgi?id=769063
2016-07-29 13:43:47 -03:00
Georges Basile Stavracas Neto
d940d7bb5d keyboard: make it a template class
To allow a much easier porting to the new layout, the keyboard
panel is now a template class. That has various implications on
the code organization:

 - The keyboard-shortcuts.c was responsible for filling the shortcuts.
   Because it relied on the GtkBuilder of the panel, most of its code
   was moved to the CcKeyboardPanel class.
 - The unused code from the keyboard panel class had to be removed in
   order to make it work again.
 - All the hash tables and widgets are now part of the CcKeyboardPanel
   structure.
 - The interface elements have a single entry point.

https://bugzilla.gnome.org/show_bug.cgi?id=769063
2016-07-29 13:43:47 -03:00
Georges Basile Stavracas Neto
ce08134c2b keyboard: remove deprecated GtkHBox and GtkVBox
These classes are deprecated by Gtk+ and should be replaced
by vertical and/or horizontal GtkBoxes.

This commit replaces the usage of the deprecated box classes.

https://bugzilla.gnome.org/show_bug.cgi?id=769063
2016-07-26 11:25:25 -03:00
Bastien Nocera
1f192985ef keyboard: Remove general tab
The cursor blinking and repeat keys configuration options have moved to
the Universal Access panel, with the shortcuts panel due for a
re-design.

See https://bugzilla.gnome.org/show_bug.cgi?id=757486
See https://bugzilla.gnome.org/show_bug.cgi?id=757464

https://bugzilla.gnome.org/show_bug.cgi?id=757489
2015-11-04 13:20:01 +01:00
Marcus Karlsson
fe9fe99439 keyboard: custom shortcut should require name and command
It is possible to press the Add button in the custom shortcut dialog
when the name and command fields are empty. Disable the button by
default, and only enable it when the name and command is non-empty.

https://bugzilla.gnome.org/show_bug.cgi?id=739647
2015-02-10 13:50:17 +01:00
Lapo Calamandrei
caf76dc4c5 keyboard: remove superfluous frame
See https://bugzilla.gnome.org/show_bug.cgi?id=739818
2014-11-10 20:04:54 +01:00
Frédéric Péters
b36685f9a8 keyboard: allow shortcut explanation text to wrap
https://bugzilla.gnome.org/show_bug.cgi?id=736966
2014-09-22 22:09:53 +02:00
Kalev Lember
c5c870a558 keyboard: Port shortcuts tab to GtkGrid
https://bugzilla.gnome.org/show_bug.cgi?id=709057
2014-08-15 14:45:31 +02:00
Kalev Lember
c3d2631a9a keyboard: Port typing tab to GtkGrid
https://bugzilla.gnome.org/show_bug.cgi?id=709057
2014-08-15 14:45:31 +02:00
Kalev Lember
34d145b40d keyboard: Port custom shortcut dialog to GtkGrid
https://bugzilla.gnome.org/show_bug.cgi?id=709057
2014-08-15 14:45:31 +02:00
Yosef Or Boczko
3758203a12 keyboard: Use header bar in the custom shortcut dialog
https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:18 +03:00
Yosef Or Boczko
29881b48a8 keyboard: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:30:28 +02:00
Rui Matos
640cdb4c47 keyboard: Remove unused toplevel window from .ui file
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:02 +02:00
Rui Matos
96ce117514 keyboard: Relabel link button, 'Layout Settings' -> 'Input Sources' 2013-02-19 12:25:55 +01:00
Chow Loong Jin
83bcac8cad keyboard: Allow key repeat rate of 110 chars/sec
This reverts a small unrelated change of commit
84eed6b0cf, since there are people who do prefer
using a key repeat rate above the current limit of 50 chars/sec.

https://bugzilla.gnome.org/show_bug.cgi?id=688405
2013-01-08 11:52:06 +01:00
Matthias Clasen
3d27d8caaf shell: Fittsify panels
Make it possible for panels to go all the way to the edge of the
shell. This is particularly important for panels that scroll, such
as the new power panel. All other panels are changed to compensate
for the loss of external padding.

https://bugzilla.gnome.org/show_bug.cgi?id=691229
2013-01-07 10:51:29 +01:00
Stéphane Démurget
0e7192e676 keyboard: Improve shortcuts tab keynav
The default focus traversal order inside the shortcuts tab was: the
shortcuts treeview, the section treeview and the shortcuts toolbar.

We set a focus cycle chain to swap the treeviews order for the keynav to
be more natural.

https://bugzilla.gnome.org/show_bug.cgi?id=690387
2012-12-18 11:32:19 +01:00
Piotr Drąg
d521bf0693 keyboard: Improve contexts for ambiguous strings
https://bugzilla.gnome.org/show_bug.cgi?id=684336
2012-10-09 10:17:46 +02:00
Bastien Nocera
2d3fabeeb3 keyboard: Remove italics
https://bugzilla.gnome.org/show_bug.cgi?id=669070
2012-01-31 17:30:39 +00:00
Bastien Nocera
8f78728dbc keyboard: Add label to toolbar buttons 2011-10-25 17:36:22 +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
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
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
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
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
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
William Jon McCann
05f7a4b1f4 keyboard: align bottoms of panes in a neater way
https://bugzilla.gnome.org/show_bug.cgi?id=642629
2011-02-17 17:05:04 -05:00
William Jon McCann
886d871893 keyboard: don't expand tables vertically
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=642625
2011-02-17 16:59:45 -05:00
William Jon McCann
437b2cfb40 keyboard: improve the layout of the bindings page
Limit size of sections view and keep the key column the same size.
2011-02-02 20:00:31 -05:00
Bastien Nocera
9a1bdb4a30 keyboard: Align the scales
Make sure the scales in the keyboard panel are aligned by adding
them all to GtkSizeGroups.

https://bugzilla.gnome.org/show_bug.cgi?id=605501
2011-01-31 21:20:09 +00:00
Matthias Clasen
4d3aee8904 keyboard: make scales functional
Without adjustments, nothing gets drawn and no change is possible.
The boundaries for these adjustments were taking from the 2.32 branch.
2011-01-25 22:54:04 -05:00
Kjartan Maraas
0ec577167e Remove a string from translation. 2011-01-25 20:26:02 +01:00
William Jon McCann
83baa91474 keyboard: make the shortcut dialog a bit more like the mockups
- No horizontal scroll
 - No info icon
 - Use toolbar for add/remove
2011-01-17 19:48:39 -05:00
William Jon McCann
b7c658c064 Add orientation properties to help out glade 2011-01-17 19:48:39 -05:00
Rodrigo Moya
a635c0b646 keyboard: Less padding for scrolled windows 2010-12-09 17:02:41 +01:00
Rodrigo Moya
f6f580b9ee keyboard: Show keybindings for the selected section 2010-12-09 17:02:41 +01:00
Rodrigo Moya
ae26a638bc keyboard: Display sections in a separate treeview 2010-12-09 17:02:41 +01:00
Rodrigo Moya
5e9f57bd9d keyboard: Add new treeview for showing shortcuts' sections 2010-12-09 17:02:41 +01:00