mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 17:10:04 +00:00
b86f5a4086
This adds an inhibit api that code from the reftest module can use to delay the taking of the snapshot. Also refactor the code in gtk-reftest to use the inhibit mechanism for its own delaying of the snapshot until after the first expose.
29 lines
929 B
C
29 lines
929 B
C
/* GTK - The GIMP Toolkit
|
|
* Copyright (C) 2014 Red Hat, Inc.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __GTK_REFTEST_H__
|
|
#define __GTK_REFTEST_H__
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void reftest_inhibit_snapshot (void);
|
|
void reftest_uninhibit_snapshot (void);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GTK_REFTEST_H__ */
|