summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2010-12-10 11:41:57 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2010-12-10 11:41:57 +0800
commit8721c49b5b74f53d46068f400a6b72e440a468d8 (patch)
tree9ff58fa2b4494297b5353cd2d6b04a7d11ee5444 /src
parent68d55bfde96278253410730cde4b33c7e38d07d6 (diff)
downloadunity-window-decorator-8721c49b5b74f53d46068f400a6b72e440a468d8.tar.gz
unity-window-decorator-8721c49b5b74f53d46068f400a6b72e440a468d8.tar.bz2
Allow the theme to specify a shadow opacity. Also nuke debug messages
Diffstat (limited to 'src')
-rw-r--r--src/gtk-window-decorator.c1
-rw-r--r--src/metacity.c8
2 files changed, 4 insertions, 5 deletions
diff --git a/src/gtk-window-decorator.c b/src/gtk-window-decorator.c
index f5b06e8..85963d9 100644
--- a/src/gtk-window-decorator.c
+++ b/src/gtk-window-decorator.c
@@ -259,7 +259,6 @@ main (int argc, char *argv[])
}
else if (strcmp (argv[i], "--metacity-theme") == 0)
{
- fprintf (stderr, "specified metacity theme\n");
if (argc > ++i)
meta_theme = argv[i];
cmdline_options |= CMDLINE_THEME;
diff --git a/src/metacity.c b/src/metacity.c
index ac25fb2..b63f8c1 100644
--- a/src/metacity.c
+++ b/src/metacity.c
@@ -1643,7 +1643,7 @@ meta_update_shadow (gint shadow_type)
opt_shadow.shadow_radius = shadow_properties->unity_shadow_radius;
opt_shadow.shadow_offset_x = shadow_properties->unity_shadow_x_offset;
opt_shadow.shadow_offset_y = shadow_properties->unity_shadow_y_offset;
- opt_shadow.shadow_opacity = 0.5;
+ opt_shadow.shadow_opacity = shadow_properties->unity_shadow_opacity;
return decor_shadow_create (xdisplay,
gdk_x11_screen_get_xscreen (screen),
@@ -1682,7 +1682,7 @@ meta_update_shadow (gint shadow_type)
opt_shadow.shadow_radius = shadow_properties->unity_shadow_radius;
opt_shadow.shadow_offset_x = shadow_properties->unity_shadow_x_offset;
opt_shadow.shadow_offset_y = shadow_properties->unity_shadow_y_offset;
- opt_shadow.shadow_opacity = 0.5;
+ opt_shadow.shadow_opacity = shadow_properties->unity_shadow_opacity;
return decor_shadow_create (xdisplay,
gdk_x11_screen_get_xscreen (screen),
@@ -1722,7 +1722,7 @@ meta_update_shadow (gint shadow_type)
opt_shadow.shadow_radius = shadow_properties->unity_shadow_radius;
opt_shadow.shadow_offset_x = shadow_properties->unity_shadow_x_offset;
opt_shadow.shadow_offset_y = shadow_properties->unity_shadow_y_offset;
- opt_shadow.shadow_opacity = 0.5;
+ opt_shadow.shadow_opacity = shadow_properties->unity_shadow_opacity;
return decor_shadow_create (xdisplay,
gdk_x11_screen_get_xscreen (screen),
@@ -1758,7 +1758,7 @@ meta_update_shadow (gint shadow_type)
opt_shadow.shadow_radius = shadow_properties->unity_shadow_radius;
opt_shadow.shadow_offset_x = shadow_properties->unity_shadow_x_offset;
opt_shadow.shadow_offset_y = shadow_properties->unity_shadow_y_offset;
- opt_shadow.shadow_opacity = 0.5;
+ opt_shadow.shadow_opacity = shadow_properties->unity_shadow_opacity;
return decor_shadow_create (xdisplay,
gdk_x11_screen_get_xscreen (screen),