/****************************************************************************/
/* Object infrastructure. */
/****************************************************************************/
-G_DEFINE_TYPE (glMiniPreview, gl_mini_preview, GTK_TYPE_EVENT_BOX);
+G_DEFINE_TYPE (glMiniPreview, gl_mini_preview, GTK_TYPE_EVENT_BOX)
/*****************************************************************************/
glMiniPreview *this = GL_MINI_PREVIEW (widget);
GdkWindow *window;
cairo_t *cr;
- gdouble scale;
gdouble x, y;
gint i;
cr = gdk_cairo_create (window);
- scale = set_transform_and_get_scale (this, cr);
+ set_transform_and_get_scale (this, cr);
x = event->x;
y = event->y;
glMiniPreview *this = GL_MINI_PREVIEW (widget);
GdkWindow *window;
cairo_t *cr;
- gdouble scale;
gdouble x, y;
gint i;
cr = gdk_cairo_create (window);
- scale = set_transform_and_get_scale (this, cr);
+ set_transform_and_get_scale (this, cr);
x = event->x;
y = event->y;
lglTemplateOrigin *origins;
GtkStyle *style;
guint base_color;
- guint highlight_color, paper_color, outline_color;
+ guint highlight_color, outline_color;
gl_debug (DEBUG_MINI_PREVIEW, "START");
style = gtk_widget_get_style (GTK_WIDGET(this));
base_color = gl_color_from_gdk_color (&style->base[GTK_STATE_SELECTED]);
- paper_color = gl_color_from_gdk_color (&style->light[GTK_STATE_NORMAL]);
highlight_color = gl_color_set_opacity (base_color, 0.10);
if (this->priv->label)
{
cairo_scale (cr, 1, -1);
if ( this->priv->rotate_flag )
{
- cairo_rotate (cr, -M_PI/2.0);
+ cairo_rotate (cr, -G_PI/2.0);
}
cairo_new_path (cr);