2015-10-29 13:59:48 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
* gtknativedialog.h: Native dialog
|
|
|
|
* Copyright (C) 2015, 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_NATIVE_DIALOG_H__
|
|
|
|
#define __GTK_NATIVE_DIALOG_H__
|
|
|
|
|
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <gtk/gtkwindow.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GTK_TYPE_NATIVE_DIALOG (gtk_native_dialog_get_type ())
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2015-10-29 13:59:48 +00:00
|
|
|
G_DECLARE_DERIVABLE_TYPE (GtkNativeDialog, gtk_native_dialog, GTK, NATIVE_DIALOG, GObject)
|
|
|
|
|
2020-12-16 16:01:14 +00:00
|
|
|
/**
|
|
|
|
* GtkNativeDialogClass:
|
2021-05-20 13:17:04 +00:00
|
|
|
* @response: class handler for the `GtkNativeDialog::response` signal
|
2020-12-16 16:01:14 +00:00
|
|
|
*
|
2021-05-20 13:17:04 +00:00
|
|
|
* Class structure for `GtkNativeDialog`.
|
2020-12-16 16:01:14 +00:00
|
|
|
*/
|
2015-10-29 13:59:48 +00:00
|
|
|
struct _GtkNativeDialogClass
|
|
|
|
{
|
2020-12-16 16:01:14 +00:00
|
|
|
/*< private >*/
|
2015-10-29 13:59:48 +00:00
|
|
|
GObjectClass parent_class;
|
|
|
|
|
2020-12-16 16:01:14 +00:00
|
|
|
/*< public >*/
|
2020-07-24 13:54:49 +00:00
|
|
|
void (* response) (GtkNativeDialog *self, int response_id);
|
2015-10-29 13:59:48 +00:00
|
|
|
|
|
|
|
/* <private> */
|
|
|
|
void (* show) (GtkNativeDialog *self);
|
|
|
|
void (* hide) (GtkNativeDialog *self);
|
|
|
|
|
|
|
|
/* Padding for future expansion */
|
|
|
|
void (*_gtk_reserved1) (void);
|
|
|
|
void (*_gtk_reserved2) (void);
|
|
|
|
void (*_gtk_reserved3) (void);
|
|
|
|
void (*_gtk_reserved4) (void);
|
|
|
|
};
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2015-10-29 13:59:48 +00:00
|
|
|
void gtk_native_dialog_show (GtkNativeDialog *self);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2015-10-29 13:59:48 +00:00
|
|
|
void gtk_native_dialog_hide (GtkNativeDialog *self);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2015-11-11 15:06:44 +00:00
|
|
|
void gtk_native_dialog_destroy (GtkNativeDialog *self);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2015-10-29 13:59:48 +00:00
|
|
|
gboolean gtk_native_dialog_get_visible (GtkNativeDialog *self);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2015-10-29 13:59:48 +00:00
|
|
|
void gtk_native_dialog_set_modal (GtkNativeDialog *self,
|
|
|
|
gboolean modal);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2015-10-29 13:59:48 +00:00
|
|
|
gboolean gtk_native_dialog_get_modal (GtkNativeDialog *self);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2015-10-29 13:59:48 +00:00
|
|
|
void gtk_native_dialog_set_title (GtkNativeDialog *self,
|
|
|
|
const char *title);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2015-10-29 13:59:48 +00:00
|
|
|
const char * gtk_native_dialog_get_title (GtkNativeDialog *self);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2015-10-29 13:59:48 +00:00
|
|
|
void gtk_native_dialog_set_transient_for (GtkNativeDialog *self,
|
|
|
|
GtkWindow *parent);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2015-10-29 13:59:48 +00:00
|
|
|
GtkWindow * gtk_native_dialog_get_transient_for (GtkNativeDialog *self);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_NATIVE_DIALOG_H__ */
|