]> err.no Git - libchamplain/commitdiff
Actually show is not working, realize happens in every cases
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 20 May 2009 22:56:50 +0000 (18:56 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 20 May 2009 22:56:50 +0000 (18:56 -0400)
champlain-gtk/champlain-view-embed.c

index 12121a0407da3b5abf058352247d286c8ef5dbdd..c30c1494536829d542ff756fb08b366324e2b40f 100644 (file)
@@ -64,7 +64,7 @@ static gboolean mouse_button_cb (GtkWidget *widget, GdkEventButton *event,
     ChamplainViewEmbed *view);
 static void view_size_allocated_cb (GtkWidget *widget,
     GtkAllocation *allocation, ChamplainViewEmbed *view);
-static void view_show_cb (GtkWidget *widget,
+static void view_realize_cb (GtkWidget *widget,
     ChamplainViewEmbed *view);
 
 G_DEFINE_TYPE (ChamplainViewEmbed, champlain_view_embed, GTK_TYPE_ALIGNMENT);
@@ -171,8 +171,8 @@ champlain_view_embed_init (ChamplainViewEmbed *embed)
                     G_CALLBACK (view_size_allocated_cb),
                     embed);
   g_signal_connect (priv->clutter_embed,
-                    "show",
-                    G_CALLBACK (view_show_cb),
+                    "realize",
+                    G_CALLBACK (view_realize_cb),
                     embed);
   g_signal_connect (priv->clutter_embed,
                     "button-press-event",
@@ -195,7 +195,7 @@ champlain_view_embed_init (ChamplainViewEmbed *embed)
 }
 
 static void
-view_show_cb (GtkWidget *widget,
+view_realize_cb (GtkWidget *widget,
     ChamplainViewEmbed *view)
 {
   ChamplainViewEmbedPrivate *priv = view->priv;