Skip to content
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

Merged
merged 5 commits into from
Jan 18, 2023
Merged

Access: Minor Rework #62

merged 5 commits into from
Jan 18, 2023

Conversation

Marukesu
Copy link
Contributor

@Marukesu Marukesu commented Jan 15, 2023

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.

@Marukesu Marukesu requested a review from a team January 15, 2023 13:48
@danirabbit danirabbit mentioned this pull request Jan 15, 2023
4 tasks
@danirabbit
Copy link
Member

@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.
@Marukesu Marukesu changed the title Access: Pre-Gtk4 Rework Access: Minor Rework Jan 15, 2023
@Marukesu
Copy link
Contributor Author

@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 () {
Copy link
Member

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?

Copy link
Contributor Author

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).

@danirabbit danirabbit merged commit 70a4c6c into main Jan 18, 2023
@danirabbit danirabbit deleted the maru/access branch January 18, 2023 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants