Bug#864281: orage clock panel plugin background transparency doesn't work
Dear maintainers,
Would be nice, if you applied the ubuntu patch to the
debian-package as well.
I built a personal debian package with this patch
(http://apt.klaumikli.de/testing) and it works just fine.
I attach the patch again as it is needed for debian/patches.
BTW: While building my personal package I recognized that
in your package the dbus-files from upstream were not
installed. To make this happen, there has to be a new line
in debian/orage.install:
usr/share/dbus-1/services
(but this should actually be a seperate bug-report)
Thanks for maintaining the orage package!
Klaumi
-----------
Klaus-Michael Klingsporn
mail: klaumikli@gmx.de
web: www.klaumikli.de
From: Ubuntu
Date: 6 Jun 2017 08:17:49 +0200
Subject: invisible_event_box, fix background-bug of panel-plugin
-------
diff --git a/panel-plugin/xfce4-orageclock-plugin.c b/panel-plugin/xfce4-orageclock-plugin.c
index ae3aa8b..3623d8a 100644
--- a/panel-plugin/xfce4-orageclock-plugin.c
+++ b/panel-plugin/xfce4-orageclock-plugin.c
@@ -735,10 +735,13 @@ void oc_bg_set(Clock *clock)
{
GdkColor *bg = NULL;
- if (clock->bg_set)
+ if (clock->bg_set) {
bg = &clock->bg;
-
- gtk_widget_modify_bg(clock->ebox, GTK_STATE_NORMAL, bg);
+ gtk_widget_modify_bg(clock->ebox, GTK_STATE_NORMAL, bg);
+ gtk_event_box_set_visible_window(GTK_EVENT_BOX(clock->ebox), TRUE);
+ } else {
+ gtk_event_box_set_visible_window(GTK_EVENT_BOX(clock->ebox), FALSE);
+ }
}
void oc_timezone_set(Clock *clock)
Reply to: