From e3a744bfa8ed4217077d5f7877b1f867c0b57f81 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 21 Jul 2019 16:14:08 +0200 Subject: ev-navigation-action: suppress GtkAction warnings --- shell/ev-navigation-action.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/shell/ev-navigation-action.c b/shell/ev-navigation-action.c index 45e744ee..e01ff566 100644 --- a/shell/ev-navigation-action.c +++ b/shell/ev-navigation-action.c @@ -43,7 +43,9 @@ struct _EvNavigationActionPrivate static void ev_navigation_action_init (EvNavigationAction *action); static void ev_navigation_action_class_init (EvNavigationActionClass *class); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS; G_DEFINE_TYPE (EvNavigationAction, ev_navigation_action, GTK_TYPE_ACTION) +G_GNUC_END_IGNORE_DEPRECATIONS; #define MAX_LABEL_LENGTH 48 @@ -55,8 +57,10 @@ ev_navigation_action_history_changed (EvHistory *history, { EvNavigationAction *action = EV_NAVIGATION_ACTION (data); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; gtk_action_set_sensitive (GTK_ACTION (action), ev_history_get_n_links (history) > 0); + G_GNUC_END_IGNORE_DEPRECATIONS; } void @@ -170,7 +174,9 @@ connect_proxy (GtkAction *action, GtkWidget *proxy) G_CALLBACK (menu_activated_cb), action); } + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; GTK_ACTION_CLASS (ev_navigation_action_parent_class)->connect_proxy (action, proxy); + G_GNUC_END_IGNORE_DEPRECATIONS; } static GtkWidget * @@ -192,7 +198,9 @@ create_menu_item (GtkAction *action) menu = build_menu (EV_NAVIGATION_ACTION (action)); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; menu_item = GTK_ACTION_CLASS (ev_navigation_action_parent_class)->create_menu_item (action); + G_GNUC_END_IGNORE_DEPRECATIONS; gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_item), menu); @@ -225,7 +233,9 @@ static void ev_navigation_action_class_init (EvNavigationActionClass *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 = ev_navigation_action_finalize; -- cgit v1.2.1