[gnome-photos/wip/rishi/edit-mode: 2/28] preview-view: Be more strict about what is acceptable



commit 2c3c9a5ce0f9c64be4973cc7443b7d2a8d95802f
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Nov 5 12:14:55 2015 +0100

    preview-view: Be more strict about what is acceptable

 src/photos-preview-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index a5bc5f4..bf0dc28 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -310,6 +310,9 @@ photos_preview_view_set_model (PhotosPreviewView *self, GtkTreeModel *model, Gtk
 {
   PhotosPreviewViewPrivate *priv = self->priv;
 
+  g_return_if_fail (model != NULL);
+  g_return_if_fail (current_path != NULL);
+
   photos_preview_nav_buttons_set_model (self->priv->nav_buttons, model, current_path);
   photos_preview_nav_buttons_show (priv->nav_buttons);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]