Changeset 155329 in webkit


Ignore:
Timestamp:
Sep 9, 2013 12:31:39 AM (11 years ago)
Author:
Claudio Saavedra
Message:

[GTK] ghost cursor when mouse hovers over an image file in a tab
https://bugs.webkit.org/show_bug.cgi?id=120675

Reviewed by Carlos Garcia Campos.

No new tests, covered by existing.

  • platform/gtk/CursorGtk.cpp:

(WebCore::createNamedCursor): Use new gdk_cursor_new_from_surface()
when compiling against GTK+ 3.9.12 or newer.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r155325 r155329  
     12013-09-09  Claudio Saavedra  <csaavedra@igalia.com>
     2
     3        [GTK]  ghost cursor when mouse hovers over an image file in a tab
     4        https://bugs.webkit.org/show_bug.cgi?id=120675
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        No new tests, covered by existing.
     9
     10        * platform/gtk/CursorGtk.cpp:
     11        (WebCore::createNamedCursor): Use new gdk_cursor_new_from_surface()
     12        when compiling against GTK+ 3.9.12 or newer.
     13
    1142013-09-08  Santosh Mahto  <santosh.ma@samsung.com>
    215
  • trunk/Source/WebCore/platform/gtk/CursorGtk.cpp

    r155113 r155329  
    5555    cairo_mask_surface(cr.get(), mask.get(), 0, 0);
    5656
     57#if GTK_CHECK_VERSION(3, 9, 12)
     58    return adoptGRef(gdk_cursor_new_from_surface(gdk_display_get_default(), surface.get(), cursor.hot_x, cursor.hot_y));
     59#else
    5760    GRefPtr<GdkPixbuf> pixbuf = adoptGRef(gdk_pixbuf_get_from_surface(surface.get(), 0, 0, 32, 32));
    5861    return adoptGRef(gdk_cursor_new_from_pixbuf(gdk_display_get_default(), pixbuf.get(), cursor.hot_x, cursor.hot_y));
     62#endif
    5963}
    6064
Note: See TracChangeset for help on using the changeset viewer.