diff options
author | Ernestas Kulik <ernestask@gnome.org> | 2018-08-29 17:56:36 +0300 |
---|---|---|
committer | Ernestas Kulik <ernestask@gnome.org> | 2018-08-29 17:56:36 +0300 |
commit | 150bcc926b51570f462da74a27aee0ded9eab949 (patch) | |
tree | 3ef6784916affed4100b80ddf6a61c65964fa0a0 /src | |
parent | 8209e69a87c75dac5008627aaa87de4d1caf8d7c (diff) | |
download | nautilus-150bcc926b51570f462da74a27aee0ded9eab949.tar.gz |
places-view: Override newly-added interface properties
Otherwise we’ll keep getting warnings about it, and when
NautilusWindowSlot tries to add a binding to those.
Diffstat (limited to 'src')
-rw-r--r-- | src/nautilus-places-view.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nautilus-places-view.c b/src/nautilus-places-view.c index 3611ecdc3..97761180b 100644 --- a/src/nautilus-places-view.c +++ b/src/nautilus-places-view.c @@ -55,6 +55,8 @@ enum PROP_LOADING, PROP_SEARCHING, PROP_SELECTION, + PROP_EXTENSIONS_BACKGROUND_MENU, + PROP_TEMPLATES_MENU, LAST_PROP }; @@ -175,6 +177,17 @@ nautilus_places_view_get_property (GObject *object, } break; + /* Collect all unused properties and do nothing. Ideally, this wouldn’t + * have to be done in the first place. + */ + case PROP_SEARCHING: + case PROP_SELECTION: + case PROP_EXTENSIONS_BACKGROUND_MENU: + case PROP_TEMPLATES_MENU: + { + } + break; + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); } @@ -353,7 +366,14 @@ nautilus_places_view_class_init (NautilusPlacesViewClass *klass) g_object_class_override_property (object_class, PROP_LOADING, "loading"); g_object_class_override_property (object_class, PROP_SEARCHING, "searching"); g_object_class_override_property (object_class, PROP_LOCATION, "location"); + g_object_class_override_property (object_class, PROP_SELECTION, "selection"); g_object_class_override_property (object_class, PROP_SEARCH_QUERY, "search-query"); + g_object_class_override_property (object_class, + PROP_EXTENSIONS_BACKGROUND_MENU, + "extensions-background-menu"); + g_object_class_override_property (object_class, + PROP_TEMPLATES_MENU, + "templates-menu"); } static void |