Ejemplo n.º 1
0
static void
indicator_workrave_class_init(IndicatorWorkraveClass *klass)
{
  GObjectClass *object_class = G_OBJECT_CLASS(klass);

  g_type_class_add_private(klass, sizeof(IndicatorWorkravePrivate));

  object_class->dispose = indicator_workrave_dispose;
  object_class->finalize = indicator_workrave_finalize;

  IndicatorObjectClass *io_class = INDICATOR_OBJECT_CLASS(klass);

  io_class->get_menu  = get_menu;
  io_class->get_image = get_icon;
  io_class->get_accessible_desc = get_accessible_desc;
}
Ejemplo n.º 2
0
static void indicator_fitbit_class_init(IndicatorFitbitClass *klass)
{
    GObjectClass *object_class = G_OBJECT_CLASS(klass);

    g_type_class_add_private(klass, sizeof(IndicatorFitbitPrivate));

    object_class->dispose = indicator_fitbit_dispose;
    object_class->finalize = indicator_fitbit_finalize;

    IndicatorObjectClass *io_class = INDICATOR_OBJECT_CLASS(klass);

    io_class->get_image = get_image;
    io_class->get_menu = get_menu;
    io_class->get_accessible_desc = get_accessible_desc;
    io_class->secondary_activate = indicator_fitbit_middle_click;
}
static void
dummy_indicator_simple_class_init (DummyIndicatorSimpleClass *klass)
{
	GObjectClass *object_class = G_OBJECT_CLASS (klass);

	object_class->dispose = dummy_indicator_simple_dispose;
	object_class->finalize = dummy_indicator_simple_finalize;

	IndicatorObjectClass * io_class = INDICATOR_OBJECT_CLASS(klass);

	io_class->get_label = get_label;
	io_class->get_image = get_icon;
	io_class->get_menu = get_menu;
	io_class->get_accessible_desc = get_accessible_desc;

	return;
}