GNOME Bugzilla – Bug 603450
crash when middle clicking bookmarks-in-toolbar
Last modified: 2009-12-31 04:19:43 UTC
this is it:
+ Trace 219388
Thread 1 (Thread 0xb4d70760 (LWP 16022))
Using gtk+, epiphany, webkit, glib and libsoup from git master.
Created attachment 149113 [details] [review] Don't use deprecated GtkButton API In 82a5da33 we removed usage of gtk_button_pressed and gtk_button_released however replacing those for g_signal_emit calls of button-press-event and button-release-event. This however caused a crash on middle clicking of elements in the toolbar. To fix this we use g_signal_emit with pressed and released signals, these two are deprecated signals, though. There doesn't seem to be a way to trigger button pressed/released animation without the pressed/released *deprecated* signals or functions, so this is our best solution for now. Bug #603450
Xan reintroduced the gtk_button_pressed/released API calls due to the crash, although didn't notice this bug. I committed this patch since it keeps our functionality without crashing but removes the deprecated GTK+ symbols. Note that the signals are deprecated anyway but GTK+ doesn't offer us a way to do what we need to. Attachment 149113 [details] pushed as 7df0ef5 - Don't use deprecated GtkButton API
(In reply to comment #2) > Xan reintroduced the gtk_button_pressed/released API calls due to the crash, > although didn't notice this bug. I committed this patch since it keeps our > functionality without crashing but removes the deprecated GTK+ symbols. > > Note that the signals are deprecated anyway but GTK+ doesn't offer us a way to > do what we need to. First of all this patch was committed without asking, please don't do that. Second, if the signals are also deprecated how does this improve anything? We are just silencing the warnings but still using deprecated APIs, so we'll probably forget about this until the APIs are removed or something. I think we have to either open a GTK+ bug and put FIXMEs in the code pointing there, or revert this so it's very clear to everyone that we are using deprecated APIs (which might force us to, say, rethink things to stop using this functionality altogether in case it's possible). > > Attachment 149113 [details] pushed as 7df0ef5 - Don't use deprecated GtkButton API
If you revert notice that ephy-link-action also uses the deprecated api. I understand that using g_signal_emit instead of gtk_button_* api while it silences the warnings it allows for building with disable_deprecated. Good point about forgetting though... shame on me :-) We are using pressed and released to trigger the animation of -redundancy- button pressed/released. I doubt we have the -public- api for that.
*** Bug 605178 has been marked as a duplicate of this bug. ***
*** Bug 605240 has been marked as a duplicate of this bug. ***
This has been fixed for some time now...