[gtk-theme-engine-clearlooks] Handle border-style:none;
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-theme-engine-clearlooks] Handle border-style:none;
- Date: Mon, 6 Dec 2010 21:23:03 +0000 (UTC)
commit f9caa6241be09f359327b1e5d6a4f66d7d76d2e4
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Nov 30 03:07:51 2010 +0100
Handle border-style:none;
src/clearlooks_engine.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/clearlooks_engine.c b/src/clearlooks_engine.c
index f8c031c..67d0d51 100644
--- a/src/clearlooks_engine.c
+++ b/src/clearlooks_engine.c
@@ -435,6 +435,7 @@ clearlooks_engine_render_frame (GtkThemingEngine *engine,
ClearlooksStyleFunctions *style_functions;
const GtkWidgetPath *path;
GtkTextDirection direction;
+ GtkBorderStyle border_style;
GtkStateFlags state;
GE_CAIRO_INIT
@@ -445,9 +446,15 @@ clearlooks_engine_render_frame (GtkThemingEngine *engine,
path = gtk_theming_engine_get_path (engine);
direction = gtk_theming_engine_get_direction (engine);
+ gtk_theming_engine_get (engine, state,
+ "border-style", &border_style,
+ NULL);
+
+ if (border_style == GTK_BORDER_STYLE_NONE)
+ return;
+
if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_MENUBAR))
{
- WidgetParameters params;
MenuBarParameters menubar;
gboolean horizontal;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]