[Xfce4-commits] <xfce4-weather-plugin:master> Summary details: Make event box use invisible child windows.

Harald Judt noreply at xfce.org
Wed Nov 28 22:12:02 CET 2012


Updating branch refs/heads/master
         to bc65a6b00f521ba48de4c441b03c8993bb3208cc (commit)
       from c438a97eed8fcaeab1b85edb9866863c831375ae (commit)

commit bc65a6b00f521ba48de4c441b03c8993bb3208cc
Author: Harald Judt <h.judt at gmx.at>
Date:   Wed Nov 28 21:51:01 2012 +0100

    Summary details: Make event box use invisible child windows.
    
    This fixes the ugly icon transparency issue that occurred with some themes.

 panel-plugin/weather-summary.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/weather-summary.c b/panel-plugin/weather-summary.c
index 04cdc98..8191c7a 100644
--- a/panel-plugin/weather-summary.c
+++ b/panel-plugin/weather-summary.c
@@ -464,8 +464,8 @@ create_summary_tab(xfceweather_data *data)
 
     if (icon) {
         sum->icon_ebox = gtk_event_box_new();
-        gtk_container_add(GTK_CONTAINER(sum->icon_ebox),
-                          icon);
+        gtk_event_box_set_visible_window(GTK_EVENT_BOX(sum->icon_ebox), FALSE);
+        gtk_container_add(GTK_CONTAINER(sum->icon_ebox), icon);
         gtk_text_view_add_child_in_window(GTK_TEXT_VIEW(view),
                                           sum->icon_ebox,
                                           GTK_TEXT_WINDOW_TEXT, 0, 0);


More information about the Xfce4-commits mailing list