Commit Graph

44057 Commits

Author SHA1 Message Date
Matthias Clasen
df5c1e3b42 Simplify action handling
We don't need a separate flag to track the presence of
the show-help-overlay action, and we can just create the
action directly.
2015-10-21 06:31:27 -04:00
Matthias Clasen
0d1cbcda6e Add an automatic help overlay to gtk3-widget-factory
This is just to verify that the resource loading works.
The help overlay still needs to get populated properly.
2015-10-21 00:14:38 -04:00
Matthias Clasen
2867a7dfa3 Add automatic help overlay support to GtkApplication
When the $(resource_prefix)/gtk/help-overlay.ui resource exists,
load a GtkShortcutsWindow from it for each GtkApplicationWindow,
and set up a win.show-help-overlay action with accels <Primary>F1
and <Primary>? to show it.
2015-10-21 00:11:59 -04:00
Matthias Clasen
d0db025058 shortcuts: Set window type hint
Setting the type hint to dialog gives gnome-shell the push it
needs to present the window nicely.
2015-10-20 23:57:27 -04:00
Matthias Clasen
deeaa94a50 shortcuts: Allow page switching with touch
Allow horizontal pans to switch between pages in the shortcuts window.
2015-10-20 22:59:46 -04:00
Matthias Clasen
08e12b9241 shortcuts: Add key bindings to switch pages
Allow both Page Up/Down and Ctrl-Page Up/Down to switch between
pages in the shortcuts window.
2015-10-20 22:38:34 -04:00
Matthias Clasen
f674b26d80 shortcuts: Add mnemonics for pages
Allow Alt-1, Alt-2 and so forth, to switch pages in the shortcuts
window.
2015-10-20 22:20:18 -04:00
Matthias Clasen
3539a2fd0c shortcuts: Make 'Show All' a normal button
The toggle button was somewhat awkward in that it jumped out
underneath the pointer if you toggled it. Instead, make it a normal
button that disappears when it is clicked.
2015-10-20 22:12:59 -04:00
Matthias Clasen
5c8674b66e Drop remaining internal API
If we do this API-less, lets go all the way.
2015-10-16 16:54:31 -04:00
Matthias Clasen
7343cec577 Finish up help overlay work
This commit makes the various types public and adds documentation.
2015-10-16 16:01:28 -04:00
Matthias Clasen
b787772c14 Restructure the shortcuts demo
Splitting things in individual ui files will make it easier to
reuse this content in the docs.
2015-10-16 11:48:23 -04:00
Matthias Clasen
6137a3c707 fix the build 2015-10-16 10:58:42 -04:00
Matthias Clasen
691f0d617e Balance the clocks shortcuts demo better
We have a max-height property that can be used to influence
the packing of the columns, use it.
2015-10-16 10:47:55 -04:00
Matthias Clasen
51bf0f8f6e shortcuts: Fix a typo
We were removing the wrong widget from the size group here, causing
warnings now that we actually move these widgets between columns and
thereby change their size groups.
2015-10-16 10:46:59 -04:00
Matthias Clasen
6f9a39c883 Reflow shortcuts sections when needed
When the section gets filtered by view, we need to reflow the
groups to avoid partially filled pages and columns that look
odd.
2015-10-16 10:46:10 -04:00
Matthias Clasen
d99f2be837 Major changes
Drop the explicit page and column classes and markup, and create
the necessary structures on the fly. Also drop the custom markup
and just use standard GtkBuilder markup for everything.
2015-10-14 01:15:04 -04:00
Matthias Clasen
337f4e8f95 Fix an oversight in ensuring search item uniqueness
We were using a guaranteed-to-be-NULL string instead of the
one we were actually meaning to use.
2015-10-13 18:47:51 -04:00
Matthias Clasen
03ef1adfb3 Add window title 2015-10-13 18:31:08 -04:00
Matthias Clasen
cb9df7cbe4 Beef up the shortcuts demo more
Add the GEdit window from the mockups.
2015-10-13 09:03:19 -04:00
Matthias Clasen
2e3e788b0b Hide the bottom box in sections until needed
This avoids some extraneous whitespace.
2015-10-13 08:58:15 -04:00
Matthias Clasen
7993feccf5 Beef up the shortcuts example more
Add separate buttons for showing the full and filtered Clocks
example, and make the buttons work more than once.
2015-10-13 08:28:50 -04:00
Matthias Clasen
0226669e14 Simplify shortcuts demo
No need to specify the initial section explicitly anymore.
2015-10-13 08:16:24 -04:00
Matthias Clasen
a281a6f159 Improve the section name handling
Make it so that you don't have to explicitly specify the initial
section in the ui file - the first one will be shown initially in
that case.

Also fix the case where the section-name property is specified
before the sections are added.
2015-10-13 08:14:09 -04:00
Matthias Clasen
821505dd47 Add section filtering by view
This adds the "Show All" button that can be seen in the mockups.
2015-10-13 07:40:08 -04:00
Matthias Clasen
5040c0d650 More updates to the shortcuts demo
Mark all groups in the clocks example with views.
2015-10-13 07:38:09 -04:00
Matthias Clasen
bfd9579dcd Rename some private classes
GtkShortcutsView is now GtkShortcutsSection to better match
the terminology in the design.
2015-10-13 00:37:15 -04:00
Matthias Clasen
3511ef4960 shortcuts: Add an empty search page
Show a nice page when no shortcuts are found.
2015-10-13 00:28:11 -04:00
Matthias Clasen
555de3dcb6 Improve shortcuts window title handling
With a single section, avoid the dropdown and just say
"Shortcuts" in the window title. Also, make "Search Results"
a simple window title.
2015-10-13 00:01:42 -04:00
Matthias Clasen
22bc951195 Use alternative accelerators in the shortcuts demo 2015-10-12 23:41:36 -04:00
Matthias Clasen
b47094c81d Allow alternative accelerators
Allow showing multiple accelerators as alternatives for a single
action, by putting them both in the accelerator property, separated
by a space.
2015-10-12 22:33:51 -04:00
Matthias Clasen
7905ee8bcc Use a better glyph for space
Unicode has ␣, lets use it.
2015-10-12 12:44:52 -04:00
Matthias Clasen
54c4961278 Beef up the shortcuts window demo more
Add more of the complications seen in mockups.
2015-10-12 12:40:56 -04:00
Matthias Clasen
56438b21a6 shortcut label: Improve accelerator formatting
This change decouples the formatting we do here from the one
done for accel labels. With this change, Ctrl+Left is rendered
as expected in the shortcuts window.
2015-10-11 19:19:49 -04:00
Matthias Clasen
508f5b2175 gtk-demo: Beef up the shortcuts demo
Add a second shortcuts window with some more complicated accelerators,
which are currently not handled perfectly, such as Ctrl+Left.
2015-10-11 19:19:49 -04:00
Matthias Clasen
8cccd9eece Add some docs 2015-10-11 19:19:49 -04:00
Matthias Clasen
3eee39b59e Add gtkshortcutswindow.h to gtk.h
This was forgotten in the initial commit.
2015-10-11 18:55:22 -04:00
Matthias Clasen
916235523e builder: Support creating GFile objects
This is useful, e.g. when creating GFileIcon objects.
2015-10-11 18:54:27 -04:00
Matthias Clasen
d1cf4946ae gtk-demo: Add a GtkShortcutsWindow demo
This is directly copied from gnome-builder, so it shows its
shortcuts.
2015-10-11 16:48:08 -04:00
Matthias Clasen
6deeffca3b Add some styling for GtkShortcutsWindow
Add some keycap frame around keysyms, and make the stack switcher
buttons rounds. This is very provisional.
2015-10-11 16:41:30 -04:00
Matthias Clasen
a900b445e7 Add GtkShortcutsWindow
This is a toplevel window that is tailored towards showing
help for shortcuts in an application.

This implementation is shamelessly stolen from gnome-builder,
thanks to Christian Hergert.
2015-10-11 16:39:18 -04:00
Timm Bäder
7aa2bfdc77 Add gtk-query-settings
A small utility binary to query all properties of GtkSettings.

https://bugzilla.gnome.org/show_bug.cgi?id=756174
2015-10-10 17:29:15 -04:00
Benjamin Otte
bddc524cd8 stylecontext: Make sure style is valid when looking up style properties
Otherwise, the validation may happen vey automatically some time during
the style property and that will most likely cause a crash.

https://bugzilla.gnome.org/show_bug.cgi?id=756338
2015-10-10 23:23:34 +02:00
Lapo Calamandrei
74e02842bb Adwaita: osd spinbutton fixes 2015-10-10 17:42:40 +02:00
Lapo Calamandrei
b2d379a340 Adwaita: stop consider buttons on osd 'linked'
we used to consider every button inside osd containers linked,
this is not true anymore, now those buttons behave normally.
This will clearly cause breakage in applications.
2015-10-09 16:30:54 +02:00
Felipe Borges
70f577251f gtkprintoperation: job names must not exceed 255 chars
According to http://datatracker.ietf.org/doc/rfc2911/, The 'name'
attribute syntax is essentially the same as 'text', including the
REQUIRED support of UTF-8 except that the sequence of characters
is limited so that its encoded form MUST NOT exceed 255 (MAX) octets.

CUPS will not print jobs with names exceeding 255 characters.

https://bugzilla.gnome.org/show_bug.cgi?id=755988
2015-10-09 10:51:26 +02:00
Matthias Clasen
5548665351 im context simple: Add documentation
Document that GtkIMContextSimple is loading additional compose
tables. Also document Ctrl-Shift-u.
2015-10-09 00:19:41 -04:00
Takao Fujiwara
a41f02f9b1 GtkIMContextSimple: Load locale compose tables dynamically.
Load /usr/share/X11/locale/$LOCALE/Compose and $HOME/.XCompose
dynamically.

https://bugzilla.gnome.org/show_bug.cgi?id=721120
2015-10-09 00:19:41 -04:00
Takao Fujiwara
138187755f Add gtk_compose_table_new_with_file() to create GtkComposeTable
https://bugzilla.gnome.org/show_bug.cgi?id=721120
2015-10-09 00:19:41 -04:00
Takao Fujiwara
4535d09bea GtkIMContextSimple: Change guint to guint16 in gtkimcontextsimple.c
GtkComposeTable and GtkComposeTableCompact use guint16 for the data.

https://bugzilla.gnome.org/show_bug.cgi?id=721120
2015-10-08 22:35:52 -04:00
Takao Fujiwara
48a2477f2d GtkIMContextSimple: export _gtk_check_compact_table() and GtkComposeTable
Some functions need to be exported if X11 compose files are loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=721120
2015-10-08 22:35:52 -04:00