Skip to content

Commit

Permalink
fix missing type cast and invalid return type gcc errors (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
ion201 authored Jun 10, 2024
1 parent fd8be74 commit e2e441b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions extensions/file_tools/cairo-blur.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ _cairo_image_surface_box_blur (cairo_surface_t *source,

if (cairo_surface_status (tmp) != CAIRO_STATUS_SUCCESS) {
cairo_surface_destroy (tmp);
return;
return FALSE;
}

while (completed && (iterations-- > 0)) {
Expand Down Expand Up @@ -305,7 +305,7 @@ _cairo_image_surface_sharpen (cairo_surface_t *source,
blurred = _cairo_image_surface_copy (source);
if (cairo_surface_status (blurred) != CAIRO_STATUS_SUCCESS) {
cairo_surface_destroy (blurred);
return;
return FALSE;
}

if (! _cairo_image_surface_blur_with_progress (blurred, radius, &progress_data)) {
Expand Down
2 changes: 1 addition & 1 deletion pix/gth-file-source-vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ gth_file_mananger_delete_files (GtkWindow *window,
_GTK_LABEL_DELETE, GTK_RESPONSE_YES,
NULL);
_gtk_dialog_add_class_to_response (GTK_DIALOG (d), GTK_RESPONSE_YES, GTK_STYLE_CLASS_DESTRUCTIVE_ACTION);
gtk_dialog_set_default_response (d, GTK_RESPONSE_YES);
gtk_dialog_set_default_response (GTK_DIALOG (d), GTK_RESPONSE_YES);
g_signal_connect (d, "response", G_CALLBACK (delete_permanently_response_cb), file_list);
gtk_widget_show (d);

Expand Down

0 comments on commit e2e441b

Please sign in to comment.