[murrine] Basic hack to theme the task list when x/y thickness == 0



commit a5896f0702d24c04ec0752657f718bb5265aecdd
Author: Andrea Cimitan <andrea cimitan Å?mail com>
Date:   Tue Aug 17 10:30:14 2010 +0200

    Basic hack to theme the task list when x/y thickness == 0

 src/murrine_style.c |   12 ++++++++++++
 src/support.h       |    3 ++-
 2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/src/murrine_style.c b/src/murrine_style.c
index 01d1f83..69a0b05 100644
--- a/src/murrine_style.c
+++ b/src/murrine_style.c
@@ -928,6 +928,18 @@ murrine_style_draw_box (DRAW_ARGS)
 				params.reliefstyle = 1;
 		}
 
+		/* Basic hack to theme the task list when x/y thickness == 0 */
+		if (widget->parent && widget->parent->parent && 
+                    MRN_IS_PANEL_APPLET(widget->parent->parent))
+		{
+			if (params.xthickness == 0 && params.ythickness == 0)
+			{
+				x--; width+=1;
+				y--; height+=2;
+				params.roundness = 0;
+			}		
+		}
+
 		if (!MRN_IS_COMBO_BOX(widget->parent) ||
 		     MRN_IS_COMBO_BOX_ENTRY (widget->parent) ||
 		     MRN_IS_COMBO (widget->parent))
diff --git a/src/support.h b/src/support.h
index 650b062..719edcf 100644
--- a/src/support.h
+++ b/src/support.h
@@ -62,7 +62,8 @@
 #define MRN_IS_BONOBO_TOOLBAR(object) ((object) && murrine_object_is_a ((GObject*)(object), "BonoboUIToolbar"))
 #define MRN_IS_EGG_TOOLBAR(object) ((object) && murrine_object_is_a ((GObject*)(object), "Toolbar"))
 #define MRN_IS_TOOLBAR(object) ((object) && murrine_object_is_a ((GObject*)(object), "GtkToolbar"))
-#define MRN_IS_PANEL_WIDGET(object) ((object) && (murrine_object_is_a ((GObject*)(object), "PanelWidget") || murrine_object_is_a ((GObject*)(object), "PanelApplet")))
+#define MRN_IS_PANEL_APPLET(object) ((object) && murrine_object_is_a ((GObject*)(object), "PanelApplet"))
+#define MRN_IS_PANEL_WIDGET(object) ((object) && murrine_object_is_a ((GObject*)(object), "PanelWidget"))
 
 #define MRN_IS_COMBO_BOX_ENTRY(object) ((object) && murrine_object_is_a ((GObject*)(object), "GtkComboBoxEntry"))
 #define MRN_IS_COMBO_BOX(object) ((object) && murrine_object_is_a ((GObject*)(object), "GtkComboBox"))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]