-
-
Notifications
You must be signed in to change notification settings - Fork 48
ProcessInfoView: Preventer → Granite.MessageDialog #447
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
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
|
Agree on everything except the replacement "preventer" with a Granite.MessageDialog. |
|
@stsdc yes 100%. If the action is something that needs confirmation then messagedialog is the standard way to do that and it needs to have more explanation of why you're requesting to confirm |
|
|
||
| confirmation_dialog.response.connect ((response) => { | ||
| if (response == Gtk.ResponseType.ACCEPT) { | ||
| // TODO: maybe add a toast that process killed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm inclined toward adding a toast or notification before merging, instead of leaving it to another request. For Shutdown, it's important that the user knows whether or not the request was successfully fulfilled, or if they need to think about Force Quitting instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was already a leftover TODO from main. I'm not adding any functionality here. I'd prefer to leave that to a follow up since I didn't introduce that problem in this branch
|
@danirabbit OK. But I would apply this change to gtk4-port branch. |
|
@stsdc I would prefer to get it in first so we don't have to port the Preventer to Gtk4 and create a bunch of conflicts since you can't subclass Stack in GTK4 😅 |
|
ah, ok. Didn't know about this limitation. I will properly review tomorrow and align gtk4 branch accordingly. Thanks @danirabbit! |
|
@stsdc haha yeah that was my motivation is I was going to make a GTK4 prep branch for Preventer that doesn't subclass Stack and then I was like "Wait a minute, this should be messagedialog anyways" |
wpkelso
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me for UX
Replaces the "preventer" stack-based width with Granite.MessageDialog
KilltoForce Quitto avoid violent languageSuggestedorDestructiveshould be used for a selection of buttons