summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-desktop-icon-view.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-06-28 02:31:23 +0200
committerraveit65 <[email protected]>2019-06-28 11:40:46 +0200
commit5905eb253db25dfd2dc06ef5a1a1d152b0e20a79 (patch)
treeb8cb5fc3a3dc7b1f2598d3afc3105c1c91214ddc /src/file-manager/fm-desktop-icon-view.c
parent78e178d2c08d80c57b5f63ac5aeb3622eff6300a (diff)
downloadcaja-5905eb253db25dfd2dc06ef5a1a1d152b0e20a79.tar.bz2
caja-5905eb253db25dfd2dc06ef5a1a1d152b0e20a79.tar.xz
Fix cppcheck warnings
appeared since the silence of deprecated gtkaction warnings
Diffstat (limited to 'src/file-manager/fm-desktop-icon-view.c')
-rw-r--r--src/file-manager/fm-desktop-icon-view.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/file-manager/fm-desktop-icon-view.c b/src/file-manager/fm-desktop-icon-view.c
index 752d1f46..e822cad5 100644
--- a/src/file-manager/fm-desktop-icon-view.c
+++ b/src/file-manager/fm-desktop-icon-view.c
@@ -726,29 +726,29 @@ real_update_menus (FMDirectoryView *view)
/* New Launcher */
disable_command_line = g_settings_get_boolean (mate_lockdown_preferences, CAJA_PREFERENCES_LOCKDOWN_COMMAND_LINE);
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
action = gtk_action_group_get_action (desktop_view->priv->desktop_action_group,
FM_ACTION_NEW_LAUNCHER_DESKTOP);
gtk_action_set_visible (action,
!disable_command_line);
- G_GNUC_END_IGNORE_DEPRECATIONS
+ G_GNUC_END_IGNORE_DEPRECATIONS;
/* Empty Trash */
include_empty_trash = trash_link_is_selection (view);
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
action = gtk_action_group_get_action (desktop_view->priv->desktop_action_group,
FM_ACTION_EMPTY_TRASH_CONDITIONAL);
gtk_action_set_visible (action,
include_empty_trash);
- G_GNUC_END_IGNORE_DEPRECATIONS
+ G_GNUC_END_IGNORE_DEPRECATIONS;
if (include_empty_trash)
{
label = g_strdup (_("E_mpty Trash"));
g_object_set (action , "label", label, NULL);
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
gtk_action_set_sensitive (action,
!caja_trash_monitor_is_empty ());
- G_GNUC_END_IGNORE_DEPRECATIONS
+ G_GNUC_END_IGNORE_DEPRECATIONS;
g_free (label);
}
}
@@ -798,14 +798,14 @@ real_merge_menus (FMDirectoryView *view)
ui_manager = fm_directory_view_get_ui_manager (view);
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
action_group = gtk_action_group_new ("DesktopViewActions");
gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE);
desktop_view->priv->desktop_action_group = action_group;
gtk_action_group_add_actions (action_group,
desktop_view_entries, G_N_ELEMENTS (desktop_view_entries),
view);
- G_GNUC_END_IGNORE_DEPRECATIONS
+ G_GNUC_END_IGNORE_DEPRECATIONS;
gtk_ui_manager_insert_action_group (ui_manager, action_group, 0);