[glade/wip/chergert/fix-deprecations: 1/3] gladeui: ignore various GParameter deprecations
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/wip/chergert/fix-deprecations: 1/3] gladeui: ignore various GParameter deprecations
- Date: Mon, 5 Aug 2019 22:02:41 +0000 (UTC)
commit 1f70884b35e6c252724cfbe9d852f0375530601c
Author: Christian Hergert <chergert redhat com>
Date: Mon Aug 5 14:56:55 2019 -0700
gladeui: ignore various GParameter deprecations
These are used in various public API but we don't need to warn about them
because GLib warnings will be in effect by the consumers.
gladeui/glade-widget-adaptor.c | 4 ++++
gladeui/glade-widget-adaptor.h | 4 ++++
gladeui/glade-widget.c | 2 ++
plugins/gtk+/glade-gtk-about-dialog.c | 2 ++
4 files changed, 12 insertions(+)
---
diff --git a/gladeui/glade-widget-adaptor.c b/gladeui/glade-widget-adaptor.c
index 0cf722ad..f2a0d66c 100644
--- a/gladeui/glade-widget-adaptor.c
+++ b/gladeui/glade-widget-adaptor.c
@@ -896,6 +896,7 @@ glade_widget_adaptor_object_create_widget (GladeWidgetAdaptor *adaptor,
first_property_name, var_args));
}
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static GObject *
glade_widget_adaptor_object_construct_object (GladeWidgetAdaptor *adaptor,
guint n_parameters,
@@ -903,6 +904,7 @@ glade_widget_adaptor_object_construct_object (GladeWidgetAdaptor *adaptor,
{
return g_object_newv (adaptor->priv->type, n_parameters, parameters);
}
+G_GNUC_END_IGNORE_DEPRECATIONS
static void
glade_widget_adaptor_object_destroy_object (GladeWidgetAdaptor *adaptor,
@@ -3216,6 +3218,7 @@ glade_widget_adaptor_get_pack_property_def (GladeWidgetAdaptor *adaptor,
return NULL;
}
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/**
* glade_widget_class_default_params:
* @adaptor: a #GladeWidgetAdaptor
@@ -3317,6 +3320,7 @@ glade_widget_adaptor_construct_object (GladeWidgetAdaptor *adaptor,
n_parameters,
parameters);
}
+G_GNUC_END_IGNORE_DEPRECATIONS
/**
* glade_widget_adaptor_destroy_object:
diff --git a/gladeui/glade-widget-adaptor.h b/gladeui/glade-widget-adaptor.h
index 376edb0d..aacf5f12 100644
--- a/gladeui/glade-widget-adaptor.h
+++ b/gladeui/glade-widget-adaptor.h
@@ -407,6 +407,7 @@ typedef void (* GladeReplaceChildFunc) (GladeWidgetAdaptor *adaptor,
GObject *new_obj);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/**
* GladeConstructObjectFunc:
* @adaptor: A #GladeWidgetAdaptor
@@ -423,6 +424,7 @@ typedef void (* GladeReplaceChildFunc) (GladeWidgetAdaptor *adaptor,
typedef GObject *(* GladeConstructObjectFunc) (GladeWidgetAdaptor *adaptor,
guint n_parameters,
GParameter *parameters);
+G_GNUC_END_IGNORE_DEPRECATIONS
/**
* GladeDestroyObjectFunc:
@@ -783,12 +785,14 @@ GladePropertyDef *glade_widget_adaptor_get_property_def (GladeWidgetAdapto
GladePropertyDef *glade_widget_adaptor_get_pack_property_def (GladeWidgetAdaptor *adaptor,
const gchar *name);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GParameter *glade_widget_adaptor_default_params (GladeWidgetAdaptor *adaptor,
gboolean construct,
guint *n_params);
GObject *glade_widget_adaptor_construct_object (GladeWidgetAdaptor *adaptor,
guint n_parameters,
GParameter *parameters);
+G_GNUC_END_IGNORE_DEPRECATIONS
void glade_widget_adaptor_destroy_object (GladeWidgetAdaptor *adaptor,
GObject *object);
void glade_widget_adaptor_post_create (GladeWidgetAdaptor *adaptor,
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c
index 4c11aa2b..28ecc656 100644
--- a/gladeui/glade-widget.c
+++ b/gladeui/glade-widget.c
@@ -569,6 +569,7 @@ glade_widget_event (GladeWidget *gwidget, GdkEvent *event)
GObjectClass & Object Construction
*******************************************************************************/
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/*
* This function creates new GObject parameters based on the GType of the
* GladeWidgetAdaptor and its default values.
@@ -716,6 +717,7 @@ glade_widget_build_object (GladeWidget *widget,
return object;
}
+G_GNUC_END_IGNORE_DEPRECATIONS
/**
* glade_widget_dup_properties:
diff --git a/plugins/gtk+/glade-gtk-about-dialog.c b/plugins/gtk+/glade-gtk-about-dialog.c
index 17918e8c..bbfcd332 100644
--- a/plugins/gtk+/glade-gtk-about-dialog.c
+++ b/plugins/gtk+/glade-gtk-about-dialog.c
@@ -27,6 +27,7 @@
#include "glade-gtk.h"
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GObject *
glade_gtk_about_dialog_construct_object (GladeWidgetAdaptor *adaptor,
guint n_parameters,
@@ -67,6 +68,7 @@ glade_gtk_about_dialog_construct_object (GladeWidgetAdaptor *adaptor,
g_free (new_params);
return retval;
}
+G_GNUC_END_IGNORE_DEPRECATIONS
void
glade_gtk_about_dialog_read_widget (GladeWidgetAdaptor *adaptor,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]