[epiphany] ephy-location-controller: add missing default case in set/get_property methods



commit c4e887a6f01546a054b95ec78e407e326fd45c1a
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Thu May 10 15:26:34 2012 +0300

    ephy-location-controller: add missing default case in set/get_property methods
    
    https://bugzilla.gnome.org/show_bug.cgi?id=675804

 src/ephy-location-controller.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/ephy-location-controller.c b/src/ephy-location-controller.c
index 15d6f22..aed7e9c 100644
--- a/src/ephy-location-controller.c
+++ b/src/ephy-location-controller.c
@@ -443,6 +443,8 @@ ephy_location_controller_set_property (GObject *object,
 		case PROP_LOCATION_ENTRY:
 			priv->location_entry = EPHY_LOCATION_ENTRY (g_value_get_object (value));
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
 	}
 }
 
@@ -472,10 +474,8 @@ ephy_location_controller_get_property (GObject *object,
 		case PROP_SHOW_LOCK:
 			g_value_set_boolean (value, priv->show_lock);
 			break;
-		case PROP_WINDOW:
-		case PROP_LOCATION_ENTRY:
-			/* not readable */
-			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
 	}
 }
 



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