static void ide_runtime_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { IdeRuntime *self = IDE_RUNTIME (object); switch (prop_id) { case PROP_ID: g_value_set_string (value, ide_runtime_get_id (self)); break; case PROP_DISPLAY_NAME: g_value_set_string (value, ide_runtime_get_display_name (self)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); } }
static void ide_omni_bar__config_manager__notify_current (IdeOmniBar *self, GParamSpec *pspec, IdeConfigurationManager *config_manager) { IdeConfiguration *current; IdeRuntime *runtime; g_assert (IDE_IS_OMNI_BAR (self)); g_assert (IDE_IS_CONFIGURATION_MANAGER (config_manager)); current = ide_configuration_manager_get_current (config_manager); runtime = ide_configuration_get_runtime (current); if (runtime != NULL) gtk_label_set_label (self->popover_runtime_label, ide_runtime_get_display_name (runtime)); else gtk_label_set_label (self->popover_runtime_label, ""); gtk_label_set_label (self->popover_config_label, ide_configuration_get_display_name (current)); }