From 33023185dca0d3d0342d7deee439eaddea07fc3d Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 25 Jun 2019 19:32:36 +0200 Subject: view-as-action: suppress GtkAction warnings --- src/caja-view-as-action.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/caja-view-as-action.c b/src/caja-view-as-action.c index a38ebca2..9ecfdf4d 100644 --- a/src/caja-view-as-action.c +++ b/src/caja-view-as-action.c @@ -46,7 +46,9 @@ struct _CajaViewAsActionPrivate CajaNavigationWindow *window; }; +G_GNUC_BEGIN_IGNORE_DEPRECATIONS; G_DEFINE_TYPE_WITH_PRIVATE (CajaViewAsAction, caja_view_as_action, GTK_TYPE_ACTION) +G_GNUC_END_IGNORE_DEPRECATIONS; enum { @@ -192,7 +194,9 @@ connect_proxy (GtkAction *action, view_as_combo_box); } + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; (* GTK_ACTION_CLASS (parent_class)->connect_proxy) (action, proxy); + G_GNUC_END_IGNORE_DEPRECATIONS; } static void @@ -209,7 +213,9 @@ disconnect_proxy (GtkAction *action, 0, 0, NULL, G_CALLBACK (view_as_changed_callback), NULL); } + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; (* GTK_ACTION_CLASS (parent_class)->disconnect_proxy) (action, proxy); + G_GNUC_END_IGNORE_DEPRECATIONS; } static void @@ -258,7 +264,9 @@ static void caja_view_as_action_class_init (CajaViewAsActionClass *class) { GObjectClass *object_class = G_OBJECT_CLASS (class); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; GtkActionClass *action_class = GTK_ACTION_CLASS (class); + G_GNUC_END_IGNORE_DEPRECATIONS; object_class->finalize = caja_view_as_action_finalize; object_class->set_property = caja_view_as_action_set_property; -- cgit v1.2.1