[Xfce4-commits] [xfce/xfce4-panel] 01/01: Fix transparent bg of internal plugins in locked mode
noreply at xfce.org
noreply at xfce.org
Sat Mar 4 22:15:00 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 39b9ce00289d9baa657c380139546856837325df
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sat Mar 4 22:14:36 2017 +0100
Fix transparent bg of internal plugins in locked mode
The locked mode used to send the expose/draw signal to
all panel children (i.e. internal plugins) and this may
have been useful in Gtk2. In Gtk3 we don't use the draw
signal anymore but instead internally draw with pure CSS.
---
panel/panel-window.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/panel/panel-window.c b/panel/panel-window.c
index 3f27da3..e023bda 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -820,7 +820,7 @@ panel_window_draw (GtkWidget *widget,
(*GTK_WIDGET_CLASS (panel_window_parent_class)->draw) (widget, cr);
if (window->position_locked || !gtk_widget_is_drawable (widget))
- goto end;
+ return FALSE;
if (IS_HORIZONTAL (window))
{
@@ -878,12 +878,6 @@ panel_window_draw (GtkWidget *widget,
cairo_fill (cr);
}
-end:
- /* send the expose event to the child */
- child = gtk_bin_get_child (GTK_BIN (widget));
- if (G_LIKELY (child != NULL))
- gtk_container_propagate_draw (GTK_CONTAINER (widget), child, cr);
-
return FALSE;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list