diff options
author | raveit65 <[email protected]> | 2019-07-21 16:14:08 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-07-31 15:26:47 +0200 |
commit | e3a744bfa8ed4217077d5f7877b1f867c0b57f81 (patch) | |
tree | c9dfe677f9f45b3a9fdc88057329e5a36ae6c414 | |
parent | 536c7815518764541ab8230bd373e490aff4e8bb (diff) | |
download | atril-e3a744bfa8ed4217077d5f7877b1f867c0b57f81.tar.bz2 atril-e3a744bfa8ed4217077d5f7877b1f867c0b57f81.tar.xz |
ev-navigation-action: suppress GtkAction warnings
-rw-r--r-- | shell/ev-navigation-action.c | 10 |
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; |