diff options
author | infirit <[email protected]> | 2014-11-10 17:46:47 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-10 17:46:47 +0100 |
commit | 435be8bdc4f0e9881b439825b16b29fecd02338e (patch) | |
tree | f310b6d7728ee49de111e067a74d000ed7f2b0a0 /mate-screenshot/screenshot-utils.h | |
parent | c75635285af8b70a781c2314aa7b03b2af716835 (diff) | |
download | mate-utils-435be8bdc4f0e9881b439825b16b29fecd02338e.tar.bz2 mate-utils-435be8bdc4f0e9881b439825b16b29fecd02338e.tar.xz |
mate-screenshot: Several fixes taken from gnome-screenshot
Code taken from commits:
screenshot: Rewrite event handling in area selection
772b9cc0774468ea21addb85ef843ee8dfef9e00
screenshot: add a workaround to avoid capturing the selection window
745eea03a3092fa055f76132971e3dd2bb4e8737
screenshot: Don't snap the selection
13741db3522aaac8be732567bca00d9c81929b72
Diffstat (limited to 'mate-screenshot/screenshot-utils.h')
-rw-r--r-- | mate-screenshot/screenshot-utils.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mate-screenshot/screenshot-utils.h b/mate-screenshot/screenshot-utils.h index 5404bde4..b9d13f7b 100644 --- a/mate-screenshot/screenshot-utils.h +++ b/mate-screenshot/screenshot-utils.h @@ -25,14 +25,13 @@ G_BEGIN_DECLS +typedef void (* SelectAreaCallback) (GdkRectangle *rectangle); + gboolean screenshot_grab_lock (void); void screenshot_release_lock (void); gchar *screenshot_get_window_title (GdkWindow *win); GdkWindow *screenshot_find_current_window (void); -gboolean screenshot_select_area (int *px, - int *py, - int *pwidth, - int *pheight); +void screenshot_select_area_async (SelectAreaCallback callback); GdkPixbuf *screenshot_get_pixbuf (GdkWindow *win, GdkRectangle *rectangle, gboolean include_pointer, |