-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Access: Minor Rework #62
Conversation
@Marukesu can you resolve conflicts here? |
all the dbus handling is done in the portal already, let the register_id there instead of creating an full property for it in the dialog.
let the construct method deal only with the dialog construction
since the keybind is trigged by a user action, react to it as such by sending an cancel response back to the caller
this way, we don't miss if Close is called before we export the dialog
we can only fall here if the path the caller expect us to use is already used by an previous call, or different portal. since we cannot do much here, we forward the error to the caller. since falling to register the dialog don't cause issues to the portal daemon, the critical is replaced by a warning.
@danirabbit done |
@@ -75,27 +73,28 @@ public class Access.Dialog : Granite.MessageDialog { | |||
|
|||
custom_bin.orientation = Gtk.Orientation.VERTICAL; | |||
custom_bin.spacing = 6; | |||
} | |||
|
|||
public override void show () { |
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.
Can you explain why it's better to override show
than to connect to realize
? Is there an issue that this fixes?
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 don't think this should change the current behaviour, this is more a organization/simplification change (separate widget code from windowing code, reduce the number of functions used).
Some minimal changes to the access classes, the more siginificant one is that we don't set skip_taskbar_hint anymore since that is a X11-only feature and actually could make find the dialog a bit hader if it was open as non-modal and another window take focus.