#include <glib/gi18n.h>
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static GtkWidget *window = NULL;
static GtkWidget *entry1 = NULL;
static GtkWidget *entry2 = NULL;
#include <glib/gi18n.h>
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static GtkWidget *window = NULL;
static void
--- /dev/null
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 2000 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/>.
+ */
+
+/*
+ * Modified by the GTK+ Team and others 1997-2003. See the AUTHORS
+ * file for a list of people on the GTK+ Team. See the ChangeLog
+ * files for a list of changes. These files are distributed with
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ */
+
+#ifndef __GTK_MESSAGE_DIALOG_H__
+#define __GTK_MESSAGE_DIALOG_H__
+
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
+#include <gtk/gtkdialog.h>
+#include <gtk/gtkenums.h>
+
+G_BEGIN_DECLS
+
+
+#define GTK_TYPE_MESSAGE_DIALOG (gtk_message_dialog_get_type ())
+#define GTK_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialog))
+#define GTK_IS_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MESSAGE_DIALOG))
+
+typedef struct _GtkMessageDialog GtkMessageDialog;
+typedef struct _GtkMessageDialogClass GtkMessageDialogClass;
+
+struct _GtkMessageDialog
+{
+ GtkDialog parent_instance;
+};
+
+/**
+ * GtkButtonsType:
+ * @GTK_BUTTONS_NONE: no buttons at all
+ * @GTK_BUTTONS_OK: an OK button
+ * @GTK_BUTTONS_CLOSE: a Close button
+ * @GTK_BUTTONS_CANCEL: a Cancel button
+ * @GTK_BUTTONS_YES_NO: Yes and No buttons
+ * @GTK_BUTTONS_OK_CANCEL: OK and Cancel buttons
+ *
+ * Prebuilt sets of buttons for `GtkDialog`.
+ *
+ * If none of these choices are appropriate, simply use
+ * %GTK_BUTTONS_NONE and call [method@Gtk.Dialog.add_buttons].
+ *
+ * > Please note that %GTK_BUTTONS_OK, %GTK_BUTTONS_YES_NO
+ * > and %GTK_BUTTONS_OK_CANCEL are discouraged by the
+ * > [GNOME Human Interface Guidelines](http://library.gnome.org/devel/hig-book/stable/).
+ */
+typedef enum
+{
+ GTK_BUTTONS_NONE,
+ GTK_BUTTONS_OK,
+ GTK_BUTTONS_CLOSE,
+ GTK_BUTTONS_CANCEL,
+ GTK_BUTTONS_YES_NO,
+ GTK_BUTTONS_OK_CANCEL
+} GtkButtonsType;
+
+GDK_AVAILABLE_IN_ALL
+GType gtk_message_dialog_get_type (void) G_GNUC_CONST;
+
+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, 6);
+
+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, 6);
+
+GDK_DEPRECATED_IN_4_10
+void gtk_message_dialog_set_markup (GtkMessageDialog *message_dialog,
+ const char *str);
+
+GDK_DEPRECATED_IN_4_10
+void gtk_message_dialog_format_secondary_text (GtkMessageDialog *message_dialog,
+ const char *message_format,
+ ...) G_GNUC_PRINTF (2, 3);
+
+GDK_DEPRECATED_IN_4_10
+void gtk_message_dialog_format_secondary_markup (GtkMessageDialog *message_dialog,
+ const char *message_format,
+ ...) G_GNUC_PRINTF (2, 3);
+
+GDK_DEPRECATED_IN_4_10
+GtkWidget *gtk_message_dialog_get_message_area (GtkMessageDialog *message_dialog);
+
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkMessageDialog, g_object_unref)
+
+G_END_DECLS
+
+#endif /* __GTK_MESSAGE_DIALOG_H__ */
'deprecated/gtkfontchooserwidget.h',
'deprecated/gtkiconview.h',
'deprecated/gtkliststore.h',
+ 'deprecated/gtkmessagedialog.h',
'deprecated/gtkrender.h',
'deprecated/gtkstylecontext.h',
'deprecated/gtktreednd.h',
#include <gtk/gtkmediafile.h>
#include <gtk/gtkmediastream.h>
#include <gtk/gtkmenubutton.h>
-#include <gtk/gtkmessagedialog.h>
+#include <gtk/deprecated/gtkmessagedialog.h>
#include <gtk/gtkmountoperation.h>
#include <gtk/gtkmultifilter.h>
#include <gtk/gtkmultiselection.h>
#include "gtkalertdialog.h"
#include "gtkbutton.h"
-#include "gtkmessagedialog.h"
+#include "deprecated/gtkmessagedialog.h"
#include <glib/gi18n-lib.h>
/**
#include "config.h"
-#include "gtkmessagedialog.h"
+#include "deprecated/gtkmessagedialog.h"
#include "gtkbox.h"
#include "gtkbuildable.h"
#include <string.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
/**
* GtkMessageDialog:
*
*
* The `GtkMessageDialog` implementation of the `GtkBuildable` interface exposes
* the message area as an internal child with the name “message_area”.
+ *
+ * Deprecated: 4.10: Use [class@Gtk.AlertDialog] instead
*/
typedef struct
* for more details.
*
* Returns: (transfer none): a new `GtkMessageDialog`
+ *
+ * Deprecated: 4.10: Use [class@Gtk.AlertDialog] instead
*/
GtkWidget*
gtk_message_dialog_new (GtkWindow *parent,
* ```
*
* Returns: a new `GtkMessageDialog`
+ *
+ * Deprecated: 4.10: Use [class@Gtk.AlertDialog] instead
**/
GtkWidget*
gtk_message_dialog_new_with_markup (GtkWindow *parent,
* @str: string with Pango markup
*
* Sets the text of the message dialog.
+ *
+ * Deprecated: 4.10: Use [class@Gtk.AlertDialog] instead
*/
void
gtk_message_dialog_set_markup (GtkMessageDialog *message_dialog,
* @...: arguments for @message_format
*
* Sets the secondary text of the message dialog.
+ *
+ * Deprecated: 4.10: Use [class@Gtk.AlertDialog] instead
*/
void
gtk_message_dialog_format_secondary_text (GtkMessageDialog *message_dialog,
* "%s", msg);
* g_free (msg);
* ```
+ *
+ * Deprecated: 4.10: Use [class@Gtk.AlertDialog] instead
*/
void
gtk_message_dialog_format_secondary_markup (GtkMessageDialog *message_dialog,
*
* Returns: (transfer none): A `GtkBox` corresponding to the
* “message area” in the @message_dialog
+ *
+ * Deprecated: 4.10: Use [class@Gtk.AlertDialog] instead
*/
GtkWidget *
gtk_message_dialog_get_message_area (GtkMessageDialog *message_dialog)
+++ /dev/null
-/* GTK - The GIMP Toolkit
- * Copyright (C) 2000 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/>.
- */
-
-/*
- * Modified by the GTK+ Team and others 1997-2003. See the AUTHORS
- * file for a list of people on the GTK+ Team. See the ChangeLog
- * files for a list of changes. These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
- */
-
-#ifndef __GTK_MESSAGE_DIALOG_H__
-#define __GTK_MESSAGE_DIALOG_H__
-
-#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
-
-#include <gtk/gtkdialog.h>
-#include <gtk/gtkenums.h>
-
-G_BEGIN_DECLS
-
-
-#define GTK_TYPE_MESSAGE_DIALOG (gtk_message_dialog_get_type ())
-#define GTK_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialog))
-#define GTK_IS_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MESSAGE_DIALOG))
-
-typedef struct _GtkMessageDialog GtkMessageDialog;
-typedef struct _GtkMessageDialogClass GtkMessageDialogClass;
-
-struct _GtkMessageDialog
-{
- GtkDialog parent_instance;
-};
-
-/**
- * GtkButtonsType:
- * @GTK_BUTTONS_NONE: no buttons at all
- * @GTK_BUTTONS_OK: an OK button
- * @GTK_BUTTONS_CLOSE: a Close button
- * @GTK_BUTTONS_CANCEL: a Cancel button
- * @GTK_BUTTONS_YES_NO: Yes and No buttons
- * @GTK_BUTTONS_OK_CANCEL: OK and Cancel buttons
- *
- * Prebuilt sets of buttons for `GtkDialog`.
- *
- * If none of these choices are appropriate, simply use
- * %GTK_BUTTONS_NONE and call [method@Gtk.Dialog.add_buttons].
- *
- * > Please note that %GTK_BUTTONS_OK, %GTK_BUTTONS_YES_NO
- * > and %GTK_BUTTONS_OK_CANCEL are discouraged by the
- * > [GNOME Human Interface Guidelines](http://library.gnome.org/devel/hig-book/stable/).
- */
-typedef enum
-{
- GTK_BUTTONS_NONE,
- GTK_BUTTONS_OK,
- GTK_BUTTONS_CLOSE,
- GTK_BUTTONS_CANCEL,
- GTK_BUTTONS_YES_NO,
- GTK_BUTTONS_OK_CANCEL
-} GtkButtonsType;
-
-GDK_AVAILABLE_IN_ALL
-GType gtk_message_dialog_get_type (void) G_GNUC_CONST;
-
-GDK_AVAILABLE_IN_ALL
-GtkWidget* gtk_message_dialog_new (GtkWindow *parent,
- GtkDialogFlags flags,
- GtkMessageType type,
- GtkButtonsType buttons,
- const char *message_format,
- ...) G_GNUC_PRINTF (5, 6);
-
-GDK_AVAILABLE_IN_ALL
-GtkWidget* gtk_message_dialog_new_with_markup (GtkWindow *parent,
- GtkDialogFlags flags,
- GtkMessageType type,
- GtkButtonsType buttons,
- const char *message_format,
- ...) G_GNUC_PRINTF (5, 6);
-
-GDK_AVAILABLE_IN_ALL
-void gtk_message_dialog_set_markup (GtkMessageDialog *message_dialog,
- const char *str);
-
-GDK_AVAILABLE_IN_ALL
-void gtk_message_dialog_format_secondary_text (GtkMessageDialog *message_dialog,
- const char *message_format,
- ...) G_GNUC_PRINTF (2, 3);
-
-GDK_AVAILABLE_IN_ALL
-void gtk_message_dialog_format_secondary_markup (GtkMessageDialog *message_dialog,
- const char *message_format,
- ...) G_GNUC_PRINTF (2, 3);
-
-GDK_AVAILABLE_IN_ALL
-GtkWidget *gtk_message_dialog_get_message_area (GtkMessageDialog *message_dialog);
-
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkMessageDialog, g_object_unref)
-
-G_END_DECLS
-
-#endif /* __GTK_MESSAGE_DIALOG_H__ */
#include <glib/gstdio.h>
#include "gtkprintoperation-private.h"
#include "gtkprintoperation-portal.h"
-#include "gtkmessagedialog.h"
#include <cairo-pdf.h>
#include <cairo-ps.h>
#include "gtkmarshalers.h"
#include <glib/gi18n-lib.h>
#include "gtkprivate.h"
-#include "gtkmessagedialog.h"
+#include "deprecated/gtkmessagedialog.h"
#include "gtkwindowgroup.h"
#include "gtktypebuiltins.h"
{
GtkWidget *progress;
- progress = gtk_message_dialog_new (parent, 0,
- GTK_MESSAGE_OTHER,
- GTK_BUTTONS_CANCEL,
- _("Preparing"));
- g_signal_connect (progress, "response",
- G_CALLBACK (handle_progress_response), op);
-
- priv->show_progress_timeout_id =
- g_timeout_add (SHOW_PROGRESS_TIME,
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+ progress = gtk_message_dialog_new (parent, 0,
+ GTK_MESSAGE_OTHER,
+ GTK_BUTTONS_CANCEL,
+ _("Preparing"));
+G_GNUC_END_IGNORE_DEPRECATIONS
+ g_signal_connect (progress, "response",
+ G_CALLBACK (handle_progress_response), op);
+
+ priv->show_progress_timeout_id =
+ g_timeout_add (SHOW_PROGRESS_TIME,
(GSourceFunc) show_progress_timeout,
data);
gdk_source_set_static_name_by_id (priv->show_progress_timeout_id, "[gtk] show_progress_timeout");
{
GtkWidget *error_dialog;
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
error_dialog = gtk_message_dialog_new (parent,
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (error_dialog),
_("The most probable reason is that a temporary file could not be created."));
+G_GNUC_END_IGNORE_DEPRECATIONS
if (parent && gtk_window_has_group (parent))
gtk_window_group_add_window (gtk_window_get_group (parent),
#include "gtkframe.h"
#include "gtklabel.h"
#include "gtkbuildable.h"
-#include "gtkmessagedialog.h"
+#include "deprecated/gtkmessagedialog.h"
#include "gtkbutton.h"
#include "gtksnapshot.h"
#include "gtkrenderbackgroundprivate.h"
dirname = g_file_get_parse_name (parent);
g_object_unref (parent);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
message_dialog = gtk_message_dialog_new (toplevel,
GTK_DIALOG_MODAL |
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_RESPONSE_ACCEPT);
gtk_dialog_set_default_response (GTK_DIALOG (message_dialog),
GTK_RESPONSE_ACCEPT);
+G_GNUC_END_IGNORE_DEPRECATIONS
if (gtk_window_has_group (toplevel))
gtk_window_group_add_window (gtk_window_get_group (toplevel),
#include <glib/gi18n-lib.h>
#include "gtkmain.h"
#include "gtkmarshalers.h"
-#include "gtkmessagedialog.h"
+#include "deprecated/gtkmessagedialog.h"
#include "gtkpointerfocusprivate.h"
#include "gtkprivate.h"
#include "gtkroot.h"
if (warn)
{
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
dialog = gtk_message_dialog_new (GTK_WINDOW (inspector_window),
GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
"application to break or crash."));
area = gtk_message_dialog_get_message_area (GTK_MESSAGE_DIALOG (dialog));
+G_GNUC_END_IGNORE_DEPRECATIONS
check = gtk_check_button_new_with_label (_("Don’t show this message again"));
gtk_widget_set_margin_start (check, 10);
gtk_widget_show (check);
#include "window.h"
#include "gtktextview.h"
-#include "gtkmessagedialog.h"
#include "gtkfilechooserdialog.h"
#include "gtkcheckbutton.h"
#include "gtklabel.h"
'gtkmediafile.h',
'gtkmediastream.h',
'gtkmenubutton.h',
- 'gtkmessagedialog.h',
'gtkmountoperation.h',
'gtkmultifilter.h',
'gtkmultiselection.h',
# endif
#endif
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
#if 0
static GtkWidget *preview_label;
static GtkWidget *preview_image;
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static void
value_changed (GtkWidget *button,
double volume,