GtkStyleContext *context;
GtkStylePrivate *priv;
+ if (shadow_type == GTK_SHADOW_NONE)
+ return;
+
if (widget)
context = gtk_widget_get_style_context (widget);
else
else
{
gtk_render_background (context, cr, x, y, width, height);
- gtk_render_frame (context, cr, x, y, width, height);
+
+ if (shadow_type != GTK_SHADOW_NONE)
+ gtk_render_frame (context, cr, x, y, width, height);
}
cairo_restore (cr);
GtkStylePrivate *priv;
GtkStateFlags flags = 0;
+ if (shadow_type == GTK_SHADOW_NONE)
+ return;
+
if (widget)
context = gtk_widget_get_style_context (widget);
else
(gdouble) width,
(gdouble) height);
- gtk_render_frame_gap (context, cr,
- (gdouble) x,
- (gdouble) y,
- (gdouble) width,
- (gdouble) height,
- gap_side,
- (gdouble) gap_x,
- (gdouble) gap_x + gap_width);
+ if (shadow_type != GTK_SHADOW_NONE)
+ gtk_render_frame_gap (context, cr,
+ (gdouble) x,
+ (gdouble) y,
+ (gdouble) width,
+ (gdouble) height,
+ gap_side,
+ (gdouble) gap_x,
+ (gdouble) gap_x + gap_width);
+
cairo_restore (cr);
gtk_style_context_restore (context);
}