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

Connect button-press signal handlers on plugin activation #639

Merged
merged 2 commits into from Nov 1, 2017

Conversation

eht16
Copy link
Member

@eht16 eht16 commented Oct 29, 2017

If the plugin gets activated after Geany has been started already,
we need to iterate all open documents and attach the "button-press"
signal handler.

Fixes #638.

If the plugin gets activated *after* Geany has been started already,
we need to iterate all open documents and attach the "button-press"
signal handler.

Fixes geany#638.
@frlan
Copy link
Member

frlan commented Oct 29, 2017

Not sure wether it's layer 8 issue but when deactivating the plugin again, it's still marking

/* if the plugin is loaded while Geany is already running, we need to connect the
* button press signal for open documents, if Geany is just booting,
* it happens automatically */
if (main_is_realized())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this check for priv->enable_markword too, not to do that on deactivation as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhhh, of course, thanks. Stupid me. Fixed in 71e26d8.

@eht16
Copy link
Member Author

eht16 commented Oct 29, 2017

@frlan details on reproducing? Even without 71e26d8 it doesn't mark anything after deactivation.

@frlan
Copy link
Member

frlan commented Oct 30, 2017

Hmmm. Weird. I'm pretty sure I tested it with a clean version. Will retest it with latest HEAD of that branch later and give feedback. Maybe just another layer 8 issue on my end :(

@frlan
Copy link
Member

frlan commented Nov 1, 2017

Ah... Was an issue with automark-plugin.

@frlan frlan merged commit 3b17e53 into geany:master Nov 1, 2017
@eht16 eht16 deleted the issue638_addons_fix_initialization branch August 23, 2020 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants