~darkxst/ubuntu/utopic/gnome-desktop3/3.12

« back to all changes in this revision

Viewing changes to libgnome-desktop/gnome-bg-crossfade.c

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2013-05-28 09:10:46 UTC
  • mfrom: (1.6.1) (21.1.10 experimental)
  • Revision ID: package-import@ubuntu.com-20130528091046-b0oc28za9l97fgq1
Tags: 3.8.2-0ubuntu1
* New upstream release
* Sync with Debian (LP: #1184812) Remaining changes:
  - debian/patches:
    + 04_compute_average_color.patch: Compute the avergage color in
      gnome-desktop itself, not in unity to fix some races (LP #963140)
    + tweak_color_computation.patch, Patch from Gord, no patch header,
      no bug link.
    + git_revert_draw_background.patch
    + ubuntu_language.patch, Ported relevant bits from g-c-c 
      52_region_language.patch, as required for gnome 3.8 region panel
    + ubuntu_language_list_from_SUPPORTED.patch,
      adds api to get list of available languages from SUPPORTED file.
      To be used by gnome 3.8 region panel language installation.
  - debian/control.in:
    + Don't break gnome-shell << 3.7.90
    + Use source:Version for gnome-desktop3-data Depend
    + Add epoch to gnome-desktop3-data's Breaks/Replaces, as our old
      gnome-desktop source package introduced an epoch. This needs to be
      kept until after 14.04 LTS.
 - Install helper tools into a versioned directory (by overriding
   libexecdir). They could alternatively be installed in a separate package
* Dropped changes:
  - 02_refuse_to_break_GL_compositors.patch:
    + Doesn't appear to be needed any more
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 *
15
15
 * You should have received a copy of the GNU Library General Public
16
16
 * License along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18
 
 * 02111-1307, USA.
 
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
18
 * 02110-1301, USA.
19
19
 *
20
20
 * Author: Ray Strode <rstrode@redhat.com>
21
21
*/
371
371
}
372
372
 
373
373
static void
 
374
send_root_property_change_notification (GnomeBGCrossfade *fade)
 
375
{
 
376
        long zero_length_pixmap;
 
377
 
 
378
        /* We do a zero length append to force a change notification,
 
379
         * without changing the value */
 
380
        XChangeProperty (GDK_WINDOW_XDISPLAY (fade->priv->window),
 
381
                         GDK_WINDOW_XID (fade->priv->window),
 
382
                         gdk_x11_get_xatom_by_name ("_XROOTPMAP_ID"),
 
383
                         XA_PIXMAP, 32, PropModeAppend,
 
384
                         (guchar *) &zero_length_pixmap, 0);
 
385
}
 
386
 
 
387
static void
374
388
draw_background (GnomeBGCrossfade *fade)
375
389
{
376
390
        if (gdk_window_get_window_type (fade->priv->window) == GDK_WINDOW_ROOT) {
380
394
                            gdk_window_get_width (fade->priv->window),
381
395
                            gdk_window_get_height (fade->priv->window),
382
396
                            False);
 
397
 
 
398
                send_root_property_change_notification (fade);
 
399
 
383
400
                gdk_flush ();
384
401
        } else {
385
402
                gdk_window_invalidate_rect (fade->priv->window, NULL, FALSE);