orage clock panel plugin background transparency doesn't work

Bug #1567956 reported by Rodion
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Orage
Won't Fix
Low
orage (Debian)
New
Unknown
orage (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Panel plugin Orage clock has black background instead transparent like panel.

Revision history for this message
In , Mathias Brodala (mathbr) wrote :

Created attachment 6263
Orage panel plugin opaque background

Even though I have set my panels to 100% alpha transparency the Orage clock plugin still shows the default background color, see the attached screenshot.

I am currently using this version of the Numix theme:

https://github.com/shimmerproject/Numix/tree/9b647b8b3bcdf4ba97bfc0e9fc86e8e53efcfb47

But the issue is the same with other themes including the ones bundled with Xfce.

There are no .gtkrc* files in my $HOME.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in orage (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Mathias Brodala (mathbr) wrote :

Does anyone have an idea how to fix this? The issue is still present in version 4.12.1 of Orage.

Revision history for this message
In , Guilherme Versiani (balena) wrote :

The problem is in the file src/event-list.c:231 (using orage revision ea188b4fc56a766837a2d561825807eaaa27c0c7):

  static void flags_data_func(GtkTreeViewColumn *col, GtkCellRenderer *rend
          , GtkTreeModel *model, GtkTreeIter *iter, gpointer user_data)
  {
      gchar *categories;
      GdkColor *color;

      gtk_tree_model_get(model, iter, CAL_CATEGORIES, &categories, -1);
      if ((color = orage_category_list_contains(categories)) == NULL)
          g_object_set(rend
                   , "background-set", FALSE
                   , NULL);
      else
          g_object_set(rend
                   , "background-gdk", color
                   , "background-set", TRUE
                   , NULL);
      g_free(categories);
  }

The above if/else is related to the checkbox 'set background color', in the orage properties. The problem resides in the fact that setting "background-set" to FALSE makes the background opaque. An ugly and dirty fix:

  static void flags_data_func(GtkTreeViewColumn *col, GtkCellRenderer *rend
          , GtkTreeModel *model, GtkTreeIter *iter, gpointer user_data)
  {
      gchar *categories;
      GdkColor *color;

      gtk_tree_model_get(model, iter, CAL_CATEGORIES, &categories, -1);
      if ((color = orage_category_list_contains(categories)) != NULL)
          g_object_set(rend
                   , "background-gdk", color
                   , "background-set", TRUE
                   , NULL);
      g_free(categories);
  }

The ugly fix above will have the collateral effect that once you set a particular background color, you won't be able to return back to transparent background unless you restart the applet.

Revision history for this message
In , Guilherme Versiani (balena) wrote :

Created attachment 7123
Removes the background settings from the panel plugin

Without any background settings, the default panel color is adopted in the background.

I have no idea if a different background color is useful for someone, it is not for me.

Revision history for this message
Guilherme Versiani (balena) wrote :

The problem is that the background color setting is messing with the transparency. By removing it completely from the code, it works. See https://bugzilla.xfce.org/show_bug.cgi?id=11915

Revision history for this message
In , Guilherme Versiani (balena) wrote :

Created attachment 7124
Invisible GtkEventBox when 'set background color' is unset

Fixed the function oc_bg_set() to make the background GtkEventBox invisible when the 'set background color' option is unchecked.

Revision history for this message
In , aaronfranke (arnfranke) wrote :

Confirmed, please fix. Orage is overall a great plugin but I won't use it if it doesn't play nice with my transparent panels.

Changed in orage (Debian):
status: Unknown → New
Revision history for this message
In , Skunnyk-q (skunnyk-q) wrote :

The orage project is not maintained anymore and has been archived. Closing bugs.

Changed in orage:
importance: Unknown → Low
status: Unknown → Won't Fix
Revision history for this message
In , Guilherme Versiani (balena) wrote :

So it may be the time to start supporting multiple timezones in the xfce4-panel:clock. 'gsimplecal' does just that and in a simple and configurable way, though it does not come with a xfce4 panel widget.

Changed in orage (Debian):
status: New → Fix Released
Revision history for this message
Sean Davis (bluesabre) wrote :

orage is no longer supported and has been dropped from the Debian and Ubuntu archives. Closing out.

Changed in orage (Ubuntu):
status: Confirmed → Won't Fix
Changed in orage (Debian):
status: Fix Released → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.