X-Git-Url: https://git.sur5r.net/?p=glabels;a=blobdiff_plain;f=src%2Fmini-preview.c;h=8e64d60c6c3665abab4e7cf73a0e9f0b54a170bd;hp=dc92d6e4b7a8ab64d71981bcded5fb2c32e5ddc7;hb=bf6d7db22a79d11630454dcd2e867764e89ca9fe;hpb=7163b4618939eb14d7781b4100f73270ea2f70fa diff --git a/src/mini-preview.c b/src/mini-preview.c index dc92d6e4..8e64d60c 100644 --- a/src/mini-preview.c +++ b/src/mini-preview.c @@ -632,7 +632,6 @@ button_press_event_cb (GtkWidget *widget, glMiniPreview *this = GL_MINI_PREVIEW (widget); GdkWindow *window; cairo_t *cr; - gdouble scale; gdouble x, y; gint i; @@ -645,7 +644,7 @@ button_press_event_cb (GtkWidget *widget, 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; @@ -684,7 +683,6 @@ motion_notify_event_cb (GtkWidget *widget, glMiniPreview *this = GL_MINI_PREVIEW (widget); GdkWindow *window; cairo_t *cr; - gdouble scale; gdouble x, y; gint i; @@ -696,7 +694,7 @@ motion_notify_event_cb (GtkWidget *widget, 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; @@ -979,7 +977,7 @@ draw_labels (glMiniPreview *this, 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"); @@ -991,7 +989,6 @@ draw_labels (glMiniPreview *this, 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) {