mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 16:50:11 +00:00
GtkThemingEngine: Remove unused variables
This commit is contained in:
parent
901af8fec8
commit
9bdb7e6945
@ -1549,14 +1549,9 @@ gtk_theming_engine_render_background (GtkThemingEngine *engine,
|
|||||||
gdouble width,
|
gdouble width,
|
||||||
gdouble height)
|
gdouble height)
|
||||||
{
|
{
|
||||||
GdkRGBA *bg_color;
|
|
||||||
cairo_pattern_t *pattern;
|
|
||||||
GtkStateFlags flags;
|
|
||||||
gboolean running;
|
|
||||||
gdouble progress, alpha = 1;
|
|
||||||
GtkJunctionSides junction;
|
GtkJunctionSides junction;
|
||||||
|
GtkStateFlags flags;
|
||||||
GtkBorder *border;
|
GtkBorder *border;
|
||||||
gint radius;
|
|
||||||
|
|
||||||
junction = gtk_theming_engine_get_junction_sides (engine);
|
junction = gtk_theming_engine_get_junction_sides (engine);
|
||||||
|
|
||||||
@ -1569,6 +1564,7 @@ gtk_theming_engine_render_background (GtkThemingEngine *engine,
|
|||||||
height -= 4;
|
height -= 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
flags = gtk_theming_engine_get_state (engine);
|
||||||
gtk_theming_engine_get (engine, flags,
|
gtk_theming_engine_get (engine, flags,
|
||||||
"border-width", &border,
|
"border-width", &border,
|
||||||
NULL);
|
NULL);
|
||||||
@ -2221,6 +2217,7 @@ gtk_theming_engine_render_frame_gap (GtkThemingEngine *engine,
|
|||||||
gdouble x0, y0, x1, y1, xc, yc, wc, hc;
|
gdouble x0, y0, x1, y1, xc, yc, wc, hc;
|
||||||
GtkBorder *border;
|
GtkBorder *border;
|
||||||
|
|
||||||
|
xc = yc = wc = hc = 0;
|
||||||
state = gtk_theming_engine_get_state (engine);
|
state = gtk_theming_engine_get_state (engine);
|
||||||
junction = gtk_theming_engine_get_junction_sides (engine);
|
junction = gtk_theming_engine_get_junction_sides (engine);
|
||||||
gtk_theming_engine_get (engine, state,
|
gtk_theming_engine_get (engine, state,
|
||||||
@ -2314,10 +2311,7 @@ gtk_theming_engine_render_extension (GtkThemingEngine *engine,
|
|||||||
GtkPositionType gap_side)
|
GtkPositionType gap_side)
|
||||||
{
|
{
|
||||||
GtkJunctionSides junction = 0;
|
GtkJunctionSides junction = 0;
|
||||||
GtkStateFlags state;
|
|
||||||
guint hidden_side = 0;
|
guint hidden_side = 0;
|
||||||
GdkRGBA *bg_color;
|
|
||||||
gint radius;
|
|
||||||
|
|
||||||
cairo_save (cr);
|
cairo_save (cr);
|
||||||
|
|
||||||
@ -2371,9 +2365,6 @@ gtk_theming_engine_render_extension (GtkThemingEngine *engine,
|
|||||||
hidden_side, junction);
|
hidden_side, junction);
|
||||||
|
|
||||||
cairo_restore (cr);
|
cairo_restore (cr);
|
||||||
|
|
||||||
if (bg_color)
|
|
||||||
gdk_rgba_free (bg_color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user