summaryrefslogtreecommitdiff
path: root/shell/ev-navigation-action.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2019-07-21 16:14:08 +0200
committerraveit65 <[email protected]>2019-07-31 15:26:47 +0200
commite3a744bfa8ed4217077d5f7877b1f867c0b57f81 (patch)
treec9dfe677f9f45b3a9fdc88057329e5a36ae6c414 /shell/ev-navigation-action.c
parent536c7815518764541ab8230bd373e490aff4e8bb (diff)
downloadatril-e3a744bfa8ed4217077d5f7877b1f867c0b57f81.tar.bz2
atril-e3a744bfa8ed4217077d5f7877b1f867c0b57f81.tar.xz
ev-navigation-action: suppress GtkAction warnings
Diffstat (limited to 'shell/ev-navigation-action.c')
-rw-r--r--shell/ev-navigation-action.c10
1 files changed, 10 insertions, 0 deletions
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;