GNOME Bugzilla – Bug 771229
Security indicator broken in application mode
Last modified: 2016-09-17 04:24:45 UTC
In gutting EphyTitleBox, I broke the security indicator in web app mode. It no longer displays the security popover when clicked. Turns out ephy_title_box_button_press_event is never called, even though I retained the call to gtk_widget_add_events in ephy_title_box_constructed. Some more debugging required.
It's because EphyTitleBox no longer has a GdkWindow; it can't receive events.
The following fix has been pushed: 40ae894 title-box: Fix clicking on security indicator
Created attachment 335745 [details] [review] title-box: Fix clicking on security indicator It doesn't work because EphyTitleBox is now a GtkBox instead of a GtkStack, so it no longer has a GdkWindow and cannot receive events anymore. We need to use a GtkEventBox. The simplest solution is to pack just the GtkImage into the event box, but I had trouble positioning the popover properly with that strategy. Next easiest solution is to turn the EphyTitleBox itself into a GtkEventBox. This works nicely.
The following fix has been pushed: f0ae95e title-box: Fixup for previous commit
Created attachment 335746 [details] [review] title-box: Fixup for previous commit Introduced an unused variable
The following fix has been pushed: 3fd2f7a title-box: Another fixup for the previous commit
Created attachment 335749 [details] [review] title-box: Another fixup for the previous commit The parent_instance type is wrong... how did it possibly work?