diff options
author | raveit65 <[email protected]> | 2019-06-27 13:37:01 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-20 00:13:51 +0200 |
commit | 50cd98c50d436013c5542d6d1fea3795167ebb52 (patch) | |
tree | bc3bf1dd1166d1a130d5693a2e54492346830b17 | |
parent | 5cb1198a4f75f2900edd19e12660336386b5fd4a (diff) | |
download | caja-50cd98c50d436013c5542d6d1fea3795167ebb52.tar.bz2 caja-50cd98c50d436013c5542d6d1fea3795167ebb52.tar.xz |
caja-window-toolbars: suppress GtkAction warnings
-rw-r--r-- | src/caja-window-toolbars.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/caja-window-toolbars.c b/src/caja-window-toolbars.c index 7ff03e9e..7cf2f46b 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); |