diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-10-29 14:59:48 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-11-05 16:52:52 +0100 |
commit | 81cef0091e19874fed5dd4aadb136a7518a6d662 (patch) | |
tree | f3607e8fa722886e8e1e4736efd3f39f784b96ad /gtk/gtknativedialogprivate.h | |
parent | 0f6c7682b3a11d932e34a3a0bb078d9b4503de3f (diff) | |
download | gtk+-81cef0091e19874fed5dd4aadb136a7518a6d662.tar.gz |
Add GtkNativeDialog abstract base class
This is a base class that essentially mirrors GtkDialog, but
it is not a GtkWindow, as the actual implemetation will be using
native code.
The base class has show and hide vfuncs, as well as a helper function
to run the dialog in a modal fashion.
This will be later used by the native file chooser dialog.
Diffstat (limited to 'gtk/gtknativedialogprivate.h')
-rw-r--r-- | gtk/gtknativedialogprivate.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gtk/gtknativedialogprivate.h b/gtk/gtknativedialogprivate.h new file mode 100644 index 0000000000..8f7013ad54 --- /dev/null +++ b/gtk/gtknativedialogprivate.h @@ -0,0 +1,31 @@ +/* GTK - The GIMP Toolkit + * gtknativedialogprivate.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_PRIVATE_H__ +#define __GTK_NATIVE_DIALOG_PRIVATE_H__ + +#include <gtk/gtknativedialog.h> + +G_BEGIN_DECLS + +void _gtk_native_dialog_emit_response (GtkNativeDialog *self, + int response_id); + +G_END_DECLS + +#endif /* __GTK_NATIVE_DIALOG_PRIVATE_H__ */ |