[Xfce4-commits] [xfce/xfce4-panel] 03/03: Fix some leaks
noreply at xfce.org
noreply at xfce.org
Tue Mar 7 00:13:58 CET 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 d1910cee8866f056437fc3af928418732567cbab
Author: Florian Schüller <florian.schueller at gmail.com>
Date: Tue Mar 7 00:13:30 2017 +0100
Fix some leaks
---
panel/panel-base-window.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/panel/panel-base-window.c b/panel/panel-base-window.c
index d03dc42..3ce2020 100644
--- a/panel/panel-base-window.c
+++ b/panel/panel-base-window.c
@@ -646,6 +646,7 @@ panel_base_window_reset_background_css (PanelBaseWindow *window) {
GdkRGBA *background_rgba;
gchar *border_side = NULL;
gchar *base_css;
+ gchar *color_text;
context = gtk_widget_get_style_context (GTK_WIDGET (window));
gtk_style_context_remove_provider (context,
@@ -664,9 +665,12 @@ panel_base_window_reset_background_css (PanelBaseWindow *window) {
border_side = "right";
if (border_side) {
+ color_text = gdk_rgba_to_string (background_rgba);
base_css = g_strdup_printf ("%s .xfce4-panel.background { border-%s: 1px solid shade(%s, 0.7); }",
- PANEL_BASE_CSS, border_side, gdk_rgba_to_string (background_rgba));
+ PANEL_BASE_CSS, border_side, color_text);
gtk_css_provider_load_from_data (window->priv->css_provider, base_css, -1, NULL);
+ g_free(base_css);
+ g_free(color_text);
}
else
gtk_css_provider_load_from_data (window->priv->css_provider, PANEL_BASE_CSS, -1, NULL);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list