[gimp] app: don't try to set properties of a NULL icon view
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't try to set properties of a NULL icon view
- Date: Thu, 21 Oct 2010 09:39:29 +0000 (UTC)
commit c60e29254ba5712017ea2fbcc960bf1e5010c41a
Author: Michael Natterer <mitch gimp org>
Date: Thu Oct 21 11:38:58 2010 +0200
app: don't try to set properties of a NULL icon view
app/widgets/gimpcontainericonview.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpcontainericonview.c b/app/widgets/gimpcontainericonview.c
index 3b02f38..d814f4c 100644
--- a/app/widgets/gimpcontainericonview.c
+++ b/app/widgets/gimpcontainericonview.c
@@ -577,8 +577,11 @@ gimp_container_icon_view_set_view_size (GimpContainerView *view)
if (icon_view->model)
gimp_container_tree_store_set_view_size (GIMP_CONTAINER_TREE_STORE (icon_view->model));
- gtk_icon_view_set_columns (icon_view->view, -1);
- gtk_icon_view_set_item_width (icon_view->view, -1);
+ if (icon_view->view)
+ {
+ gtk_icon_view_set_columns (icon_view->view, -1);
+ gtk_icon_view_set_item_width (icon_view->view, -1);
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]