static void
adwaita_rc_style_class_init (AdwaitaRcStyleClass * klass)
{
  GtkRcStyleClass *rc_class = GTK_RC_STYLE_CLASS (klass);

  rc_class->create_style = adwaita_rc_style_create_style;
}
Exemple #2
0
static void cleanice_rc_style_class_init (CleanIceRCStyleClass * klass) {
  GtkRcStyleClass * rc_style_class = GTK_RC_STYLE_CLASS (klass);

  parent_class = g_type_class_peek_parent (klass);

  rc_style_class->merge = cleanice_rc_style_merge;
  rc_style_class->create_style = cleanice_rc_style_create_style;

  gtk_rc_parse_string ("style \"cleanice-main-defaults\" {\n"
		       "  GtkCheckButton::indicator-size = 10\n"
		       "  GtkPaned::handle-size = 9\n"
		       "} widget_class \"*\""
		       " style \"cleanice-main-defaults\"");

  gtk_rc_parse_string ("style \"cleanice-scales-defaults\" {\n"
		       "  GtkRange::slider-width = 20\n"
		       "  GtkScale::slider-length = 10\n"
		       "} widget_class \"*Scale*\""
		       " style \"cleanice-scales-defaults\"");

  gtk_rc_parse_string ("style \"cleanice-sbar-defaults\" {\n"
		       "  GtkRange::slider-width = 13\n"
		       "  GtkRange::stepper-size = 13\n"
		       "  GtkScrollbar::min-slider-length = 18\n"
		       "  GtkScrollbar::has_forward_stepper = 1\n"
		       "  GtkScrollbar::has_backward_stepper = 1\n"
		       "  GtkScrollbar::has_secondary_backward_stepper = 1\n"
		       "} widget_class \"*Scrollbar*\""
		       " style \"cleanice-sbar-defaults\"");
}
static void
mist_rc_style_class_init (MistRcStyleClass *klass)
{
	GtkRcStyleClass *rc_style_class = GTK_RC_STYLE_CLASS (klass);
	
	rc_style_class->parse = mist_rc_style_parse;
	rc_style_class->merge = mist_rc_style_merge;
	rc_style_class->create_style = mist_rc_style_create_style;
}
static void
dawati_rc_style_class_init (DawatiRcStyleClass *klass)
{
    GtkRcStyleClass *rc_style_class = GTK_RC_STYLE_CLASS (klass);

    rc_style_class->create_style = dawati_rc_style_create_style;
    rc_style_class->parse = dawati_rc_style_parse;
    rc_style_class->merge = dawati_rc_style_merge;
}
Exemple #5
0
static void
msw_rc_style_class_init (MswRcStyleClass *klass)
{
  GtkRcStyleClass *rc_style_class = GTK_RC_STYLE_CLASS (klass);

  parent_class = g_type_class_peek_parent (klass);

  rc_style_class->create_style = msw_rc_style_create_style;
}
static void
dwerg_rc_style_class_init(DwergRcStyleClass *klass)
{
    GtkRcStyleClass *rc_style_class = GTK_RC_STYLE_CLASS(klass);

    parent_class = g_type_class_peek_parent(klass);

    rc_style_class->parse = dwerg_rc_style_parse;
    rc_style_class->merge = dwerg_rc_style_merge;
    rc_style_class->create_style = dwerg_rc_style_create_style;
}
Exemple #7
0
    //______________________________________________________________________
    void RCStyle::classInit( OxygenRcStyleClass *klass )
    {

        GtkRcStyleClass *rcStyleClass( GTK_RC_STYLE_CLASS( klass ) );

        _parentClass = static_cast<GtkRcStyleClass*>(g_type_class_peek_parent( klass ) );

        rcStyleClass->create_style = createStyle;
        rcStyleClass->parse = parse;
        rcStyleClass->merge = merge;
    }
Exemple #8
0
static void
thinice_rc_style_class_init (ThiniceRcStyleClass *klass)
{
  GtkRcStyleClass *rc_style_class = GTK_RC_STYLE_CLASS (klass);
  GObjectClass *object_class = G_OBJECT_CLASS (klass);

  parent_class = g_type_class_peek_parent (klass);

  rc_style_class->parse = thinice_rc_style_parse;
  rc_style_class->merge = thinice_rc_style_merge;
  rc_style_class->create_style = thinice_rc_style_create_style;
}
Exemple #9
0
static void
rsvg_rc_style_class_init (RsvgRcStyleClass *klass)
{
  GtkRcStyleClass *rc_style_class = GTK_RC_STYLE_CLASS (klass);
  GObjectClass *object_class = G_OBJECT_CLASS (klass);

  parent_class = g_type_class_peek_parent (klass);

  rc_style_class->parse = rsvg_rc_style_parse;
  rc_style_class->merge = rsvg_rc_style_merge;
  rc_style_class->create_style = rsvg_rc_style_create_style;
  
  object_class->finalize = rsvg_rc_style_finalize;
}
static void
clearlooks_rc_style_class_init (ClearlooksRcStyleClass *klass)
{
	GtkRcStyleClass *rc_style_class = GTK_RC_STYLE_CLASS (klass);
#ifdef HAVE_WORKING_ANIMATION
	GObjectClass    *g_object_class = G_OBJECT_CLASS (klass);
#endif

	rc_style_class->parse = clearlooks_rc_style_parse;
	rc_style_class->create_style = clearlooks_rc_style_create_style;
	rc_style_class->merge = clearlooks_rc_style_merge;

#ifdef HAVE_WORKING_ANIMATION
	g_object_class->finalize = clearlooks_rc_style_finalize;
#endif
}
Exemple #11
0
static void
crux_rc_style_class_init (CruxRcStyleClass *klass)
{
  GtkRcStyleClass *rc_style_class;
  GObjectClass *object_class;

  rc_style_class = GTK_RC_STYLE_CLASS (klass);
  object_class = G_OBJECT_CLASS (klass);

  rc_parent_class = g_type_class_peek_parent (klass);

  rc_style_class->parse = &crux_parse_rc_style;
  rc_style_class->merge = &crux_rc_style_merge;
  rc_style_class->create_style = &crux_rc_style_create_style;

  object_class->finalize = crux_rc_style_finalize;
}
static void
clearlooks_rc_style_merge (GtkRcStyle *dest,
                           GtkRcStyle *src)
{
	ClearlooksRcStyle *dest_w, *src_w;
	ClearlooksRcFlags flags;

	GTK_RC_STYLE_CLASS (clearlooks_rc_style_parent_class)->merge (dest, src);

	if (!CLEARLOOKS_IS_RC_STYLE (src))
		return;

	src_w = CLEARLOOKS_RC_STYLE (src);
	dest_w = CLEARLOOKS_RC_STYLE (dest);

	flags = (~dest_w->flags) & src_w->flags;

	if (flags & CL_FLAG_STYLE)
		dest_w->style = src_w->style;
	if (flags & CL_FLAG_CONTRAST)
		dest_w->contrast = src_w->contrast;
	if (flags & CL_FLAG_RELIEFSTYLE)
		dest_w->reliefstyle = src_w->reliefstyle;
	if (flags & CL_FLAG_MENUBARSTYLE)
		dest_w->menubarstyle = src_w->menubarstyle;
	if (flags & CL_FLAG_TOOLBARSTYLE)
		dest_w->toolbarstyle = src_w->toolbarstyle;
	if (flags & CL_FLAG_FOCUS_COLOR)
		dest_w->focus_color = src_w->focus_color;
	if (flags & CL_FLAG_SCROLLBAR_COLOR)
		dest_w->scrollbar_color = src_w->scrollbar_color;
	if (flags & CL_FLAG_COLORIZE_SCROLLBAR)
		dest_w->colorize_scrollbar = src_w->colorize_scrollbar;
	if (flags & CL_FLAG_ANIMATION)
		dest_w->animation = src_w->animation;
	if (flags & CL_FLAG_RADIUS)
		dest_w->radius = src_w->radius;
	if (flags & CL_FLAG_HINT)
		dest_w->hint = src_w->hint;
	if (flags & CL_FLAG_DISABLE_FOCUS)
		dest_w->disable_focus = src_w->disable_focus;

	dest_w->flags |= src_w->flags;
}
static void
dawati_rc_style_merge (GtkRcStyle *adest,
                       GtkRcStyle *asrc)
{
    DawatiRcStyle *dest;
    DawatiRcStyle *src;
    gint state;

    /* chain up */
    GTK_RC_STYLE_CLASS (dawati_rc_style_parent_class)->merge (adest,
            asrc);

    /* we can't handle merge unless both src and dest are our class */
    if (!(DAWATI_IS_RC_STYLE (adest) &&
            DAWATI_IS_RC_STYLE (asrc)))
    {
        return;
    }

    dest = (DawatiRcStyle *) adest;
    src = (DawatiRcStyle *) asrc;

    if (!dest->radius_set)
    {
        dest->radius = src->radius;
        dest->radius_set = 1;
    }

    for (state = 0; state < 5; state++)
    {
        if (!dest->border_color_set[state] && src->border_color_set[state])
        {
            dest->border_color_set[state] = TRUE;
            dest->border_color[state] = src->border_color[state];
        }
    }

    if (!dest->shadow_set && src->shadow_set)
    {
        dest->shadow = src->shadow;
        dest->shadow_set = TRUE;
    }
}
static void
mist_rc_style_merge (GtkRcStyle * dest,
		     GtkRcStyle * src)
{
	GTK_RC_STYLE_CLASS (mist_rc_style_parent_class)->merge (dest, src);
}