mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 17:59:37 +00:00

Freedesktop (XDG) portals are a collection of D-Bus APIs that work across desktop environments, display servers and work within containerized applications, like Flatpak. The internal implementation can then choose to implement these in such a way that takes into account security considerations, as well as making sure the user consents to certain actions. One such portal is the `Screenshot` portal, which contains a `Screenshot()` method as well as `PickColor()`. We already use the former for taking a screenshot, and this commit makes sure our color picker also makes use of the latter. By doing this, color picking is now possible on the major Wayland compositors. (Honestly, we should remove DE-specific backends like that of KWin, to have less variation on the possible results of a color picking operation). Fixes https://gitlab.gnome.org/GNOME/gimp/-/issues/1074
25 lines
887 B
C
25 lines
887 B
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
*
|
|
* gimppickbutton-xdg.h
|
|
* Copyright (C) 2021 Niels De Graef <nielsdegraef@gmail.com>
|
|
*
|
|
* 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
|
|
* Library 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
|
|
* <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/* Private header file which is not meant to be exported. */
|
|
#ifndef __GIMP_PICK_BUTTON_XDG_H__
|
|
#define __GIMP_PICK_BUTTON_XDG_H__
|
|
|
|
gboolean _gimp_pick_button_xdg_available (void);
|
|
void _gimp_pick_button_xdg_pick (GimpPickButton *button);
|
|
|
|
#endif /* __GIMP_PICK_BUTTON_XDG_H__ */
|
|
|