[gtk+/wip/css: 143/163] themingengine: Remove an optimization
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css: 143/163] themingengine: Remove an optimization
- Date: Sun, 8 Jan 2012 01:02:01 +0000 (UTC)
commit 43b231947da7e89f821d5a0bb883252ce35f56e0
Author: Benjamin Otte <otte redhat com>
Date: Fri Jan 6 20:33:00 2012 +0100
themingengine: Remove an optimization
We optimize the case later on, so no need to do it here.
gtk/gtkthemingengine.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 754fe8c..f448d45 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -1543,7 +1543,6 @@ gtk_theming_engine_render_frame (GtkThemingEngine *engine,
gdouble height)
{
GtkStateFlags flags;
- GtkBorderStyle border_style;
GtkJunctionSides junction;
GtkBorderImage border_image;
GtkBorder border;
@@ -1552,14 +1551,10 @@ gtk_theming_engine_render_frame (GtkThemingEngine *engine,
junction = gtk_theming_engine_get_junction_sides (engine);
gtk_theming_engine_get_border (engine, flags, &border);
- gtk_theming_engine_get (engine, flags,
- "border-style", &border_style,
- NULL);
-
if (_gtk_border_image_init (&border_image, engine))
_gtk_border_image_render (&border_image, &border,
cr, x, y, width, height);
- else if (border_style != GTK_BORDER_STYLE_NONE)
+ else
render_frame_internal (engine, cr,
x, y, width, height,
0, junction);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]