[eog/gnome-2-32: 29/34] Don't assert when accessing unknown EogWindow properties



commit 8bb91bebea5137246c4ff84d1755cb7f20e04ae6
Author: Felix Riemann <friemann gnome org>
Date:   Sun Jul 18 23:45:11 2010 +0200

    Don't assert when accessing unknown EogWindow properties
    
    Use G_OBJECT_WARN_INVALID_PROPERTY_ID to emit a warning instead.

 src/eog-window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index a08c7cd..b413cf0 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -5166,7 +5166,7 @@ eog_window_set_property (GObject      *object,
 		break;
 
         default:
-                g_assert_not_reached ();
+                G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
         }
 }
 
@@ -5190,7 +5190,7 @@ eog_window_get_property (GObject    *object,
 		break;
 
         default:
-                g_assert_not_reached ();
+                G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
 	}
 }
 



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