libhandy merge requestshttps://source.puri.sm/Librem5/libhandy/-/merge_requests2020-05-20T11:46:08Zhttps://source.puri.sm/Librem5/libhandy/-/merge_requests/453HighContrast2020-05-20T11:46:08ZAlexander MikhaylenkoHighContrastFixes https://source.puri.sm/Librem5/libhandy/-/issues/221Fixes https://source.puri.sm/Librem5/libhandy/-/issues/221https://source.puri.sm/Librem5/libhandy/-/merge_requests/458Split shared css2020-05-20T11:12:09ZAlexander MikhaylenkoSplit shared css* Remove all "inessential" styles from `shared.css`, leaving only the rules without which layout breaks
* Introduce `fallback.css`, move things such as leaflet shadow there, so they can be overridden externally
* Move window corners spec...* Remove all "inessential" styles from `shared.css`, leaving only the rules without which layout breaks
* Introduce `fallback.css`, move things such as leaflet shadow there, so they can be overridden externally
* Move window corners specifically to Adwaita styles. This leaves random themes with glitchy corners, but not like they aren't broken already.https://source.puri.sm/Librem5/libhandy/-/merge_requests/459adwaita: Fix nested list bottom rounding2020-05-20T08:15:01ZAdrien Plazasadwaita: Fix nested list bottom roundingFixes https://source.puri.sm/Librem5/libhandy/issues/271.Fixes https://source.puri.sm/Librem5/libhandy/issues/271.https://source.puri.sm/Librem5/libhandy/-/merge_requests/455Rel v0.80.02020-05-19T14:13:28ZAdrien PlazasRel v0.80.0Adrien PlazasAdrien Plazashttps://source.puri.sm/Librem5/libhandy/-/merge_requests/457navigation-direction: Add HdyDeck in doc2020-05-19T10:37:10ZAdrien Plazasnavigation-direction: Add HdyDeck in docThis slso suggests to see the docs for HdyDeck and HdyLeaflet.This slso suggests to see the docs for HdyDeck and HdyLeaflet.https://source.puri.sm/Librem5/libhandy/-/merge_requests/451glade: Adapt to 3.36 release2020-05-15T17:16:02ZAlberto Fanjul Alonsoglade: Adapt to 3.36 releaseChanges needed for new 3.36 glade release
https://mail.gnome.org/archives/ftp-release-list/2020-May/msg00014.html
fixes #267 Changes needed for new 3.36 glade release
https://mail.gnome.org/archives/ftp-release-list/2020-May/msg00014.html
fixes #267 https://source.puri.sm/Librem5/libhandy/-/merge_requests/454Adding new example apps using libhandy.2020-05-14T14:42:45ZlouibAdding new example apps using libhandy.Adding 2 applications to the example apps using libhandy.Adding 2 applications to the example apps using libhandy.https://source.puri.sm/Librem5/libhandy/-/merge_requests/452Separate public and private enums2020-05-11T17:34:51ZAdrien PlazasSeparate public and private enumsThis avoids leaking private enums in the public API, e.g.
StackableBoxTransitionType here.This avoids leaking private enums in the public API, e.g.
StackableBoxTransitionType here.https://source.puri.sm/Librem5/libhandy/-/merge_requests/408replace deprecated Dialer with Keypad in example.py2020-05-11T16:04:22ZUjjwal Kumarreplace deprecated Dialer with Keypad in example.pyFixes: #201 Fixes: #201 https://source.puri.sm/Librem5/libhandy/-/merge_requests/450debian: Drop handy-1-examples's dep on libhandy-0.0-02020-05-11T10:01:03ZAdrien Plazasdebian: Drop handy-1-examples's dep on libhandy-0.0-0It of course needs libhandy-1-0, which is automatically added.
Fixes https://source.puri.sm/Librem5/libhandy/issues/261
CC @guido.guntherIt of course needs libhandy-1-0, which is automatically added.
Fixes https://source.puri.sm/Librem5/libhandy/issues/261
CC @guido.guntherhttps://source.puri.sm/Librem5/libhandy/-/merge_requests/447Glade support (mostly)2020-05-07T11:07:19ZAlexander MikhaylenkoGlade support (mostly)This adds proper Glade support for most libhandy widgets and fixes a few bugs along the way.
More specifically:
General fixes:
* `HdyActionRow`
* Implement `remove()`
* Fix an unrelated bug that allowed adding null prefixe...This adds proper Glade support for most libhandy widgets and fixes a few bugs along the way.
More specifically:
General fixes:
* `HdyActionRow`
* Implement `remove()`
* Fix an unrelated bug that allowed adding null prefixes
* `HdyExpanderRow`
* Implement `remove()`
* Fix `forall()` so that it actually iterates children you add
* `HdyPreferencesWindow`
* Implement `remove()` and `forall()`
* `HdyPreferencesPage`
* Implement `remove()` and `forall()`
* Subclass `GtkBin` instead of `GtkScrolledWindow`
* `HdyPreferencesGroup`
* Implement `remove()` and `forall()`
* Subclass `GtkBin` instead of `GtkBox`
* `HdyStackableBox`
* Don't hide last visible child when unfolded, this obviously causes children to disappear :x
* Unset last visible child after removing or hiding, this prevents some interesting crashes when removing multiple children in a row
* Disconnect `notify::visible` signal handler after removing a child
* `HdyColumn`
* Queue resize after changing maximum width
* `HdyViewSwitcher`
* Subclass `GtkBin` instead of `GtkBox`, this fixes a crash in Glade
Glade:
* Update the dtd, there are a bunch of elements that we didn't use previously
* Add `GladeHdyUtils` to at least slightly reduce code duplication
* `HdyViewSwitcherTitle`
* Use proper display names for the policy enum
* `HdyCarousel`
* Use `GladeHdyUtils`
* Add a synthetic `position` child property for reordering
* `HdyPreferencesGroup`
* Mark propeties as translatable
* `HdyHeaderBar`
* Copy `GtkHeaderBar` adaptor
* `HdySearchBar`
* Copy `GtkSearchBar` adaptor
* `HdyColumn`
* Use saner defaults, see #98
* `HdyLeaflet`/`HdyDeck`
* Add an adaptor based on `GtkStack`.
* Add a synthetic `position` child property for reordering
* `HdyPreferencesWindow`
* Add an adaptor. Since we can't use placeholders, use an `Add page` action + create 3 pages by default + a synthetic `position` child property
* `HdyPreferencesPage`
* Same as `HdyPreferencesWindow`, except page -> group
* `HdyExpanderRow`
* Add an adaptor based on `GtkListBox`. Have a `position` child prop too.https://source.puri.sm/Librem5/libhandy/-/merge_requests/449expander-row: Some code simplification and prevent show_all()2020-05-06T07:03:32ZAdrien Plazasexpander-row: Some code simplification and prevent show_all()Fixes https://source.puri.sm/Librem5/libhandy/issues/257.Fixes https://source.puri.sm/Librem5/libhandy/issues/257.https://source.puri.sm/Librem5/libhandy/-/merge_requests/448Fix acknowledge typo in build doc2020-04-21T23:36:11ZlouibFix acknowledge typo in build dochttps://source.puri.sm/Librem5/libhandy/-/merge_requests/445Random fixes2020-04-15T14:24:08ZAlexander MikhaylenkoRandom fixeshttps://source.puri.sm/Librem5/libhandy/-/merge_requests/446Update Glade support + fix bugs encountered along the way2020-04-15T13:46:57ZAlexander MikhaylenkoUpdate Glade support + fix bugs encountered along the way* List HdyAvatar
* List HdyKeypad
* Filed #251
* List HdyViewSwitcherTitle
* ~~There are some breaking bugs, but that's preexisting problems from HdyViewSwitcher~~ Nevermind, it actually works :p
* List HdyDeck
* Can't add c...* List HdyAvatar
* List HdyKeypad
* Filed #251
* List HdyViewSwitcherTitle
* ~~There are some breaking bugs, but that's preexisting problems from HdyViewSwitcher~~ Nevermind, it actually works :p
* List HdyDeck
* Can't add children to it properly, but that's a preexisting problem with leaflet
* List HdyWindowHandle
* List HdyWindow
* This one required some glue code to be able to add children properly...
* ...and a dtd update
* Noticed and fixed a bug with show_all()
* Noticed that we allowed to add >1 children. Fixed
* Noticed that we included the HdyNothing into foreach(). Fixed
* This triggered #244 badly, fixed
* List HdyApplicationWindow, see HdyWindow
* Re-sort HdyCarousel, it wasn't moved during the renamehttps://source.puri.sm/Librem5/libhandy/-/merge_requests/302glade: Add a Glade+libhandy flatpak manifest2020-04-15T12:55:40ZAdrien Plazasglade: Add a Glade+libhandy flatpak manifestThis will help using (and testing) libhandy with Glade.This will help using (and testing) libhandy with Glade.https://source.puri.sm/Librem5/libhandy/-/merge_requests/353HdyDeck2020-04-15T09:31:14ZAlexander MikhaylenkoHdyDeckAs mentioned in #28, I would prefer to have a simple property in `HdyLeaflet` that would force it into folded mode. Otherwise we would end up with a lot of code duplication, which is... This.
```
~/Projects/libhandy wc -l src/hdy-...As mentioned in #28, I would prefer to have a simple property in `HdyLeaflet` that would force it into folded mode. Otherwise we would end up with a lot of code duplication, which is... This.
```
~/Projects/libhandy wc -l src/hdy-stack*
2511 src/hdy-stack.c
63 src/hdy-stack.css
74 src/hdy-stack.h
2648 total
```
It's more or less `HdyLeaflet` with box bits removed and with things renamed back to what they are called in `GtkStack`.
In the demo, it's used in the complex dialog example.
Fixes #28
CC @adrien.plazas1.0https://source.puri.sm/Librem5/libhandy/-/merge_requests/430Make rows handle their activatability2020-04-11T20:32:48ZAdrien PlazasMake rows handle their activatabilityThis makes `HdyActionRow` and `HdyComboRow` unactivatable by default, and make them activatable automatically when it makes sense.
This also fixes the activatability of some rows in the demo and some code style issues.This makes `HdyActionRow` and `HdyComboRow` unactivatable by default, and make them activatable automatically when it makes sense.
This also fixes the activatability of some rows in the demo and some code style issues.1.0https://source.puri.sm/Librem5/libhandy/-/merge_requests/444example: Fix a typo on the HdyWindow page2020-04-09T22:25:59ZAlexander Mikhaylenkoexample: Fix a typo on the HdyWindow pageSigned-off-by: Alexander Mikhaylenko <alexm@gnome.org>Signed-off-by: Alexander Mikhaylenko <alexm@gnome.org>https://source.puri.sm/Librem5/libhandy/-/merge_requests/433Unified window2020-04-09T19:38:57ZAlexander MikhaylenkoUnified window* [x] Decide on title areas API and implement it, see https://gitlab.gnome.org/GNOME/gtk/issues/2242
* [x] Try to optimize the masking further
* [x] Figure out something for default titlebars
* [x] Figure out something for `GtkApplica...* [x] Decide on title areas API and implement it, see https://gitlab.gnome.org/GNOME/gtk/issues/2242
* [x] Try to optimize the masking further
* [x] Figure out something for default titlebars
* [x] Figure out something for `GtkApplicationWindow` menubars (document they are unsupported)
* [x] Figure out something for server-side decorations (that's not supported case, but it shouldn't glitch out still)
* [x] Docs
* [x] Tests (though there's just _new() in each class, so not much)
* [x] Figure out something for dialogs (!434 drops them)
* [x] Reorganize the example to actually take advantage of this
* [x] Figure out what to do wrt leaflet+titlebar (!439)
* [x] Window crashes with no children (!440)
I have a titlebar widget in the [Vala prototype](https://gitlab.gnome.org/exalm/unified-window) that I didn't port over yet, because I don't particularly like the API. Tried to catch Company today unsuccessfully to discuss it, so it's blocked on that :)
Fixes #231