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



commit 367d84caf9da817da9710c5b842ee99485205d65
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]