[clutter-gtk] embed: remove map/unmap vfunc
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gtk] embed: remove map/unmap vfunc
- Date: Tue, 15 Sep 2015 10:51:35 +0000 (UTC)
commit 4f12486e4f25a62f2347ab250bba69811487ac7d
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Tue Sep 15 00:56:56 2015 +0100
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.
https://bugzilla.gnome.org/show_bug.cgi?id=754944
clutter-gtk/gtk-clutter-embed.c | 25 -------------------------
1 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/clutter-gtk/gtk-clutter-embed.c b/clutter-gtk/gtk-clutter-embed.c
index 21050d0..061e62c 100644
--- a/clutter-gtk/gtk-clutter-embed.c
+++ b/clutter-gtk/gtk-clutter-embed.c
@@ -779,29 +779,6 @@ gtk_clutter_embed_unmap_event (GtkWidget *widget,
return res;
}
-static void
-gtk_clutter_embed_map (GtkWidget *widget)
-{
- GtkClutterEmbed *embed = GTK_CLUTTER_EMBED (widget);
- GtkClutterEmbedPrivate *priv = embed->priv;
-
-
- GTK_WIDGET_CLASS (gtk_clutter_embed_parent_class)->map (widget);
-
- gtk_clutter_embed_ensure_stage_realized (embed);
-}
-
-static void
-gtk_clutter_embed_unmap (GtkWidget *widget)
-{
- GtkClutterEmbed *embed = GTK_CLUTTER_EMBED (widget);
- GtkClutterEmbedPrivate *priv = embed->priv;
-
- GTK_WIDGET_CLASS (gtk_clutter_embed_parent_class)->unmap (widget);
-
- gtk_clutter_embed_stage_unrealize (embed);
-}
-
static gboolean
gtk_clutter_embed_focus_in (GtkWidget *widget,
GdkEventFocus *event)
@@ -1118,8 +1095,6 @@ gtk_clutter_embed_class_init (GtkClutterEmbedClass *klass)
widget_class->realize = gtk_clutter_embed_realize;
widget_class->unrealize = gtk_clutter_embed_unrealize;
widget_class->show = gtk_clutter_embed_show;
- widget_class->map = gtk_clutter_embed_map;
- widget_class->unmap = gtk_clutter_embed_unmap;
widget_class->map_event = gtk_clutter_embed_map_event;
widget_class->unmap_event = gtk_clutter_embed_unmap_event;
widget_class->focus_in_event = gtk_clutter_embed_focus_in;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]