[Xfce4-commits] [xfce/xfce4-panel] 01/01: Disable border drawing with custom background
noreply at xfce.org
noreply at xfce.org
Fri Apr 21 00:11:10 CEST 2017
This is an automated email from the git hooks/post-receive script.
ochosi pushed a commit to branch master
in repository xfce/xfce4-panel.
commit 01caba0b4848136edd1d0874cb4f8197d181fe53
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Fri Apr 21 00:10:56 2017 +0200
Disable border drawing with custom background
---
panel/panel-base-window.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/panel/panel-base-window.c b/panel/panel-base-window.c
index 746d4a4..79e159f 100644
--- a/panel/panel-base-window.c
+++ b/panel/panel-base-window.c
@@ -38,7 +38,7 @@
#define PANEL_BASE_CSS ".xfce4-panel.background { border-style: solid; }"\
- ".xfce4-panel.background button { background: transparent; padding: 0; }"\
+ ".xfce4-panel.background button { background: transparent; padding: 0; }"\
".xfce4-panel.background.marching-ants { border: 1px dashed #ff0000; }"
@@ -584,7 +584,7 @@ static void
panel_base_window_set_background_color_css (PanelBaseWindow *window) {
gchar *css_string;
panel_return_if_fail (window->background_rgba != NULL);
- css_string = g_strdup_printf (".xfce4-panel.background { background-color: %s; } %s",
+ css_string = g_strdup_printf (".xfce4-panel.background { background-color: %s; border-color: transparent; } %s",
gdk_rgba_to_string (window->background_rgba),
PANEL_BASE_CSS);
panel_base_window_set_background_css (window, css_string);
@@ -596,7 +596,7 @@ static void
panel_base_window_set_background_image_css (PanelBaseWindow *window) {
gchar *css_string;
panel_return_if_fail (window->background_image != NULL);
- css_string = g_strdup_printf (".xfce4-panel.background { background-image: url('%s'); } %s",
+ css_string = g_strdup_printf (".xfce4-panel.background { background-image: url('%s'); border-color: transparent; } %s",
window->background_image, PANEL_BASE_CSS);
panel_base_window_set_background_css (window, css_string);
}
@@ -768,8 +768,6 @@ panel_base_window_set_borders (PanelBaseWindow *window,
panel_return_if_fail (PANEL_IS_BASE_WINDOW (window));
- g_warning ("borders set.");
-
if (priv->borders != borders)
{
priv->borders = borders;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list