[latexila/wip/templates-revamp: 10/13] Templates dialogs: check public functions parameters
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/wip/templates-revamp: 10/13] Templates dialogs: check public functions parameters
- Date: Wed, 8 Jul 2015 16:27:37 +0000 (UTC)
commit 8fbd23010bde5cf383bde21c2b25018ff592db50
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Jul 3 12:41:47 2015 +0200
Templates dialogs: check public functions parameters
src/liblatexila/latexila-templates-dialogs.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/liblatexila/latexila-templates-dialogs.c b/src/liblatexila/latexila-templates-dialogs.c
index cc5fde3..3b425ab 100644
--- a/src/liblatexila/latexila-templates-dialogs.c
+++ b/src/liblatexila/latexila-templates-dialogs.c
@@ -115,6 +115,8 @@ latexila_templates_dialogs_open (GtkWindow *parent_window)
gint response;
gchar *contents = NULL;
+ g_return_val_if_fail (GTK_IS_WINDOW (parent_window), NULL);
+
dialog = g_object_new (GTK_TYPE_DIALOG,
"use-header-bar", TRUE,
"title", _("New File..."),
@@ -222,6 +224,9 @@ latexila_templates_dialogs_create_template (GtkWindow *parent_window,
GtkTreeView *default_view;
GtkWidget *scrolled_window;
+ g_return_if_fail (GTK_IS_WINDOW (parent_window));
+ g_return_if_fail (template_contents != NULL);
+
dialog = g_object_new (GTK_TYPE_DIALOG,
"use-header-bar", TRUE,
"title", _("New Template..."),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]