--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: orage clock panel plugin background transparency doesn't work
- From: Guilherme Versiani <guibv@yahoo.com>
- Date: Tue, 06 Jun 2017 05:30:09 -0300
- Message-id: <149673780910.10171.6921394553441330526.reportbug@dell-inspiron-5548>
Package: orage
Version: 4.12.1-1
Severity: minor
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu artful ubuntu-patch
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
On Orage clock XFCE panel preferences, do not mark 'set background color'
but the background color of the plugin keeps opaque.
* What exactly did you do (or not do) that was effective (or
ineffective)?
It was ineffective to modify the 'set background color' settings.
* What was the outcome of this action?
The background color of the plugin keeps opaque no matter what you do.
* What outcome did you expect instead?
If the option 'set background color' is unmarked, I expect to have a
transparent background in the panel background, as normally found on all
other plugins.
*** End of the template - remove these template lines ***
*** /tmp/tmpKeTLyi/bug_body
In Ubuntu, the attached patch was applied to achieve the following:
On Orage clock XFCE panel preferences, do not mark 'set background color'
but the background color of the plugin keeps opaque.
* debian/paches:
- 02_invisible_event_box.patch added, fix clock panel plugin background
transparency doesn't work closes: #1567956
Thanks for considering the patch.
-- System Information:
Debian Release: stretch/sid
APT prefers xenial-updates
APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.8.0-53-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
=== modified file 'debian/changelog'
=== added file 'debian/patches/02_invisible_event_box.patch'
--- debian/patches/02_invisible_event_box.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/02_invisible_event_box.patch 2017-06-06 08:17:54 +0000
@@ -0,0 +1,21 @@
+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)
=== modified file 'debian/patches/series'
--- debian/patches/series 2015-03-14 14:53:45 +0000
+++ debian/patches/series 2017-06-06 08:18:00 +0000
@@ -1 +1,2 @@
01_support-filename-desktop.patch
+02_invisible_event_box.patch
--- End Message ---