From a94f50f3f2e25962ae20bd02b38266737ae2faf6 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Thu, 27 Jun 2019 13:37:01 +0200 Subject: caja-window-toolbars: suppress GtkAction warnings --- src/caja-window-toolbars.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/caja-window-toolbars.c b/src/caja-window-toolbars.c index 7514a49a..76426319 100644 --- a/src/caja-window-toolbars.c +++ b/src/caja-window-toolbars.c @@ -154,6 +154,7 @@ caja_navigation_window_load_extension_toolbar_items (CajaNavigationWindow *windo GtkActionGroup *action_group; GtkAction *action = NULL; CajaMenuItem *item = NULL; + const gchar *action_name = NULL; ui_manager = caja_window_get_ui_manager (CAJA_WINDOW (window)); if (window->details->extensions_toolbar_merge_id != 0) @@ -172,9 +173,11 @@ caja_navigation_window_load_extension_toolbar_items (CajaNavigationWindow *windo merge_id = gtk_ui_manager_new_merge_id (ui_manager); window->details->extensions_toolbar_merge_id = merge_id; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("ExtensionsToolbarGroup"); window->details->extensions_toolbar_action_group = action_group; gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); + G_GNUC_END_IGNORE_DEPRECATIONS; gtk_ui_manager_insert_action_group (ui_manager, action_group, -1); g_object_unref (action_group); /* owned by ui manager */ @@ -186,15 +189,19 @@ caja_navigation_window_load_extension_toolbar_items (CajaNavigationWindow *windo action = caja_toolbar_action_from_menu_item (item, GTK_WIDGET (window)); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; gtk_action_group_add_action (action_group, GTK_ACTION (action)); g_object_unref (action); + action_name = gtk_action_get_name (action); + G_GNUC_END_IGNORE_DEPRECATIONS; + gtk_ui_manager_add_ui (ui_manager, merge_id, TOOLBAR_PATH_EXTENSION_ACTIONS, - gtk_action_get_name (action), - gtk_action_get_name (action), + action_name, + action_name, GTK_UI_MANAGER_TOOLITEM, FALSE); -- cgit v1.2.1