コード例 #1
0
ファイル: mex-epg-grid.c プロジェクト: dudochkin-victor/mex
static void
mex_epg_grid_map (ClutterActor *actor)
{
  MexEpgGrid *grid = MEX_EPG_GRID (actor);
  MexEpgGridPrivate *priv = grid->priv;
  guint i, j;

  CLUTTER_ACTOR_CLASS (mex_epg_grid_parent_class)->map (actor);

  /* header */
  for (i = 0; i < priv->header->len; i++)
    {
      ClutterActor *header = g_ptr_array_index (priv->header, i);

      clutter_actor_map (header);
    }

  /* tiles */
  for (i = 0; i < priv->rows->len; i++)
    {
      GPtrArray *tiles = g_ptr_array_index (priv->rows, i);

      if (tiles == NULL)
        continue;

      for (j = 0; j < tiles->len; j++)
        {
          ClutterActor *tile = g_ptr_array_index (tiles, j);

          clutter_actor_map (tile);
        }
    }
}
コード例 #2
0
ファイル: mx-menu.c プロジェクト: jonnylamb/mx
static void
mx_menu_map (ClutterActor *actor)
{
    gint i;
    MxMenuPrivate *priv = MX_MENU (actor)->priv;

    CLUTTER_ACTOR_CLASS (mx_menu_parent_class)->map (actor);

    clutter_actor_map (priv->up_button);
    clutter_actor_map (priv->down_button);
    for (i = 0; i < priv->children->len; i++)
    {
        MxMenuChild *child = &g_array_index (priv->children, MxMenuChild,
                                             i);
        clutter_actor_map (CLUTTER_ACTOR (child->box));
    }

    /* set up a capture so we can close the menu if the user clicks outside it */
    priv->stage = clutter_actor_get_stage (actor);
    g_object_weak_ref (G_OBJECT (priv->stage), (GWeakNotify) stage_weak_notify,
                       actor);

    priv->captured_event_handler =
        g_signal_connect (priv->stage,
                          "captured-event",
                          G_CALLBACK (mx_menu_captured_event_handler),
                          actor);
}
コード例 #3
0
void
clutter_stage_win32_map (ClutterStageWin32 *stage_win32)
{
  clutter_actor_map (CLUTTER_ACTOR (stage_win32));
  clutter_actor_map (CLUTTER_ACTOR (stage_win32->wrapper));

  clutter_actor_queue_relayout (CLUTTER_ACTOR (stage_win32->wrapper));
}
コード例 #4
0
static void
penge_grid_view_map (ClutterActor *actor)
{
  PengeGridViewPrivate *priv = GET_PRIVATE (actor);

  CLUTTER_ACTOR_CLASS (penge_grid_view_parent_class)->map (actor);

  clutter_actor_map (priv->background);
  clutter_actor_map (priv->background_fade);
}
コード例 #5
0
ファイル: mx-expander.c プロジェクト: GunioRobot/mx
static void
mx_expander_map (ClutterActor *actor)
{
  MxExpanderPrivate *priv = MX_EXPANDER (actor)->priv;
  ClutterActorClass *parent_parent_class = g_type_class_peek_parent (mx_expander_parent_class);

  CLUTTER_ACTOR_CLASS (parent_parent_class)->map (actor);

  clutter_actor_map (priv->label);
  clutter_actor_map (priv->arrow);
}
コード例 #6
0
static void
penge_calendar_pane_map (ClutterActor *actor)
{
  PengeCalendarPanePrivate *priv = GET_PRIVATE (actor);

  if (CLUTTER_ACTOR_CLASS (penge_calendar_pane_parent_class)->map)
    CLUTTER_ACTOR_CLASS (penge_calendar_pane_parent_class)->map (actor);

  clutter_actor_map (CLUTTER_ACTOR (priv->events_header_table));
  clutter_actor_map (CLUTTER_ACTOR (priv->events_pane));
  clutter_actor_map (CLUTTER_ACTOR (priv->tasks_header_table));
  clutter_actor_map (CLUTTER_ACTOR (priv->tasks_pane));
}
コード例 #7
0
ファイル: st-scroll-bar.c プロジェクト: Jem777/Cinnamon
static void
st_scroll_bar_map (ClutterActor *actor)
{
  StScrollBarPrivate *priv = ST_SCROLL_BAR (actor)->priv;

  CLUTTER_ACTOR_CLASS (st_scroll_bar_parent_class)->map (actor);

  clutter_actor_map (priv->bw_stepper);
  clutter_actor_map (priv->fw_stepper);
  clutter_actor_map (priv->trough);

  if (priv->handle)
    clutter_actor_map (priv->handle);
}
コード例 #8
0
static void
mnb_fancy_bin_map (ClutterActor *actor)
{
  MnbFancyBinPrivate *priv = MNB_FANCY_BIN (actor)->priv;

  CLUTTER_ACTOR_CLASS (mnb_fancy_bin_parent_class)->map (actor);

  if (priv->child)
    clutter_actor_map (priv->child);
  if (priv->clone)
    clutter_actor_map (priv->clone);
  if (priv->real_child)
    clutter_actor_map (priv->real_child);
}
コード例 #9
0
ファイル: mx-combo-box.c プロジェクト: ebassi/mx
static void
mx_combo_box_map (ClutterActor *actor)
{
  MxComboBoxPrivate *priv = MX_COMBO_BOX (actor)->priv;

  CLUTTER_ACTOR_CLASS (mx_combo_box_parent_class)->map (actor);

  clutter_actor_map (priv->label);

  if (priv->icon)
    clutter_actor_map (priv->icon);

  if (priv->marker)
    clutter_actor_map (priv->marker);
}
コード例 #10
0
ファイル: mx-progress-bar.c プロジェクト: GunioRobot/mx
static void
mx_progress_bar_map (ClutterActor *actor)
{
  MxProgressBarPrivate *priv = MX_PROGRESS_BAR (actor)->priv;
  CLUTTER_ACTOR_CLASS (mx_progress_bar_parent_class)->map (actor);
  clutter_actor_map (priv->fill);
}
コード例 #11
0
ファイル: gmc-button.c プロジェクト: gcorvala/Media-Center
static void
gmc_button_map (ClutterActor *self)
{
  GmcButtonPrivate *priv;

  priv = GMC_BUTTON_GET_PRIVATE (self);

  CLUTTER_ACTOR_CLASS (gmc_button_parent_class)->map (self);

  if (priv->icon) {
    clutter_actor_map (priv->icon);
  }
  if (priv->label) {
    clutter_actor_map (priv->label);
  }
}
コード例 #12
0
static void
clutter_stage_wayland_show (ClutterStageWindow *stage_window,
			    gboolean            do_raise)
{
  ClutterStageWayland *stage_wayland = CLUTTER_STAGE_WAYLAND (stage_window);

  clutter_actor_map (CLUTTER_ACTOR (stage_wayland->wrapper));
}
コード例 #13
0
static void
mex_media_controls_map (ClutterActor *actor)
{
    MexMediaControlsPrivate *priv = MEX_MEDIA_CONTROLS (actor)->priv;

    CLUTTER_ACTOR_CLASS (mex_media_controls_parent_class)->map (actor);

    clutter_actor_map (priv->vbox);
}
コード例 #14
0
static void
mx_label_map (ClutterActor *actor)
{
  MxLabelPrivate *priv = MX_LABEL (actor)->priv;

  CLUTTER_ACTOR_CLASS (mx_label_parent_class)->map (actor);

  clutter_actor_map (priv->label);
}
コード例 #15
0
ファイル: mx-toggle.c プロジェクト: jlec/mx
static void
mx_toggle_map (ClutterActor *actor)
{
  MxTogglePrivate *priv = MX_TOGGLE (actor)->priv;

  CLUTTER_ACTOR_CLASS (mx_toggle_parent_class)->map (actor);

  clutter_actor_map (priv->handle);
}
コード例 #16
0
ファイル: mex-info-bar.c プロジェクト: tthef/media-explorer
static void
mex_info_bar_map (ClutterActor *actor)
{
  MexInfoBarPrivate *priv = MEX_INFO_BAR (actor)->priv;

  CLUTTER_ACTOR_CLASS (mex_info_bar_parent_class)->map (actor);

  clutter_actor_map (priv->group);
}
コード例 #17
0
static void
map (ClutterActor *self)
{
  ChamplainTilePrivate *priv = GET_PRIVATE (self);

  CLUTTER_ACTOR_CLASS (champlain_tile_parent_class)->map (self);

  clutter_actor_map (CLUTTER_ACTOR (priv->content_group));
}
コード例 #18
0
ファイル: st-widget.c プロジェクト: MarkieMark/gnome-shell
static void
st_widget_map (ClutterActor *actor)
{
  StWidgetPrivate *priv = ST_WIDGET (actor)->priv;

  CLUTTER_ACTOR_CLASS (st_widget_parent_class)->map (actor);

  st_widget_ensure_style ((StWidget*) actor);

  if (priv->border_image)
    clutter_actor_map (priv->border_image);

  if (priv->background_image)
    clutter_actor_map (priv->background_image);

  if (priv->tooltip)
    clutter_actor_map ((ClutterActor *) priv->tooltip);
}
コード例 #19
0
ファイル: ntf-tray.c プロジェクト: Cordia/dawati-shell
static void
ntf_tray_map (ClutterActor *actor)
{
  NtfTrayPrivate *priv = NTF_TRAY (actor)->priv;

  CLUTTER_ACTOR_CLASS (ntf_tray_parent_class)->map (actor);

  if (priv->notifiers)
    clutter_actor_map (CLUTTER_ACTOR (priv->notifiers));
}
コード例 #20
0
static void
mnb_zones_preview_map (ClutterActor *actor)
{
  GList *w;
  MnbZonesPreviewPrivate *priv = MNB_ZONES_PREVIEW (actor)->priv;

  CLUTTER_ACTOR_CLASS (mnb_zones_preview_parent_class)->map (actor);

  for (w = priv->workspace_bins; w; w = w->next)
    clutter_actor_map (CLUTTER_ACTOR (w->data));
}
コード例 #21
0
ファイル: clutter-stage-gdk.c プロジェクト: ebassi/clutter
static void
clutter_stage_gdk_show (ClutterStageWindow *stage_window,
                        gboolean            do_raise)
{
  ClutterStageGdk *stage_gdk = CLUTTER_STAGE_GDK (stage_window);

  g_return_if_fail (stage_gdk->window != NULL);

  clutter_actor_map (CLUTTER_ACTOR (CLUTTER_STAGE_COGL (stage_gdk)->wrapper));

  if (do_raise)
    gdk_window_show (stage_gdk->window);
  else
    gdk_window_show_unraised (stage_gdk->window);
}
コード例 #22
0
static void
clutter_stage_win32_show (ClutterStageWindow *stage_window,
                          gboolean            do_raise)
{
  ClutterStageWin32 *stage_win32 = CLUTTER_STAGE_WIN32 (stage_window);

  if (stage_win32->hwnd)
    {
      ShowWindow (stage_win32->hwnd, do_raise ? SW_SHOW : SW_SHOWNA);

      if (stage_win32->accept_focus)
        SetForegroundWindow (stage_win32->hwnd);

      clutter_actor_map (CLUTTER_ACTOR (stage_win32->wrapper));
    }
}
コード例 #23
0
static void
mex_clock_bin_map (ClutterActor *actor)
{
  ClutterActor *stage;
  MxFocusManager *manager;

  MexClockBinPrivate *priv = MEX_CLOCK_BIN (actor)->priv;

  CLUTTER_ACTOR_CLASS (mex_clock_bin_parent_class)->map (actor);

  clutter_actor_map (priv->clock_hbox);

  stage = clutter_actor_get_stage (actor);
  manager = mx_focus_manager_get_for_stage (CLUTTER_STAGE (stage));
  g_signal_connect (manager, "notify::focused",
                    G_CALLBACK (mex_clock_bin_notify_focused_cb), actor);
}
コード例 #24
0
ファイル: clutter-stage-x11.c プロジェクト: UIKit0/clutter
static void
clutter_stage_x11_show (ClutterStageWindow *stage_window,
                        gboolean            do_raise)
{
  ClutterStageX11 *stage_x11 = CLUTTER_STAGE_X11 (stage_window);
  ClutterStageCogl *stage_cogl = CLUTTER_STAGE_COGL (stage_x11);
  ClutterBackendX11 *backend_x11 = CLUTTER_BACKEND_X11 (stage_cogl->backend);

  if (stage_x11->xwin != None)
    {
      if (do_raise && !stage_x11->is_foreign_xwin)
        {
          CLUTTER_NOTE (BACKEND, "Raising stage[%lu]",
                        (unsigned long) stage_x11->xwin);
          XRaiseWindow (backend_x11->xdpy, stage_x11->xwin);
        }

      if (!STAGE_X11_IS_MAPPED (stage_x11))
        {
          CLUTTER_NOTE (BACKEND, "Mapping stage[%lu]",
                        (unsigned long) stage_x11->xwin);

          set_stage_x11_state (stage_x11, STAGE_X11_WITHDRAWN, 0);

          update_wm_hints (stage_x11);

          if (stage_x11->fullscreening)
            clutter_stage_x11_set_fullscreen (stage_window, TRUE);
          else
            clutter_stage_x11_set_fullscreen (stage_window, FALSE);
        }

      g_assert (STAGE_X11_IS_MAPPED (stage_x11));

      clutter_actor_map (CLUTTER_ACTOR (stage_cogl->wrapper));

      if (!stage_x11->is_foreign_xwin)
        XMapWindow (backend_x11->xdpy, stage_x11->xwin);
    }
}
コード例 #25
0
ファイル: IoClutterActor.c プロジェクト: Akiyah/io
IO_METHOD(IoClutterActor, map) {
  clutter_actor_map(IOCACTOR(self));
  return self;
}