gtk-engines r1061 - in trunk: . engines/clearlooks/src engines/support
- From: acimitan svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk-engines r1061 - in trunk: . engines/clearlooks/src engines/support
- Date: Tue, 5 Feb 2008 21:17:03 +0000 (GMT)
Author: acimitan
Date: Tue Feb 5 21:17:02 2008
New Revision: 1061
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1061&view=rev
Log:
2008-02-05 Andrea Cimitan <andrea cimitan gmail com>
* engines/clearlooks/src/clearlooks_style.c:
(clearlooks_style_draw_box):
Managed handlebox_bin and dockitem_bin special cases
for toolbar's shadow-type
To use this setting place this in the gtkrc:
GtkMenuBar::shadow_type = GTK_SHADOW_NONE
GtkToolbar::shadow_type = GTK_SHADOW_NONE
Modified:
trunk/ChangeLog
trunk/engines/clearlooks/src/clearlooks_style.c
trunk/engines/support/widget-information.h
Modified: trunk/engines/clearlooks/src/clearlooks_style.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_style.c (original)
+++ trunk/engines/clearlooks/src/clearlooks_style.c Tue Feb 5 21:17:02 2008
@@ -835,8 +835,13 @@
toolbar.style = clearlooks_style->toolbarstyle;
- /* Only draw the shadows on horizontal toolbars */
- /* if (shadow_type != GTK_SHADOW_NONE && height < 2*width) */
+ if ((DETAIL ("handlebox_bin") || DETAIL ("dockitem_bin")) && GE_IS_BIN (widget))
+ {
+ GtkWidget* child = gtk_bin_get_child ((GtkBin*) &widget);
+ if (GE_IS_TOOLBAR (child))
+ gtk_widget_style_get (child, "shadow-type", &shadow_type, NULL);
+ }
+
if (shadow_type != GTK_SHADOW_NONE)
STYLE_FUNCTION(draw_toolbar) (cr, colors, ¶ms, &toolbar, x, y, width, height);
}
Modified: trunk/engines/support/widget-information.h
==============================================================================
--- trunk/engines/support/widget-information.h (original)
+++ trunk/engines/support/widget-information.h Tue Feb 5 21:17:02 2008
@@ -31,15 +31,15 @@
Based on/modified from functions in
Smooth-Engine.
*/
-#define GE_IS_WIDGET(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkWidget"))
-#define GE_IS_CONTAINER(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkContainer"))
-#define GE_IS_BIN(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkBin"))
-
-#define GE_IS_ARROW(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkArrow"))
-
-#define GE_IS_SEPARATOR(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkSeparator"))
-#define GE_IS_VSEPARATOR(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkVSeparator"))
-#define GE_IS_HSEPARATOR(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkHSeparator"))
+#define GE_IS_WIDGET(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkWidget"))
+#define GE_IS_CONTAINER(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkContainer"))
+#define GE_IS_BIN(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkBin"))
+
+#define GE_IS_ARROW(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkArrow"))
+
+#define GE_IS_SEPARATOR(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkSeparator"))
+#define GE_IS_VSEPARATOR(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkVSeparator"))
+#define GE_IS_HSEPARATOR(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkHSeparator"))
#define GE_IS_HANDLE_BOX(object) ((object) && ge_object_is_a ((GObject*)(object), "GtkHandleBox"))
#define GE_IS_HANDLE_BOX_ITEM(object) ((object) && GE_IS_HANDLE_BOX(object->parent))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]