diff options
author | rbuj <[email protected]> | 2021-12-20 22:08:18 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-02-09 19:40:31 +0100 |
commit | 7d64342c6914b8f502512fd111ec3acb2083741e (patch) | |
tree | 7100492159efad69084d1103be75839d21535ec0 | |
parent | b6d46039be75bd2b868ee6c32b091a1e37720a20 (diff) | |
download | caja-7d64342c6914b8f502512fd111ec3acb2083741e.tar.bz2 caja-7d64342c6914b8f502512fd111ec3acb2083741e.tar.xz |
Fix implicit conversion changes signedness: 'gboolean' to 'guint'
-rw-r--r-- | eel/eel-canvas-rect-ellipse.c | 4 | ||||
-rw-r--r-- | eel/eel-editable-label.c | 6 | ||||
-rw-r--r-- | libcaja-private/caja-desktop-icon-file.c | 4 | ||||
-rw-r--r-- | libcaja-private/caja-directory-async.c | 14 | ||||
-rw-r--r-- | libcaja-private/caja-file.c | 46 | ||||
-rw-r--r-- | libcaja-private/caja-icon-canvas-item.c | 26 | ||||
-rw-r--r-- | libcaja-private/caja-icon-container.c | 6 | ||||
-rw-r--r-- | src/caja-pathbar.c | 2 | ||||
-rw-r--r-- | src/file-manager/fm-list-view.c | 4 | ||||
-rw-r--r-- | src/file-manager/fm-tree-model.c | 2 |
10 files changed, 57 insertions, 57 deletions
diff --git a/eel/eel-canvas-rect-ellipse.c b/eel/eel-canvas-rect-ellipse.c index 9b2feba4..9cb25fb5 100644 --- a/eel/eel-canvas-rect-ellipse.c +++ b/eel/eel-canvas-rect-ellipse.c @@ -204,7 +204,7 @@ eel_canvas_re_set_fill (EelCanvasRE *re, gboolean fill_set) { if (re->fill_set != fill_set) { - re->fill_set = fill_set; + re->fill_set = (fill_set != FALSE); eel_canvas_item_request_update (EEL_CANVAS_ITEM (re)); } } @@ -214,7 +214,7 @@ eel_canvas_re_set_outline (EelCanvasRE *re, gboolean outline_set) { if (re->outline_set != outline_set) { - re->outline_set = outline_set; + re->outline_set = (outline_set != FALSE); eel_canvas_item_request_update (EEL_CANVAS_ITEM (re)); } } diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c index 08a19531..d18f5df9 100644 --- a/eel/eel-editable-label.c +++ b/eel/eel-editable-label.c @@ -763,7 +763,7 @@ eel_editable_label_set_draw_outline (EelEditableLabel *label, if (label->draw_outline != draw_outline) { - label->draw_outline = draw_outline; + label->draw_outline = (draw_outline != FALSE); gtk_widget_queue_draw (GTK_WIDGET (label)); } @@ -789,7 +789,7 @@ eel_editable_label_set_line_wrap (EelEditableLabel *label, if (label->wrap != wrap) { - label->wrap = wrap; + label->wrap = (wrap != FALSE); g_object_notify (G_OBJECT (label), "wrap"); gtk_widget_queue_resize (GTK_WIDGET (label)); @@ -978,7 +978,7 @@ eel_editable_label_ensure_layout (EelEditableLabel *label, { label->layout = gtk_widget_create_pango_layout (widget, label->text); } - label->layout_includes_preedit = include_preedit; + label->layout_includes_preedit = (include_preedit != FALSE); if (label->font_desc != NULL) pango_layout_set_font_description (label->layout, label->font_desc); diff --git a/libcaja-private/caja-desktop-icon-file.c b/libcaja-private/caja-desktop-icon-file.c index 065e4e8e..43181ddb 100644 --- a/libcaja-private/caja-desktop-icon-file.c +++ b/libcaja-private/caja-desktop-icon-file.c @@ -205,8 +205,8 @@ update_info_from_link (CajaDesktopIconFile *icon_file) file->details->mount = mount; if (mount) { - file->details->can_unmount = g_mount_can_unmount (mount); - file->details->can_eject = g_mount_can_eject (mount); + file->details->can_unmount = (g_mount_can_unmount (mount) != FALSE); + file->details->can_eject = (g_mount_can_eject (mount) != FALSE); } file->details->file_info_is_up_to_date = TRUE; diff --git a/libcaja-private/caja-directory-async.c b/libcaja-private/caja-directory-async.c index b1fc572b..c909dd4b 100644 --- a/libcaja-private/caja-directory-async.c +++ b/libcaja-private/caja-directory-async.c @@ -871,7 +871,7 @@ set_file_unconfirmed (CajaFile *file, gboolean unconfirmed) { return; } - file->details->unconfirmed = unconfirmed; + file->details->unconfirmed = (unconfirmed != FALSE); directory = file->details->directory; if (unconfirmed) @@ -3521,7 +3521,7 @@ top_left_read_callback (GObject *source_object, { file_details->top_left_text = caja_extract_top_left_text (file_contents, state->large, file_size); file_details->got_top_left_text = TRUE; - file_details->got_large_top_left_text = state->large; + file_details->got_large_top_left_text = (state->large != FALSE); g_free (file_contents); } else @@ -3902,9 +3902,9 @@ link_info_done (CajaDirectory *directory, { file->details->custom_icon = g_strdup (icon); } - file->details->is_launcher = is_launcher; - file->details->is_foreign_link = is_foreign; - file->details->is_trusted_link = is_trusted; + file->details->is_launcher = (is_launcher != FALSE); + file->details->is_foreign_link = (is_foreign != FALSE); + file->details->is_trusted_link = (is_trusted != FALSE); caja_directory_async_state_changed (directory); } @@ -4111,7 +4111,7 @@ thumbnail_done (CajaDirectory *directory, gboolean tried_original) { file->details->thumbnail_is_up_to_date = TRUE; - file->details->thumbnail_tried_original = tried_original; + file->details->thumbnail_tried_original = (tried_original != FALSE); if (file->details->thumbnail) { g_object_unref (file->details->thumbnail); @@ -4667,7 +4667,7 @@ got_filesystem_info (FilesystemInfoState *state, GFileInfo *info) file->details->filesystem_use_preview = g_file_info_get_attribute_uint32 (info, G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW); file->details->filesystem_readonly = - g_file_info_get_attribute_boolean (info, G_FILE_ATTRIBUTE_FILESYSTEM_READONLY); + (g_file_info_get_attribute_boolean (info, G_FILE_ATTRIBUTE_FILESYSTEM_READONLY) != FALSE); } caja_directory_async_state_changed (directory); diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c index 27856bf7..a495e1e9 100644 --- a/libcaja-private/caja-file.c +++ b/libcaja-private/caja-file.c @@ -257,7 +257,7 @@ caja_file_set_display_name (CajaFile *file, } } - file->details->got_custom_display_name = custom; + file->details->got_custom_display_name = (custom != FALSE); return changed; } @@ -2188,7 +2188,7 @@ update_info_internal (CajaFile *file, if (file->details->is_symlink != is_symlink) { changed = TRUE; } - file->details->is_symlink = is_symlink; + file->details->is_symlink = (is_symlink != FALSE); is_hidden = g_file_info_get_is_hidden (info); is_backup = g_file_info_get_is_backup (info); @@ -2196,14 +2196,14 @@ update_info_internal (CajaFile *file, file->details->is_backup != is_backup) { changed = TRUE; } - file->details->is_hidden = is_hidden; - file->details->is_backup = is_backup; + file->details->is_hidden = (is_hidden != FALSE); + file->details->is_backup = (is_backup != FALSE); is_mountpoint = g_file_info_get_attribute_boolean (info, G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT); if (file->details->is_mountpoint != is_mountpoint) { changed = TRUE; } - file->details->is_mountpoint = is_mountpoint; + file->details->is_mountpoint = (is_mountpoint != FALSE); has_permissions = g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_UNIX_MODE); permissions = g_file_info_get_attribute_uint32 (info, G_FILE_ATTRIBUTE_UNIX_MODE);; @@ -2211,7 +2211,7 @@ update_info_internal (CajaFile *file, file->details->permissions != permissions) { changed = TRUE; } - file->details->has_permissions = has_permissions; + file->details->has_permissions = (has_permissions != FALSE); file->details->permissions = permissions; /* We default to TRUE for this if we can't know */ @@ -2308,21 +2308,21 @@ update_info_internal (CajaFile *file, changed = TRUE; } - file->details->can_read = can_read; - file->details->can_write = can_write; - file->details->can_execute = can_execute; - file->details->can_delete = can_delete; - file->details->can_trash = can_trash; - file->details->can_rename = can_rename; - file->details->can_mount = can_mount; - file->details->can_unmount = can_unmount; - file->details->can_eject = can_eject; - file->details->can_start = can_start; - file->details->can_start_degraded = can_start_degraded; - file->details->can_stop = can_stop; + file->details->can_read = (can_read != FALSE); + file->details->can_write = (can_write != FALSE); + file->details->can_execute = (can_execute != FALSE); + file->details->can_delete = (can_delete != FALSE); + file->details->can_trash = (can_trash != FALSE); + file->details->can_rename = (can_rename != FALSE); + file->details->can_mount = (can_mount != FALSE); + file->details->can_unmount = (can_unmount != FALSE); + file->details->can_eject = (can_eject != FALSE); + file->details->can_start = (can_start != FALSE); + file->details->can_start_degraded = (can_start_degraded != FALSE); + file->details->can_stop = (can_stop != FALSE); file->details->start_stop_type = start_stop_type; - file->details->can_poll_for_media = can_poll_for_media; - file->details->is_media_check_automatic = is_media_check_automatic; + file->details->can_poll_for_media = (can_poll_for_media != FALSE); + file->details->is_media_check_automatic = (is_media_check_automatic != FALSE); free_owner = FALSE; owner = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_OWNER_USER); @@ -2448,7 +2448,7 @@ update_info_internal (CajaFile *file, thumbnailing_failed = g_file_info_get_attribute_boolean (info, G_FILE_ATTRIBUTE_THUMBNAILING_FAILED); if (file->details->thumbnailing_failed != thumbnailing_failed) { changed = TRUE; - file->details->thumbnailing_failed = thumbnailing_failed; + file->details->thumbnailing_failed = (thumbnailing_failed != FALSE); } symlink_name = g_file_info_get_symlink_target (info); @@ -7987,7 +7987,7 @@ caja_file_set_has_open_window (CajaFile *file, has_open_window = (has_open_window != FALSE); if (file->details->has_open_window != has_open_window) { - file->details->has_open_window = has_open_window; + file->details->has_open_window = (has_open_window != FALSE); caja_file_changed (file); } } @@ -8006,7 +8006,7 @@ caja_file_set_is_thumbnailing (CajaFile *file, { g_return_if_fail (CAJA_IS_FILE (file)); - file->details->is_thumbnailing = is_thumbnailing; + file->details->is_thumbnailing = (is_thumbnailing != FALSE); } /** diff --git a/libcaja-private/caja-icon-canvas-item.c b/libcaja-private/caja-icon-canvas-item.c index 008a9048..43c340d0 100644 --- a/libcaja-private/caja-icon-canvas-item.c +++ b/libcaja-private/caja-icon-canvas-item.c @@ -420,7 +420,7 @@ caja_icon_canvas_item_set_property (GObject *object, { return; } - details->is_highlighted_for_selection = g_value_get_boolean (value); + details->is_highlighted_for_selection = (g_value_get_boolean (value) != FALSE); caja_icon_canvas_item_invalidate_label_size (item); atk_object_notify_state_change (accessible, ATK_STATE_SELECTED, @@ -432,7 +432,7 @@ caja_icon_canvas_item_set_property (GObject *object, { return; } - details->is_highlighted_as_keyboard_focus = g_value_get_boolean (value); + details->is_highlighted_as_keyboard_focus = (g_value_get_boolean (value) != FALSE); atk_object_notify_state_change (accessible, ATK_STATE_FOCUSED, details->is_highlighted_as_keyboard_focus); break; @@ -442,7 +442,7 @@ caja_icon_canvas_item_set_property (GObject *object, { return; } - details->is_highlighted_for_drop = g_value_get_boolean (value); + details->is_highlighted_for_drop = (g_value_get_boolean (value) != FALSE); break; case PROP_HIGHLIGHTED_FOR_CLIPBOARD: @@ -450,7 +450,7 @@ caja_icon_canvas_item_set_property (GObject *object, { return; } - details->is_highlighted_for_clipboard = g_value_get_boolean (value); + details->is_highlighted_for_clipboard = (g_value_get_boolean (value) != FALSE); break; default: @@ -1431,7 +1431,7 @@ caja_icon_canvas_item_set_is_visible (CajaIconCanvasItem *item, if (item->details->is_visible == visible) return; - item->details->is_visible = visible; + item->details->is_visible = (visible != FALSE); if (!visible) { @@ -1827,7 +1827,7 @@ map_surface (CajaIconCanvasItem *icon_item) icon_item->details->rendered_is_highlighted_for_selection = icon_item->details->is_highlighted_for_selection; icon_item->details->rendered_is_highlighted_for_drop = icon_item->details->is_highlighted_for_drop; icon_item->details->rendered_is_highlighted_for_clipboard = icon_item->details->is_highlighted_for_clipboard; - icon_item->details->rendered_is_focused = gtk_widget_has_focus (GTK_WIDGET (EEL_CANVAS_ITEM (icon_item)->canvas)); + icon_item->details->rendered_is_focused = (gtk_widget_has_focus (GTK_WIDGET (EEL_CANVAS_ITEM (icon_item)->canvas)) != FALSE); } cairo_surface_reference (icon_item->details->rendered_surface); @@ -2128,10 +2128,10 @@ caja_icon_canvas_item_event (EelCanvasItem *item, GdkEvent *event) * should be separate. The "unpreview" signal * does not have a return value. */ - icon_item->details->is_active = caja_icon_container_emit_preview_signal - (CAJA_ICON_CONTAINER (item->canvas), - CAJA_ICON_CANVAS_ITEM (item)->user_data, - TRUE); + icon_item->details->is_active = + (caja_icon_container_emit_preview_signal (CAJA_ICON_CONTAINER (item->canvas), + CAJA_ICON_CANVAS_ITEM (item)->user_data, + TRUE) != FALSE); } return TRUE; @@ -2583,7 +2583,7 @@ caja_icon_canvas_item_set_show_stretch_handles (CajaIconCanvasItem *item, return; } - item->details->show_stretch_handles = show_stretch_handles; + item->details->show_stretch_handles = (show_stretch_handles != FALSE); eel_canvas_item_request_update (EEL_CANVAS_ITEM (item)); } @@ -2691,7 +2691,7 @@ caja_icon_canvas_item_set_renaming (CajaIconCanvasItem *item, gboolean state) return; } - item->details->is_renaming = state; + item->details->is_renaming = (state != FALSE); eel_canvas_item_request_update (EEL_CANVAS_ITEM (item)); } @@ -2744,7 +2744,7 @@ caja_icon_canvas_item_set_entire_text (CajaIconCanvasItem *item, gboolean entire_text) { if (item->details->entire_text != entire_text) { - item->details->entire_text = entire_text; + item->details->entire_text = (entire_text != FALSE); caja_icon_canvas_item_invalidate_label_size (item); eel_canvas_item_request_update (EEL_CANVAS_ITEM (item)); diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c index 77626b2d..3fc21aaf 100644 --- a/libcaja-private/caja-icon-container.c +++ b/libcaja-private/caja-icon-container.c @@ -7852,7 +7852,7 @@ caja_icon_container_add (CajaIconContainer *container, * if the previous icon position is free. If the position * is occupied, another position near the last one will */ - icon->has_lazy_position = is_old_or_unknown_icon_data (container, data); + icon->has_lazy_position = (is_old_or_unknown_icon_data (container, data) != FALSE); icon->scale = 1.0; icon->item = CAJA_ICON_CANVAS_ITEM (eel_canvas_item_new (EEL_CANVAS_GROUP (EEL_CANVAS (container)->root), @@ -10153,7 +10153,7 @@ caja_icon_container_get_store_layout_timestamps (CajaIconContainer *container) void caja_icon_container_set_store_layout_timestamps (CajaIconContainer *container, - gboolean store_layout_timestamps) + gboolean store_layout_timestamps) { - container->details->store_layout_timestamps = store_layout_timestamps; + container->details->store_layout_timestamps = (store_layout_timestamps != FALSE); } diff --git a/src/caja-pathbar.c b/src/caja-pathbar.c index 332b6c1e..24f6ee1c 100644 --- a/src/caja-pathbar.c +++ b/src/caja-pathbar.c @@ -1941,7 +1941,7 @@ make_directory_button (CajaPathBar *path_bar, button_data); } - button_data->file_is_hidden = file_is_hidden; + button_data->file_is_hidden = (file_is_hidden != FALSE); gtk_container_add (GTK_CONTAINER (button_data->button), child); gtk_widget_show_all (button_data->button); diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c index 921128b0..87bb5d9e 100644 --- a/src/file-manager/fm-list-view.c +++ b/src/file-manager/fm-list-view.c @@ -1296,11 +1296,11 @@ sort_column_changed_callback (GtkTreeSortable *sortable, if (sort_attr == default_sort_attr) { /* use value from preferences */ - reversed = g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_DEFAULT_SORT_IN_REVERSE_ORDER); + reversed = (g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_DEFAULT_SORT_IN_REVERSE_ORDER) != FALSE); } else { - reversed = caja_file_is_date_sort_attribute_q (sort_attr); + reversed = (caja_file_is_date_sort_attribute_q (sort_attr) != FALSE); } if (reversed) diff --git a/src/file-manager/fm-tree-model.c b/src/file-manager/fm-tree-model.c index 017d9f8c..3beb5f27 100644 --- a/src/file-manager/fm-tree-model.c +++ b/src/file-manager/fm-tree-model.c @@ -1101,7 +1101,7 @@ set_done_loading (FMTreeModel *model, TreeNode *node, gboolean done_loading) had_dummy = tree_node_has_dummy_child (node); - node->done_loading = done_loading; + node->done_loading = (done_loading != FALSE); if (tree_node_has_dummy_child (node)) { |