diff options
author | raveit65 <[email protected]> | 2019-07-21 16:01:43 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-07-31 15:26:47 +0200 |
commit | 536c7815518764541ab8230bd373e490aff4e8bb (patch) | |
tree | bb1a38cef456866c6b3d9db7e2acc7c316fd6f23 /shell/ev-bookmark-action.c | |
parent | 14f943aca46c11f662b51e270ba8fb656b71af61 (diff) | |
download | atril-536c7815518764541ab8230bd373e490aff4e8bb.tar.bz2 atril-536c7815518764541ab8230bd373e490aff4e8bb.tar.xz |
ev-bookmark-action: suppress GtkAction warnings
Diffstat (limited to 'shell/ev-bookmark-action.c')
-rw-r--r-- | shell/ev-bookmark-action.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ev-bookmark-action.c b/shell/ev-bookmark-action.c index 3689d7aa..a1af28f2 100644 --- a/shell/ev-bookmark-action.c +++ b/shell/ev-bookmark-action.c @@ -37,7 +37,9 @@ struct _EvBookmarkActionClass { GtkActionClass base_class; }; +G_GNUC_BEGIN_IGNORE_DEPRECATIONS; G_DEFINE_TYPE (EvBookmarkAction, ev_bookmark_action, GTK_TYPE_ACTION) +G_GNUC_END_IGNORE_DEPRECATIONS; static void ev_bookmark_action_init (EvBookmarkAction *action) @@ -86,11 +88,13 @@ ev_bookmark_action_new (EvBookmark *bookmark) g_return_val_if_fail (bookmark->title != NULL, NULL); name = g_strdup_printf ("EvBookmark%u", bookmark->page); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action = GTK_ACTION (g_object_new (EV_TYPE_BOOKMARK_ACTION, "name", name, "label", bookmark->title, "page", bookmark->page, NULL)); + G_GNUC_END_IGNORE_DEPRECATIONS; g_free (name); return action; |