! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Background not transparent
Status:
RESOLVED: WONTFIX
Component:
clock-plugin

Comments

Description Mathias Brodala 2015-05-19 14:43:25 CEST
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.
Comment 1 Mathias Brodala 2017-03-13 22:56:56 CET
Does anyone have an idea how to fix this? The issue is still present in version 4.12.1 of Orage.
Comment 2 Guilherme Balena Versiani 2017-05-26 13:55:48 CEST
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.
Comment 3 Guilherme Balena Versiani 2017-05-26 15:16:19 CEST
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.
Comment 4 Guilherme Balena Versiani 2017-05-26 18:42:12 CEST
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.
Comment 5 Aaron Franke 2017-06-12 23:18:14 CEST
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.
Comment 6 Skunnyk editbugs 2019-10-27 18:39:28 CET
The orage project is not maintained anymore and has been archived. Closing bugs.
Comment 7 Guilherme Balena Versiani 2019-10-29 10:56:47 CET
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.

Bug #11915

Reported by:
Mathias Brodala
Reported on: 2015-05-19
Last modified on: 2019-10-29

People

CC List:
3 users

Version

Attachments

Orage panel plugin opaque background (4.96 KB, image/png)
2015-05-19 14:43 CEST , Mathias Brodala
no flags
Removes the background settings from the panel plugin (4.57 KB, patch)
2017-05-26 15:16 CEST , Guilherme Balena Versiani
no flags
Invisible GtkEventBox when 'set background color' is unset (718 bytes, patch)
2017-05-26 18:42 CEST , Guilherme Balena Versiani
no flags

Additional information