~ci-train-bot/unity/unity-ubuntu-artful-2861

« back to all changes in this revision

Viewing changes to tools/compiz_config_profile_setter.c

  • Committer: Bileto Bot
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2017-07-03 15:38:43 UTC
  • mfrom: (4243.1.5 compiz-average-color)
  • Revision ID: ci-train-bot@canonical.com-20170703153843-tr37wsspsn9dpsvn
BGHash, UnityScreen: get desktop averageColor from compiz

compiz now supports getting this value, let's use it instead of
doing this again here.

Approved by: Andrea Azzarone

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
static gboolean
131
131
set_compiz_profile (CCSContext *ccs_context, const gchar *profile_name)
132
132
{
133
 
  CCSPluginList plugins;
 
133
  CCSPluginList plugins, p;
134
134
  const char *ccs_backend;
135
135
 
136
136
  ccs_backend = ccsGetBackend (ccs_context);
144
144
 
145
145
  plugins = ccsContextGetPlugins (ccs_context);
146
146
 
147
 
  for (CCSPluginList p = plugins; p; p = p->next)
 
147
  for (p = plugins; p; p = p->next)
148
148
    {
149
149
      CCSPlugin* plugin = p->data;
150
150
      ccsReadPluginSettings (plugin);