summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-10-26 21:52:06 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-10-29 13:31:41 -0400
commita51a6a3ee23e31f868cdbea2b91171b0ddaabc79 (patch)
treef7c8cfe4bcf414cc90c472b3c10d6d552ecaef24 /demos
parent8bee62dd3695f3e07d3c0b487b38a5814ed6720a (diff)
downloadgtk+-a51a6a3ee23e31f868cdbea2b91171b0ddaabc79.tar.gz
Deprecate GtkColorChooser and implementations
These are being replaced by GtkColorDialog and GtkColorDialogButton. This commit only moves the headers for GtkColorChooserWidget and GtkColorChooserDialog to deprecated/, and keeps the implementations in gtk/, since they will eventually be salvaged into a private GtkColorChooserWindow.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/dnd.c2
-rw-r--r--demos/gtk-demo/font_features.c2
-rw-r--r--demos/gtk-demo/paint.c2
-rw-r--r--demos/widget-factory/widget-factory.c2
4 files changed, 8 insertions, 0 deletions
diff --git a/demos/gtk-demo/dnd.c b/demos/gtk-demo/dnd.c
index e406ca3972..fbf28ec305 100644
--- a/demos/gtk-demo/dnd.c
+++ b/demos/gtk-demo/dnd.c
@@ -726,7 +726,9 @@ do_dnd (GtkWidget *do_widget)
GtkCssProvider *provider;
GString *css;
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
button = gtk_color_button_new ();
+G_GNUC_END_IGNORE_DEPRECATIONS
g_object_unref (g_object_ref_sink (button));
provider = gtk_css_provider_new ();
diff --git a/demos/gtk-demo/font_features.c b/demos/gtk-demo/font_features.c
index ed71354f1d..fd358eb47b 100644
--- a/demos/gtk-demo/font_features.c
+++ b/demos/gtk-demo/font_features.c
@@ -21,6 +21,8 @@
#include "script-names.h"
#include "language-names.h"
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
/* {{{ ScriptLang object */
G_DECLARE_FINAL_TYPE (ScriptLang, script_lang, SCRIPT, LANG, GObject)
diff --git a/demos/gtk-demo/paint.c b/demos/gtk-demo/paint.c
index 92774b0efb..d60991f981 100644
--- a/demos/gtk-demo/paint.c
+++ b/demos/gtk-demo/paint.c
@@ -7,6 +7,8 @@
#include <glib/gi18n.h>
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
enum {
COLOR_SET,
N_SIGNALS
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index 705606fcfe..b41283d10f 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -1096,7 +1096,9 @@ set_color (GtkListBox *box, GtkListBoxRow *row, GtkColorChooser *chooser)
if (gdk_rgba_parse (&rgba, color))
{
g_signal_handlers_block_by_func (chooser, rgba_changed, box);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_color_chooser_set_rgba (chooser, &rgba);
+G_GNUC_END_IGNORE_DEPRECATIONS
g_signal_handlers_unblock_by_func (chooser, rgba_changed, box);
}
}