Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkmessagedialog.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 * Copyright (C) 2000 Red Hat, Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18/*
19 * Modified by the GTK+ Team and others 1997-2003. See the AUTHORS
20 * file for a list of people on the GTK+ Team. See the ChangeLog
21 * files for a list of changes. These files are distributed with
22 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
23 */
24
25#pragma once
26
27#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
28#error "Only <gtk/gtk.h> can be included directly."
29#endif
30
32#include <gtk/gtkenums.h>
33
35
36
37#define GTK_TYPE_MESSAGE_DIALOG (gtk_message_dialog_get_type ())
38#define GTK_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialog))
39#define GTK_IS_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MESSAGE_DIALOG))
40
42typedef struct _GtkMessageDialogClass GtkMessageDialogClass;
43
48
49/**
50 * GtkButtonsType:
51 * @GTK_BUTTONS_NONE: no buttons at all
52 * @GTK_BUTTONS_OK: an OK button
53 * @GTK_BUTTONS_CLOSE: a Close button
54 * @GTK_BUTTONS_CANCEL: a Cancel button
55 * @GTK_BUTTONS_YES_NO: Yes and No buttons
56 * @GTK_BUTTONS_OK_CANCEL: OK and Cancel buttons
57 *
58 * Prebuilt sets of buttons for `GtkDialog`.
59 *
60 * If none of these choices are appropriate, simply use
61 * %GTK_BUTTONS_NONE and call [method@Gtk.Dialog.add_buttons].
62 *
63 * > Please note that %GTK_BUTTONS_OK, %GTK_BUTTONS_YES_NO
64 * > and %GTK_BUTTONS_OK_CANCEL are discouraged by the
65 * > [GNOME Human Interface Guidelines](https://developer.gnome.org/hig/).
66 */
76
79
82 GtkDialogFlags flags,
83 GtkMessageType type,
84 GtkButtonsType buttons,
85 const char *message_format,
86 ...) G_GNUC_PRINTF (5, 6);
87
90 GtkDialogFlags flags,
91 GtkMessageType type,
92 GtkButtonsType buttons,
93 const char *message_format,
94 ...) G_GNUC_PRINTF (5, 6);
95
98 const char *str);
99
102 const char *message_format,
103 ...) G_GNUC_PRINTF (2, 3);
104
107 const char *message_format,
108 ...) G_GNUC_PRINTF (2, 3);
109
112
114
116
#define GDK_DEPRECATED_IN_4_10
#define GDK_AVAILABLE_IN_ALL
#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
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
GtkDialogFlags
Definition gtkdialog.h:45
GtkMessageType
Definition gtkenums.h:344
GDK_DEPRECATED_IN_4_10 GtkWidget * gtk_message_dialog_new(GtkWindow *parent, GtkDialogFlags flags, GtkMessageType type, GtkButtonsType buttons, const char *message_format,...) G_GNUC_PRINTF(5
GDK_DEPRECATED_IN_4_10 GtkWidget GDK_DEPRECATED_IN_4_10 GtkWidget * gtk_message_dialog_new_with_markup(GtkWindow *parent, GtkDialogFlags flags, GtkMessageType type, GtkButtonsType buttons, const char *message_format,...) G_GNUC_PRINTF(5
struct _GtkMessageDialogClass GtkMessageDialogClass
GtkButtonsType
@ GTK_BUTTONS_OK
@ GTK_BUTTONS_CLOSE
@ GTK_BUTTONS_YES_NO
@ GTK_BUTTONS_CANCEL
@ GTK_BUTTONS_OK_CANCEL
@ GTK_BUTTONS_NONE
GDK_DEPRECATED_IN_4_10 void gtk_message_dialog_format_secondary_text(GtkMessageDialog *message_dialog, const char *message_format,...) G_GNUC_PRINTF(2
GDK_DEPRECATED_IN_4_10 GtkWidget GDK_DEPRECATED_IN_4_10 GtkWidget GDK_DEPRECATED_IN_4_10 void gtk_message_dialog_set_markup(GtkMessageDialog *message_dialog, const char *str)
GDK_DEPRECATED_IN_4_10 void GDK_DEPRECATED_IN_4_10 void gtk_message_dialog_format_secondary_markup(GtkMessageDialog *message_dialog, const char *message_format,...) G_GNUC_PRINTF(2
GDK_AVAILABLE_IN_ALL GType gtk_message_dialog_get_type(void) G_GNUC_CONST
GDK_DEPRECATED_IN_4_10 void GDK_DEPRECATED_IN_4_10 void GDK_DEPRECATED_IN_4_10 GtkWidget * gtk_message_dialog_get_message_area(GtkMessageDialog *message_dialog)
gsize GType
Definition gtype.h:427