After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 668310 - ephy-shell: don't use extensions in internal code
ephy-shell: don't use extensions in internal code
Status: RESOLVED DUPLICATE of bug 646597
Product: epiphany
Classification: Core
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-01-20 00:37 UTC by Diego Escalante Urrelo (not reading bugmail)
Modified: 2012-01-29 06:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ephy-shell: don't use extensions in internal code (9.29 KB, patch)
2012-01-20 00:37 UTC, Diego Escalante Urrelo (not reading bugmail)
rejected Details | Review

Description Diego Escalante Urrelo (not reading bugmail) 2012-01-20 00:37:23 UTC
This is an unsolved mystery I found while working in the libpeas migration.
I'd rather commit it separately, so here it is.

Basically, we are using EphyExtensions infra to attach lockdown and session recovery. This is overkill, a simple API is enough.
Comment 1 Diego Escalante Urrelo (not reading bugmail) 2012-01-20 00:37:25 UTC
Created attachment 205666 [details] [review]
ephy-shell: don't use extensions in internal code

ephy-session and ephy-lockdown don't need to be EphyExtension objects to
work properly. Just creating an attach/dettach API is enough for both.

Simplify code by turning both to regular code.
Comment 2 Xan Lopez 2012-01-20 09:55:02 UTC
Review of attachment 205666 [details] [review]:

Now you have to make sure you properly track the objects in EphyWindow, which seems a bit pointless? Besides it's not like this is a huge simplification to be honest. I'd not apply this.
Comment 3 Xan Lopez 2012-01-20 09:58:13 UTC
(In reply to comment #2)
> Review of attachment 205666 [details] [review]:
> 
> Now you have to make sure you properly track the objects in EphyWindow, which
> seems a bit pointless? Besides it's not like this is a huge simplification to
> be honest. I'd not apply this.

Perhaps this makes more sense because of whatever you did in your branch. If so please elaborate, I'm open to reconsidering.
Comment 4 Diego Escalante Urrelo (not reading bugmail) 2012-01-20 15:14:34 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Review of attachment 205666 [details] [review] [details]:
> > 
> > Now you have to make sure you properly track the objects in EphyWindow, which
> > seems a bit pointless? Besides it's not like this is a huge simplification to
> > be honest. I'd not apply this.
> 
> Perhaps this makes more sense because of whatever you did in your branch. If so
> please elaborate, I'm open to reconsidering.

I didn't see a reason for them to be extensions. I guess I can mimic this in peas.
Comment 5 Diego Escalante Urrelo (not reading bugmail) 2012-01-20 15:16:27 UTC
(In reply to comment #4)
> 
> I didn't see a reason for them to be extensions. I guess I can mimic this in
> peas.

That said, it might have been that I didn't find the way to do this with peas. Will check.
Comment 6 Diego Escalante Urrelo (not reading bugmail) 2012-01-20 16:36:35 UTC
OK, yes. libpeas doesn't load GObjects like EphyExtensionsManager did.
It only handles stuff it can find in the filesystem as loadable modules.

So, I'd rather do something similar to this patch than fight libpeas. What do you meant by properly track objects in EphyWindow? We only care for window creation and destruction.
Comment 7 Diego Escalante Urrelo (not reading bugmail) 2012-01-29 06:52:03 UTC
Marking duplicate of peas porting bug #646597

This is gonna happen as part of that, not individually.

*** This bug has been marked as a duplicate of bug 646597 ***