-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
payg: Create PaygAddCreditDialog #745
Draft
jprvita
wants to merge
230
commits into
master
Choose a base branch
from
T31748
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If we get '' from the IM as the preedit string, it is pretty safe to handle it as "no preedit" altogether. (Cherry-picked from commit 286cfdc)
This is now done in the ClutterInputFocus for us, since https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1940. There is no need to duplicate this call, and it happens to cause undesired scrolling to content in some cases when this reset happens during a change in the IM focused client state. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4647 (Cherry-picked from commit 047691b)
If the preedit is in invisible state, the last preedit string that was sent around is already null, so there is no need to clear the preedit in that case. (Cherry-picked from commit 0177560)
Like the old Tweener API, ease() allows to transition multiple properties at once. If autoReverse or repeatCount are specified, they should apply to all transitions, but right now we only set them for the first one. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2007> (cherry picked from commit cc5cc0d)
…PI exists" Since we are past the 40 API change hurdle, it is safe to revert this commit. This reverts commit 1cefd58. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2010> (cherry picked from commit ff4ff66)
Windows from some applications, such as guake, are created as showing on all workspaces. When these windows are put on the workspaces via set_workspace_state() during construction, the first time the window is added to a workspace in the loop triggers the shell app tracker which then tries to move the window to its startup workspace. This makes the window unsticky which triggers another set_workspace_state() which tries to remove the window from all workspaces, but currently it is only on the first one and then adds it to the startup workspace. Once that is finished, the first set_workspace_state() continues adding the window to the remaining workspaces, despite the window now no longer having on_all_workspaces set to true. When the window is now unmanaged, the window according to its internal state is only found on the startup workspace, so it will only be removed from that. This causes the assertion to fail that checks that the window is no longer present on any workspace after this. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4720 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2014> (cherry picked from commit bc32a52)
Unlike g_warning() and friends, g_printerr() does not append a trailing newline. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4564 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2013> (cherry picked from commit 79f4489)
We currently ignore any error that may occur when calling the OpenExtensionPrefs D-Bus method. Right now such an error is highly unlikely, given that we already checked that we are running under gnome-shell and the extension in question exists and has prefs. We'll soon make sure that only one dialog is shown at any time, which is an error that we can realistically expect, so handle that properly. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4564 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2013> (cherry picked from commit 09ed1c5)
GTK4 relies entirely on refcounting for cleanup (that is, there is no longer a destroy() method that forces a dispose run regardless of the refcount). Unfortunately that makes cleanup harder in (some) language bindings, where an object may be kept alive implicitly by closures etc. Address this by releasing the hold count when the window is closed rather than when it is destroyed. This isn't the most elegant, but it ensure that the service doesn't get stuck if an extension doesn't carefully clean up everything in its prefs widget. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4564 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2013> (cherry picked from commit 4d2b008)
Showing multiple preference dialogs at the same time (for instance by repeated `gnome-extensions prefs` calls) may or may not work as expected, depending on whether any of the dialogs is modal or not (read: opened via the Extensions app). The easiest way to address this is to disallow more than a single dialog at the time. It's arguably also the more predictable behavior, and means extensions don't have to deal with inconsistent state caused by multiple dialogs. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4564 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2013> (cherry picked from commit b93342f)
The change unvealed a series of mutter bugs that for most users are worse than the issue that was fixed. So revert the change on stable branches until the mutter side is fixed. This reverts commit cd1102f. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2022>
The changes introduce crashes, so back out until we figure those out. This reverts commits ceee53a and 5d5bfe4. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2022>
Update NEWS. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2022>
This commit brings no functional change.
This commit brings no funcional changes.
PaygAddCreditDialog is a modal dialog for early code entry, to replace the notification widget currently in use. This also creates a PaygAddCreditDialog object from status/payg and adds a separate action to open it. https://phabricator.endlessm.com/T31748
This drops the ApplyCodeNotification class and the status menu entry that triggers it. It is being replaced by PaygAddCreditDialog. https://phabricator.endlessm.com/T31748
GeorgesStavracas
suggested changes
Apr 11, 2023
Rename _setMessage -> _setSuccessMessage, to make it clearer when that is used.
Close the dialog when a reset code is entered -- we don't want the dialog to survive over the lock screen shield.
I've addressed all comments up to this point, and fixed two small bugs:
|
Converted to draft so we don't accidentally merge with all the fixup commits -- I'll squash them later. Also, I'll experiment with Cassidy's suggestion in the ticket, and ask some feedback from Joana before this is ready for merging. |
No need to mention the inheritance in a comment, as it is pretty clear in the class declaration.
This currently does not work as expected. https://phabricator.endlessm.com/T31748
Added my non-working attempt at using a label that expands for the results messages. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PaygAddCreditDialog is a modal dialog for early code entry, to replace
the notification widget currently in use.
https://phabricator.endlessm.com/T31748