GNOME Bugzilla – Bug 754944
Remove unnecessary callbacks from GtkClutterEmbed
Last modified: 2015-09-15 10:52:30 UTC
It turns out we don't need the map/unmap vfunc anymore :) Less code \o/
Created attachment 311226 [details] [review] embed: remove map/unmap vfunc Something I didn't quite realize is that the map vfunc is called : "when widget is going to be mapped" This is unnecessary now that we want to realize the stage only once the embedding widget is actually visible. We just need to listen to the "map-event" signal.
Review of attachment 311226 [details] [review]: Okay. ::: clutter-gtk/gtk-clutter-embed.c @@ +523,3 @@ | GDK_TOUCH_MASK + | GDK_SMOOTH_SCROLL_MASK + | GDK_STRUCTURE_MASK; This means we won't be receiving Configure events; is it intended? If so, I'd move it to a separate commit.
Created attachment 311317 [details] [review] embed: remove map/unmap vfunc Something I didn't quite realize is that the map vfunc is called : "when widget is going to be mapped" This is unnecessary now that we want to realize the stage only once the embedding widget is actually visible. We just need to listen to the "map-event" signal.
Review of attachment 311226 [details] [review]: ::: clutter-gtk/gtk-clutter-embed.c @@ +523,3 @@ | GDK_TOUCH_MASK + | GDK_SMOOTH_SCROLL_MASK + | GDK_STRUCTURE_MASK; Thanks, this shouldn't have been there. Splitting out.
Review of attachment 311317 [details] [review]: Looks good.
Review of attachment 311317 [details] [review]: Pushed to master.