示例#1
0
文件: mx-frame.c 项目: jonnylamb/mx
static void
mx_frame_init (MxFrame *self)
{
    self->priv = FRAME_PRIVATE (self);

    g_signal_connect (self, "actor-added", G_CALLBACK (mx_frame_actor_added),
                      NULL);
    g_signal_connect (self, "actor-removed", G_CALLBACK (mx_frame_actor_removed),
                      NULL);
}
示例#2
0
static void
scroll_frame_init (ScrollFrame *frame)
{
  ScrollFramePrivate *priv;
  ClutterColor bg = {0x00, 0x00, 0x00, 0x00};

  priv = frame->priv = FRAME_PRIVATE (frame);
  priv->wk_hadj = webkit_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  priv->wk_vadj = webkit_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
}