[gtksourceview] file: check GCancellable params
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] file: check GCancellable params
- Date: Fri, 29 Apr 2016 15:12:11 +0000 (UTC)
commit 379cac077d62bda386e219db5fc21922079ca32a
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Apr 29 17:09:51 2016 +0200
file: check GCancellable params
gtksourceview/gtksourcefileloader.c | 1 +
gtksourceview/gtksourcefilesaver.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourcefileloader.c b/gtksourceview/gtksourcefileloader.c
index 65fb728..e4c3278 100644
--- a/gtksourceview/gtksourcefileloader.c
+++ b/gtksourceview/gtksourcefileloader.c
@@ -1026,6 +1026,7 @@ gtk_source_file_loader_load_async (GtkSourceFileLoader *loader,
gboolean implicit_trailing_newline;
g_return_if_fail (GTK_SOURCE_IS_FILE_LOADER (loader));
+ g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable));
g_return_if_fail (loader->priv->task == NULL);
if (loader->priv->source_buffer == NULL ||
diff --git a/gtksourceview/gtksourcefilesaver.c b/gtksourceview/gtksourcefilesaver.c
index 865e378..84d24c1 100644
--- a/gtksourceview/gtksourcefilesaver.c
+++ b/gtksourceview/gtksourcefilesaver.c
@@ -1320,6 +1320,7 @@ gtk_source_file_saver_save_async (GtkSourceFileSaver *saver,
gboolean implicit_trailing_newline;
g_return_if_fail (GTK_SOURCE_IS_FILE_SAVER (saver));
+ g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable));
g_return_if_fail (saver->priv->task == NULL);
if (saver->priv->source_buffer == NULL ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]