2022-10-27 01:27:24 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
*
|
|
|
|
* Copyright (C) 2022 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/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <gdk/gdk.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GTK_DIALOG_ERROR:
|
|
|
|
*
|
|
|
|
* The error domain for errors returned by async dialog functions.
|
|
|
|
*
|
|
|
|
* Since: 4.10
|
|
|
|
*/
|
|
|
|
#define GTK_DIALOG_ERROR (gtk_dialog_error_quark ())
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GtkDialogError:
|
|
|
|
* @GTK_DIALOG_ERROR_FAILED: Generic error condition for when
|
|
|
|
* an operation fails and no more specific code is applicable
|
|
|
|
* @GTK_DIALOG_ERROR_ABORTED: The async function call was aborted
|
|
|
|
* programmatically (via its `GCancellable`)
|
2022-11-23 22:32:19 +00:00
|
|
|
* @GTK_DIALOG_ERROR_DISMISSED: The operation was cancelled
|
|
|
|
* by the user (via a Cancel or Close button)
|
2022-10-27 01:27:24 +00:00
|
|
|
*
|
|
|
|
* Error codes in the `GTK_DIALOG_ERROR` domain that can be returned
|
|
|
|
* by async dialog functions.
|
|
|
|
*
|
|
|
|
* Since: 4.10
|
|
|
|
*/
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GTK_DIALOG_ERROR_FAILED,
|
|
|
|
GTK_DIALOG_ERROR_ABORTED,
|
2022-11-23 22:32:19 +00:00
|
|
|
GTK_DIALOG_ERROR_DISMISSED
|
2022-10-27 01:27:24 +00:00
|
|
|
} GtkDialogError;
|
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_4_10
|
|
|
|
GQuark gtk_dialog_error_quark (void);
|
|
|
|
|
|
|
|
G_END_DECLS
|