~ubuntu-branches/ubuntu/quantal/epiphany-extensions/quantal

« back to all changes in this revision

Viewing changes to extensions/push-scroller/ephy-push-scroller.c

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2011-04-14 19:04:24 UTC
  • mfrom: (1.1.43 upstream) (2.3.16 experimental)
  • Revision ID: james.westby@ubuntu.com-20110414190424-df2o8wz2pei97hbd
Tags: 3.0.0-2
debian/control.in: bump build-dep on epiphany.

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
        /* grab the pointer */
251
251
        widget = GTK_WIDGET (priv->window);
252
252
        gtk_grab_add (widget);
253
 
        if (gdk_pointer_grab (widget->window, FALSE,
 
253
        if (gdk_pointer_grab (gtk_widget_get_window (widget), FALSE,
254
254
                              GDK_POINTER_MOTION_MASK |
255
255
                              GDK_BUTTON_PRESS_MASK |
256
256
                              GDK_BUTTON_RELEASE_MASK,
260
260
                return;
261
261
        }
262
262
 
263
 
        if (gdk_keyboard_grab (widget->window, FALSE, timestamp) != GDK_GRAB_SUCCESS)
 
263
        if (gdk_keyboard_grab (gtk_widget_get_window (widget), FALSE, timestamp) != GDK_GRAB_SUCCESS)
264
264
        {
265
265
                ephy_push_scroller_stop (scroller, timestamp);
266
266
                return;