Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkalertdialog.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 *
3 * Copyright (C) 2022 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20
21#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
22#error "Only <gtk/gtk.h> can be included directly."
23#endif
24
25#include <gdk/gdk.h>
26#include <gtk/gtkwindow.h>
27
29
30#define GTK_TYPE_ALERT_DIALOG (gtk_alert_dialog_get_type ())
31
33G_DECLARE_FINAL_TYPE (GtkAlertDialog, gtk_alert_dialog, GTK, ALERT_DIALOG, GObject)
34
36GtkAlertDialog *gtk_alert_dialog_new (const char *format,
37 ...) G_GNUC_PRINTF (1, 2);
38
40gboolean gtk_alert_dialog_get_modal (GtkAlertDialog *self);
41
43void gtk_alert_dialog_set_modal (GtkAlertDialog *self,
44 gboolean modal);
45
47const char * gtk_alert_dialog_get_message (GtkAlertDialog *self);
48
50void gtk_alert_dialog_set_message (GtkAlertDialog *self,
51 const char *message);
52
54const char * gtk_alert_dialog_get_detail (GtkAlertDialog *self);
55
57void gtk_alert_dialog_set_detail (GtkAlertDialog *self,
58 const char *detail);
59
61const char * const *
62 gtk_alert_dialog_get_buttons (GtkAlertDialog *self);
63
65void gtk_alert_dialog_set_buttons (GtkAlertDialog *self,
66 const char * const *labels);
67
69int gtk_alert_dialog_get_cancel_button (GtkAlertDialog *self);
70
72void gtk_alert_dialog_set_cancel_button (GtkAlertDialog *self,
73 int button);
75int gtk_alert_dialog_get_default_button (GtkAlertDialog *self);
76
78void gtk_alert_dialog_set_default_button (GtkAlertDialog *self,
79 int button);
80
82void gtk_alert_dialog_choose (GtkAlertDialog *self,
83 GtkWindow *parent,
84 GCancellable *cancellable,
85 GAsyncReadyCallback callback,
86 gpointer user_data);
87
89int gtk_alert_dialog_choose_finish (GtkAlertDialog *self,
90 GAsyncResult *result,
91 GError **error);
92
94void gtk_alert_dialog_show (GtkAlertDialog *self,
95 GtkWindow *parent);
96
#define GDK_AVAILABLE_IN_4_10
struct _GAsyncResult GAsyncResult
Definition giotypes.h:36
void(* GAsyncReadyCallback)(GObject *source_object, GAsyncResult *res, gpointer data)
Definition giotypes.h:190
#define G_END_DECLS
Definition gmacros.h:910
#define G_GNUC_PRINTF(format_idx, arg_idx)
Definition gmacros.h:608
#define G_BEGIN_DECLS
Definition gmacros.h:909
GDK_AVAILABLE_IN_4_10 void gtk_alert_dialog_set_detail(GtkAlertDialog *self, const char *detail)
GDK_AVAILABLE_IN_4_10 int gtk_alert_dialog_get_cancel_button(GtkAlertDialog *self)
GDK_AVAILABLE_IN_4_10 int gtk_alert_dialog_get_default_button(GtkAlertDialog *self)
GDK_AVAILABLE_IN_4_10 const char * gtk_alert_dialog_get_message(GtkAlertDialog *self)
GDK_AVAILABLE_IN_4_10 const char * gtk_alert_dialog_get_detail(GtkAlertDialog *self)
GDK_AVAILABLE_IN_4_10 void gtk_alert_dialog_set_buttons(GtkAlertDialog *self, const char *const *labels)
GDK_AVAILABLE_IN_4_10 void gtk_alert_dialog_set_modal(GtkAlertDialog *self, gboolean modal)
GDK_AVAILABLE_IN_4_10 GDK_AVAILABLE_IN_4_10 GtkAlertDialog GDK_AVAILABLE_IN_4_10 gboolean gtk_alert_dialog_get_modal(GtkAlertDialog *self)
GDK_AVAILABLE_IN_4_10 const char *const * gtk_alert_dialog_get_buttons(GtkAlertDialog *self)
GDK_AVAILABLE_IN_4_10 void gtk_alert_dialog_set_message(GtkAlertDialog *self, const char *message)
GDK_AVAILABLE_IN_4_10 void gtk_alert_dialog_choose(GtkAlertDialog *self, GtkWindow *parent, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_4_10 void gtk_alert_dialog_set_cancel_button(GtkAlertDialog *self, int button)
GDK_AVAILABLE_IN_4_10 void gtk_alert_dialog_set_default_button(GtkAlertDialog *self, int button)
GDK_AVAILABLE_IN_4_10 void gtk_alert_dialog_show(GtkAlertDialog *self, GtkWindow *parent)
GDK_AVAILABLE_IN_4_10 GDK_AVAILABLE_IN_4_10 GtkAlertDialog * gtk_alert_dialog_new(const char *format,...) G_GNUC_PRINTF(1
GDK_AVAILABLE_IN_4_10 int gtk_alert_dialog_choose_finish(GtkAlertDialog *self, GAsyncResult *result, GError **error)
#define G_DECLARE_FINAL_TYPE(ModuleObjName, module_obj_name, MODULE, OBJ_NAME, ParentName)
Definition gtype.h:1602
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
json_t format(printf, 1, 2)))
static void error(LoadState *S, const char *why)